SRC/slantr.f(3)
hey bestie π this is the SRC/slantr.f(3) page from the Library Functions Manual, and itβs all about one little function that does norm vibes on trapezoidal or triangular matrices. lowkey iconic.
πΈ NAME πΈ
SRC/slantr.f β thatβs the whole name, no cap. This page is the manual for the slantr function/subroutine in that file. π
β¨ SYNOPSIS β¨
π§ Functions/Subroutines π§
real function slantr (norm, uplo, diag, m, n, a, lda, work)β 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. periodt.
π¦ 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) π
real function slantr (character norm, character uplo, character diag,
integer m, integer n, real, dimension( lda, * ) a, integer lda, real,
dimension( * ) work)
okay so the signature is exactly that ^^ and the function is SLANTR, which 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. iykyk β¨
π Purpose π
the purpose is literally: 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. thatβs it, thatβs the vibe.
π Returns π
ngl the return value mapping is giving choose-your-own-norm:
SLANTR = max(abs(A(i,j)))whenNORM = 'M'or'm'SLANTR = norm1(A)whenNORM = '1','O', or'o'SLANTR = normI(A)whenNORM = 'I'or'i'SLANTR = normF(A)whenNORM = '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).
heads up bestie: max(abs(A(i,j))) is not a consistent matrix norm. no cap, itβs in the docs.
π«Ά Parameters π«Ά
NORMβCHARACTER*1. Specifies the value to be returned inSLANTRas described above. pick your fighter.UPLOβCHARACTER*1. Specifies whether the matrixAis upper or lower trapezoidal.= 'U': Upper trapezoidal= 'L': Lower trapezoidal- Note that
Ais triangular instead of trapezoidal ifM = N.
DIAGβCHARACTER*1. Specifies whether or not the matrixAhas unit diagonal.= 'N': Non-unit diagonal= 'U': Unit diagonal
MβINTEGER. The number of rows of the matrixA.M >= 0, and ifUPLO = 'U',M <= N. WhenM = 0,SLANTRis set to zero. zero era.NβINTEGER. The number of columns of the matrixA.N >= 0, and ifUPLO = 'L',N <= M. WhenN = 0,SLANTRis set to zero. also zero era.AβREAL array, dimension (LDA,N). The trapezoidal matrixA(Ais triangular ifM = N). IfUPLO = 'U', the leadingmbynupper trapezoidal part of the arrayAcontains the upper trapezoidal matrix, and the strictly lower triangular part ofAis not referenced. IfUPLO = 'L', the leadingmbynlower trapezoidal part of the arrayAcontains the lower trapezoidal matrix, and the strictly upper triangular part ofAis not referenced. Note that whenDIAG = 'U', the diagonal elements ofAare not referenced and are assumed to be one. donβt touch the unreferenced parts, bestie.LDAβINTEGER. The leading dimension of the arrayA.LDA >= max(M,1).WORKβREAL array, dimension (MAX(1,LWORK)), whereLWORK >= MwhenNORM = 'I'; otherwise,WORKis not referenced. only the infinity-norm girlies need it.
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 139 of file slantr.f.
π Author π
Generated automatically by Doxygen for LAPACK from the source code. slay.
okay thatβs the whole page, bestie π«Ά β footer check says LAPACK Version 3.12.0 and SRC/slantr.f(3), and thereβs no date line in the footer so Iβm not gonna invent one. bye π
π¦ 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