Handbook
Glossary
Vasum ( x -- sum )
Basic Linear Algebra Subroutines (BLAS) interface
»
BLAS interface vector operations
Prev:
Vnorm ( x -- norm )
Next:
Viamax ( x -- max-i )
Vocabulary
math
.
blas
.
vectors
Inputs
x
a
blas-vector-base
Outputs
sum
a
number
Word description
Calculate the sum of the norm-1s of the elements of
x
(
Σ ‖xᵢ‖₁
). Corresponds to the xASUM routines in BLAS.
Definition
IN:
math.blas.vectors
GENERIC:
Vasum
( x -- sum )
Methods
USING:
math.blas.ffi
math.blas.vectors
math.blas.vectors.private
;
M:
complex-double-blas-vector
Vasum
(prepare-nrm2)
DZASUM
;
USING:
math.blas.ffi
math.blas.vectors
math.blas.vectors.private
;
M:
complex-float-blas-vector
Vasum
(prepare-nrm2)
SCASUM
;
USING:
math.blas.ffi
math.blas.vectors
math.blas.vectors.private
;
M:
double-blas-vector
Vasum
(prepare-nrm2)
DASUM
;
USING:
math.blas.ffi
math.blas.vectors
math.blas.vectors.private
;
M:
float-blas-vector
Vasum
(prepare-nrm2)
SASUM
;