BLAS/SRC/snrm2.f90(3)
π BLAS/SRC/snrm2.f90(3) π
okay bestie, welcome to the Library Functions Manual page for BLAS/SRC/snrm2.f90 β yes, the SNRM2 one. Pull up a chair, we're doing norm-girl math. β¨
π NAME π
BLAS/SRC/snrm2.f90 β that's literally the name, no cap. π
β¨ SYNOPSIS β¨
Functions/Subroutines
real(wp) function snrm2 (n, x, incx)βSNRM2
real(wp) function snrm2 (n, x, incx)
π«Ά Function/Subroutine Documentation π«Ά
Here's the exact function signature, bestie:
real(wp) function snrm2 (integer n, real(wp), dimension(*) x, integer incx)
SNRM2 β iconic routine behavior. π
Purpose:
SNRM2 returns the euclidean norm of a vector via the function name, so that:
SNRM2 := sqrt( x'*x ).
Parameters
NβN is INTEGER; number of elements in input vector(s). π’XβX is REAL array, dimension ( 1 + ( N - 1 )*abs( INCX ) ). πINCXβINCX is INTEGER, storage spacing between elements ofX.- If
INCX > 0,X(1+(i-1)*INCX) = x(i) for 1 <= i <= n - If
INCX < 0,X(1-(n-i)*INCX) = x(i) for 1 <= i <= n - If
INCX = 0,xisn't a vector so there is no need to call this subroutine. If you call it anyway, it will countx(1)in the vector normNtimes. π
- If
Author
Edward Anderson, Lockheed Martin. π«Ά
Date
August 2016. ποΈ
Contributors:
Weslley Pereira, University of Colorado Denver, USA. π
Further Details:
The receipts, verbatim:
Anderson E. (2017)βAlgorithm 978: Safe Scaling in the Level 1 BLASβACM Trans Math Softw 44:1--28βhttps://doi.org/10.1145/3061665Blue, James L. (1978)βA Portable Fortran Program to Find the Euclidean Norm of a VectorβACM Trans Math Softw 4:15--23βhttps://doi.org/10.1145/355769.355771
Definition at line 88 of file snrm2.f90. π―
Author
Generated automatically by Doxygen for LAPACK from the source code. π€
xoxo, your Unix bestie π β from LAPACK Version 3.12.0, page BLAS/SRC/snrm2.f90(3), August 2016. Slay and stay normie, in the euclidean sense. π
π¦ where this page comes from
- arch rolling: lapack-doc 3.12.1-2 Β· custom
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms