BLAS/SRC/scnrm2.f90(3)
π BLAS/SRC/scnrm2.f90
okay so like, welcome to the manual page for BLAS/SRC/scnrm2.f90, bestie β a whole library function page and honestly it's giving main character energy β¨
πΈ SYNOPSIS
Functions/Subroutines
real(wp) function scnrm2 (n, x, incx)β the one and onlySCNRM2, she's here π
π¦ Function/Subroutine Documentation
real(wp) function scnrm2 (integer n, complex(wp), dimension(*) x, integer incx)
SCNRM2 β literally her β¨
π«Ά Purpose:
!> !> SCNRM2 returns the euclidean norm of a vector via the function !> name, so that !> !> SCNRM2 := sqrt( x**H*x ) !>
so basically she hands you back the euclidean norm of a vector, using the function name itself, like:
SCNRM2 := sqrt( x**H*x )
no cap, that's the whole vibe π
π₯ Parameters
NβN is INTEGER, the number of elements in your input vector(s). that's it, that's the count πXβX is COMPLEX array, dimension (N), a complex vector withNelements. iconic array behavior πINCXβINCX is INTEGER, the storage spacing between elements ofX. and here's the breakdown, iykyk:- If
INCX > 0,X(1+(i-1)*INCX) = x(i)for1 <= i <= n - If
INCX < 0,X(1-(n-i)*INCX) = x(i)for1 <= 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 countx(1)in the vector normNtimes.
- If
fr fr,INCX = 0meansxisn't a vector at all, so likeβ¦ there's literally no reason to call this. but if you do it anyway?? it's gonna countx(1)in the vector normNtimes. not me warning you π«£
π Author
Edward Anderson, Lockheed Martin. periodt.
π Date
August 2016.
π Contributors:
Weslley Pereira, University of Colorado Denver, USA. slay π
π 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 !> !>
the receipts, bestie πβ¨
π Definition at line 89 of file scnrm2.f90.
β Author
Generated automatically by Doxygen for LAPACK from the source code. not a human, just vibes π€π«
okay that's the whole page, hope this ate π
πΈ β this cute little sign-off is brought to you by LAPACK, Version 3.12.0, dated in the footer of BLAS/SRC/scnrm2.f90(3). bye bestie, go compute some norms π¦π
π¦ 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