BLAS interface vector operations - Factor Documentation (original) (raw)
BLAS interface vector operations
Basic Linear Algebra Subroutines (BLAS) interface
Prev: | BLAS interface types |
---|---|
Next: | BLAS interface matrix operations |
Slicing vectors: Vsub ( v start length -- sub )
Taking the norm (magnitude) of a vector:
Summing and taking the maximum of elements:
Viamax ( x -- max-i )
Vamax ( x -- max )
n*V ( alpha x -- alpha*x )
V*n ( x alpha -- x*alpha )
V/n ( x alpha -- x/alpha )
Vneg ( x -- -x )
n*V+V! ( alpha x y -- y=alpha*x+y )
n*V+V ( alpha x y -- alpha*x+y )
V+ ( x y -- x+y )
V- ( x y -- x-y )