SNRM2(3)
π SNRM2(3) β Library Functions Manual π
okay bestie, welcome to the SNRM2(3) glow-up from the Library Functions Manual. The page is tagged /home/abui...C/snrm2.f90(3) (the original header has it on both sides β we see you π). This is LAPACK's Euclidean-norm girlie, and she's serving main character energy in Fortran. β¨
π NAME π
/home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/BLAS/SRC/snrm2.f90
That's the whole name section, periodt. π
π¦ SYNOPSIS π¦
β¨ Functions/Subroutines β¨
real(wp) function SNRM2 (n, x, incx)
SNRM2
πΈ Function/Subroutine Documentation πΈ
real(wp) function SNRM2 (integer n, real(wp), dimension(*) x, integer incx)
SNRM2
π― Purpose π―
!>
!> SNRM2 returns the euclidean norm of a vector via the function
!> name, so that
!>
!> SNRM2 := sqrt( x'*x ).
!>
The way that this is literally the Euclidean norm vibe check: SNRM2 := sqrt( x'*x ). Obsessed. π«Ά
π§ 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 of X
!> 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, x isn't a vector so there is no need to call
!> this subroutine. If you call it anyway, it will count x(1)
!> in the vector norm N times.
!>
bestie, ifINCX = 0,xisn't a vector so there is literally no need to call this subroutine. But if you call it anyway, it will countx(1)in the vector normNtimes. That's the rule β iykyk. π
π Author π
Edward Anderson, Lockheed Martin
π Date π
August 2016
π«Ά Contributors π«Ά
Weslley Pereira, University of Colorado Denver, USA
π Further Details π
!>
!> Anderson E. (2017)
!> Algorithm 978: Safe Scaling in the Level 1 BLAS
!> ACM Trans Math Softw 44:1--28
!> https://doi.org/10.1145/3061665
!>
!> Blue, 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.
mwah π β this was LAPACK Version 3.12.0, page /home/abui...C/snrm2.f90(3), dated August 2016. Stay sliving, bestie πβ¨
π¦ where this page comes from
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms