Handbook
Glossary
Vnorm ( x -- norm )
Basic Linear Algebra Subroutines (BLAS) interface
»
BLAS interface vector operations
Prev:
Vsub ( v start length -- sub )
Next:
Vasum ( x -- sum )
Vocabulary
math
.
blas
.
vectors
Inputs
x
a
blas-vector-base
Outputs
norm
a
number
Word description
Calculate the norm-2, i.e., the magnitude or absolute value, of
x
(
‖x‖₂
). Corresponds to the xNRM2 routines in BLAS.
Definition
IN:
math.blas.vectors
GENERIC:
Vnorm
( x -- norm )
Methods
USING:
math.blas.ffi
math.blas.vectors
math.blas.vectors.private
;
M:
complex-double-blas-vector
Vnorm
(prepare-nrm2)
DZNRM2
;
USING:
math.blas.ffi
math.blas.vectors
math.blas.vectors.private
;
M:
complex-float-blas-vector
Vnorm
(prepare-nrm2)
SCNRM2
;
USING:
math.blas.ffi
math.blas.vectors
math.blas.vectors.private
;
M:
double-blas-vector
Vnorm
(prepare-nrm2)
DNRM2
;
USING:
math.blas.ffi
math.blas.vectors
math.blas.vectors.private
;
M:
float-blas-vector
Vnorm
(prepare-nrm2)
SNRM2
;