/home/abui...scnrm2.f90(3)
π NAME π
/home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/BLAS/SRC/scnrm2.f90
okay so bestie, this whole page is a Library Functions Manual situation, and the star of the show is that very long file path up there β¬οΈ β that's literally the icon we're here to talk about. periodt.
β¨ SYNOPSIS β¨
π Functions/Subroutines π
real(wp) function SCNRM2 (n, x, incx)β this is the one, the main character:SCNRM2itself π«Ά
πΈ Function/Subroutine Documentation πΈ
real(wp) function SCNRM2 (integer n, complex(wp), dimension(*) x, integer incx)
SCNRM2 β say hi π
β Purpose: β
!>!> SCNRM2 returns the euclidean norm of a vector via the function!> name, so that!>!> SCNRM2 := sqrt( x**H*x )!>
translation: it hands you back the euclidean norm of a vector, and the formula is right there β SCNRM2 := sqrt( x**H*x ) π₯
π Parameters π
π N
!> N is INTEGER!> number of elements in input vector(s)!>
it's an INTEGER, and it's literally just how many elements are chillin' in your input vector(s) β¨
π¦ X
!> X is COMPLEX array, dimension (N)!> complex vector with N elements!>
a COMPLEX array with dimension (N) β i.e. your complex vector that has N elements in it π
π 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.!>
INCX is an INTEGER and it's the storage spacing between elements of X. the breakdown:
INCX > 0βX(1+(i-1)*INCX) = x(i)for1 <= i <= nπINCX < 0βX(1-(n-i)*INCX) = x(i)for1 <= i <= nπ§INCX = 0β bestie, x isn't a vector anymore, so there is literally no need to call this subroutine. if you call it anyway? it will countx(1)in the vector normNtimes ππ consider yourself warned.
π 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 89 of file scnrm2.f90. π
β Author β
Generated automatically by Doxygen for LAPACK from the source code.
and that's the whole vibe check, bestie β this page is from LAPACK, Version 3.12.0, dated August 2016, and it was served to you fresh out of /home/abui...scnrm2.f90(3) π
β¨ bye ily π«Ά
π¦ 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