BLAS/SRC/snrm2.f90(3)

πŸ“¦
version 3.12.1 Β· 3 versions
, in arch rolling

πŸ’– BLAS/SRC/snrm2.f90(3) πŸ’–

okay bestie, welcome to the Library Functions Manual page for BLAS/SRC/snrm2.f90 β€” yes, the SNRM2 one. Pull up a chair, we're doing norm-girl math. ✨


πŸŽ€ NAME πŸŽ€

BLAS/SRC/snrm2.f90 β€” that's literally the name, no cap. πŸ’…


✨ SYNOPSIS ✨

Functions/Subroutines

  • real(wp) function snrm2 (n, x, incx) β€” SNRM2
real(wp) function snrm2 (n, x, incx)

🫢 Function/Subroutine Documentation 🫢

Here's the exact function signature, bestie:

real(wp) function snrm2 (integer n, real(wp), dimension(*) x, integer incx)

SNRM2 β€” iconic routine behavior. πŸ‘‘

Purpose:

SNRM2 returns the euclidean norm of a vector via the function name, so that:

SNRM2 := sqrt( x'*x ).

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. πŸ’€

Author

Edward Anderson, Lockheed Martin. 🫢

Date

August 2016. πŸ—“οΈ

Contributors:

Weslley Pereira, University of Colorado Denver, USA. πŸ’–

Further Details:

The receipts, verbatim:

Definition at line 88 of file snrm2.f90. 🎯

Author

Generated automatically by Doxygen for LAPACK from the source code. πŸ€–


xoxo, your Unix bestie πŸ’– β€” from LAPACK Version 3.12.0, page BLAS/SRC/snrm2.f90(3), August 2016. Slay and stay normie, in the euclidean sense. πŸŽ€

πŸ“¦ where this page comes from