BLAS/SRC/dnrm2.f90(3)
๐ BLAS/SRC/dnrm2.f90(3) โ DNRM2 said โnorm girl summerโ โจ
okay so bestie, this is the Library Functions Manual page for BLAS/SRC/dnrm2.f90(3), and it is literally about DNRM2 returning the euclidean norm. The math is mathing, the vibe is immaculate, and yes we are keeping every single detail. ๐ซถ
๐ธ NAME ๐ธ
BLAS/SRC/dnrm2.f90 โ the file, the icon, the main character. ๐
๐ SYNOPSIS ๐
Functions/Subroutines:
real(wp) function dnrm2 (n, x, incx)โ DNRM2
๐ซ Function/Subroutine Documentation ๐ซ
๐ real(wp) function dnrm2 (integer n, real(wp), dimension(*) x, integer incx) ๐
DNRM2. periodt. ๐
๐ Purpose
DNRM2 returns the euclidean norm of a vector via the function name, so that
DNRM2 := sqrt( x'*x )
๐ Parameters ๐
Nโ isINTEGER; number of elements in input vector(s). ๐งฎXโ isDOUBLE PRECISIONarray, dimension( 1 + ( N - 1 )*abs( INCX ) ). ๐ฆINCXโ isINTEGER; storage spacing between elements ofX.
and the INCX lore is giving very specific, bestie:
- 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,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. ๐ no cap, that is the warning.
๐ 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 dnrm2.f90.
๐ค Author
Generated automatically by Doxygen for LAPACK from the source code.
๐ mwah, bestie โ this page is from LAPACK Version 3.12.0, page BLAS/SRC/dnrm2.f90(3), dated August 2016. slay. ๐
๐ฆ 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