Handbook
Glossary
Vneg ( x -- -x )
Basic Linear Algebra Subroutines (BLAS) interface
ยป
BLAS interface vector operations
Prev:
V/n ( x alpha -- x/alpha )
Next:
n*V+V! ( alpha x y -- y=alpha*x+y )
Vocabulary
math
.
blas
.
vectors
Inputs
x
a
blas-vector-base
Outputs
-x
a
blas-vector-base
Word description
Negate the elements of
x
and return a freshly-allocated vector with the same length as
x
containing the result.
See also
n*V+V!
,
n*V!
,
n*V+V
,
n*V
,
V+
,
V-
,
V*n
,
V/n
Definition
USING:
kernel
;
IN:
math.blas.vectors
:
Vneg
( x -- -x )
-1.0
swap
n*V
;
inline