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 โ€” is INTEGER; number of elements in input vector(s). ๐Ÿงฎ
  • X โ€” is DOUBLE PRECISION array, dimension ( 1 + ( N - 1 )*abs( INCX ) ). ๐Ÿ“ฆ
  • INCX โ€” is INTEGER; storage spacing between elements of X.

and the INCX lore is giving very specific, bestie:

  • 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. ๐Ÿ’€ no cap, that is the warning.

๐Ÿ‘‘ Author

Edward Anderson, Lockheed Martin

๐ŸŽ‚ Date

August 2016

๐Ÿซถ Contributors:

Weslley Pereira, University of Colorado Denver, USA

๐Ÿ”ฅ Further Details:

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