SLANTR(3)
πΈ SLANTR(3) πΈ
okay so bestie, welcome to the SLANTR glow-up π
this one lives in the Library Functions Manual, and its whole entire address is literally right here β it's a Fortran source file, not a program you run, but we're vibing with its man page anyway:
/home/abui...RC/slantr.f(3)
β¨ NAME β¨
/home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/SRC/slantr.f
like... yes that's the whole NAME section, she's a file path and she's iconic for it π
π¦ SYNOPSIS π¦
Functions/Subroutines
real function SLANTR (norm, uplo, diag, m, n, a, lda, work)β lowkey the whole point: SLANTR hands you back the value of the 1-norm, or the Frobenius norm, or the infinity norm, or the element of largest absolute value of a trapezoidal or triangular matrix. no cap. π₯
π Function/Subroutine Documentation π
real function SLANTR (character norm, character uplo, character diag, integer m, integer n, real, dimension( lda, * ) a, integer lda, real, dimension( * ) work)
so literally what it says on the tin: SLANTR returns the value of the 1-norm, or the Frobenius norm, or the infinity norm, or the element of largest absolute value of a trapezoidal or triangular matrix. ate and left no crumbs π
π§ Purpose
!>
!> SLANTR returns the value of the one norm, or the Frobenius norm, or
!> the infinity norm, or the element of largest absolute value of a
!> trapezoidal or triangular matrix A.
!>
β Returns
SLANTR π« and here's the whole menu of what she can give you, verbatim bestie:
!>
!> SLANTR = ( max(abs(A(i,j))), NORM = 'M' or 'm'
!> (
!> ( norm1(A), NORM = '1', 'O' or 'o'
!> (
!> ( normI(A), NORM = 'I' or 'i'
!> (
!> ( normF(A), NORM = 'F', 'f', 'E' or 'e'
!>
!> where norm1 denotes the one norm of a matrix (maximum column sum),
!> normI denotes the infinity norm of a matrix (maximum row sum) and
!> normF denotes the Frobenius norm of a matrix (square root of sum of
!> squares). Note that max(abs(A(i,j))) is not a consistent matrix norm.
!>
β οΈ real talk: max(abs(A(i,j))) is not a consistent matrix norm. that's just facts, don't come for her π
π Parameters
NORMβ isCHARACTER*1. it specifies the value to be returned inSLANTR, as described above. that's the whole vibe check right there πUPLOβ isCHARACTER*1. specifies whether the matrixAis upper or lower trapezoidal:= 'U': upper trapezoidal= 'L': lower trapezoidal
and note that A is triangular instead of trapezoidal if M = N. iykyk π¦
DIAGβ isCHARACTER*1. specifies whether or not the matrixAhas unit diagonal:= 'N': non-unit diagonal= 'U': unit diagonal
Mβ isINTEGER. the number of rows of the matrixA.M >= 0, and ifUPLO = 'U',M <= N. whenM = 0,SLANTRis set to zero. slay, respectful of the zero case β¨Nβ isINTEGER. the number of columns of the matrixA.N >= 0, and ifUPLO = 'L',N <= M. whenN = 0,SLANTRis set to zero. same energy, love that for her πAβ isREALarray, dimension(LDA,N). the trapezoidal matrixA(Ais triangular ifM = N).- if
UPLO = 'U', the leadingmbynupper trapezoidal part of the arrayAcontains the upper trapezoidal matrix, and the strictly lower triangular part ofAis not referenced. - if
UPLO = 'L', the leadingmbynlower trapezoidal part of the arrayAcontains the lower trapezoidal matrix, and the strictly upper triangular part ofAis not referenced. - note that when
DIAG = 'U', the diagonal elements ofAare not referenced and are assumed to be one. assumed! don't check! she trusts you π«Ά
- if
LDAβ isINTEGER. the leading dimension of the arrayA.LDA >= max(M,1). periodt.WORKβ isREALarray, dimension(MAX(1,LWORK)), whereLWORK >= MwhenNORM = 'I'; otherwise,WORKis not referenced. so she only shows up for the infinity-norm shift π₯
π Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
definition at line 139 of file slantr.f. iconic line number ngl β
π Author π
Generated automatically by Doxygen for LAPACK from the source code. (yes she was literally born from a code generator, main character energy fr fr πβ¨)
π and that's the whole page bestie π
cute little sign-off before you go: this gorgeous thing is LAPACK, Version 3.12.0, and it's filed under /home/abui...RC/slantr.f(3) β mwah, go forth and norm responsibly π
π
π¦ 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