SRC/clantr.f(3)
π NAME π
SRC/clantr.f β okay bestie, this is the SRC/clantr.f(3) page from the Library Functions Manual, and it's all about the CLANTR function. π
β¨ SYNOPSIS β¨
π§ Functions/Subroutines π§
real function clantr (norm, uplo, diag, m, n, a, lda, work)
CLANTR 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. slay. π
πΈ Function/Subroutine Documentation πΈ
real function clantr (character norm, character uplo, character diag,
integer m, integer n, complex, dimension( lda, * ) a, integer lda, real,
dimension( * ) work)
CLANTR 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. no cap, that's the whole vibe. β¨
π― Purpose π―
okay so the purpose is: CLANTR 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 mission. π«Ά
π Returns π
CLANTR comes back with one of these, depending on NORM:
CLANTR = ( 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). π
heads up, bestie: max(abs(A(i,j))) is not a consistent matrix norm. important.
π§Έ Parameters π§Έ
NORMβ isCHARACTER*1. Specifies the value to be returned inCLANTRas described above. πUPLOβ isCHARACTER*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β 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,CLANTRis set to zero.Nβ isINTEGER. The number of columns of the matrixA.N >= 0, and ifUPLO = 'L',N <= M. WhenN = 0,CLANTRis set to zero.Aβ isCOMPLEXarray, 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.
- If
LDAβ isINTEGER. The leading dimension of the arrayA.LDA >= max(M,1).WORKβ isREALarray, dimension(MAX(1,LWORK)), whereLWORK >= MwhenNORM = 'I'; otherwise,WORKis not referenced.
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 140 of file clantr.f.
π Author π
Generated automatically by Doxygen for LAPACK from the source code.
xoxo, LAPACK Version 3.12.0 β page SRC/clantr.f(3) π
β¨ (no date in the footer, so Iβm not inventing one).
π¦ 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