Handbook
Glossary
Vswap ( x y -- x=y y=x )
Vocabulary
math
.
blas
.
vectors
Inputs
x
a
blas-vector-base
y
a
blas-vector-base
Outputs
x=y
a
blas-vector-base
y=x
a
blas-vector-base
Word description
Swap the contents of
x
and
y
in place. Corresponds to the xSWAP routines in BLAS.
Side effects
Modifies
x
,
y
Definition
IN:
math.blas.vectors
GENERIC:
Vswap
( x y -- x=y y=x )
Methods
USING:
kernel
math.blas.ffi
math.blas.vectors
math.blas.vectors.private
;
M:
complex-double-blas-vector
Vswap
(prepare-swap)
[
ZSWAP
]
2dip
;
USING:
kernel
math.blas.ffi
math.blas.vectors
math.blas.vectors.private
;
M:
complex-float-blas-vector
Vswap
(prepare-swap)
[
CSWAP
]
2dip
;
USING:
kernel
math.blas.ffi
math.blas.vectors
math.blas.vectors.private
;
M:
double-blas-vector
Vswap
(prepare-swap)
[
DSWAP
]
2dip
;
USING:
kernel
math.blas.ffi
math.blas.vectors
math.blas.vectors.private
;
M:
float-blas-vector
Vswap
(prepare-swap)
[
SSWAP
]
2dip
;