Handbook
Glossary
V/n ( x alpha -- x/alpha )
Basic Linear Algebra Subroutines (BLAS) interface
»
BLAS interface vector operations
Prev:
V*n ( x alpha -- x*alpha )
Next:
Vneg ( x -- -x )
Vocabulary
math
.
blas
.
vectors
Inputs
x
a
blas-vector-base
alpha
a
number
Outputs
x/alpha
a
blas-vector-base
Word description
Calculate the scalar-vector product
(1/α)x
and return a freshly-allocated vector with the same length as
x
containing the result. Corresponds to the xSCAL routines in BLAS.
See also
n*V+V!
,
n*V!
,
n*V+V
,
n*V
,
V+
,
V-
,
Vneg
,
V*n
Definition
USING:
kernel
math
;
IN:
math.blas.vectors
:
V/n
( x alpha -- x/alpha )
recip
swap
n*V
;
inline