lantr(3)
π
lantr(3) β Library Functions Manual π
okay bestie, welcome to lantr(3) β the page where triangular and trapezoidal matrices get their norm moment. no cap, this is the group chat for matrix norms. π
π NAME π
lantr β triangular matrix
β¨ SYNOPSIS β¨
π Functions π
real function clantr (norm, uplo, diag, m, n, a, lda, work)βCLANTRreturns the value of the1-norm, the Frobenius norm, the infinity norm, or the element of largest absolute value of a trapezoidal or triangular matrix.double precision function dlantr (norm, uplo, diag, m, n, a, lda, work)βDLANTRreturns the value of the1-norm, the Frobenius norm, the infinity norm, or the element of largest absolute value of a trapezoidal or triangular matrix.real function slantr (norm, uplo, diag, m, n, a, lda, work)βSLANTRreturns the value of the1-norm, the Frobenius norm, the infinity norm, or the element of largest absolute value of a trapezoidal or triangular matrix.double precision function zlantr (norm, uplo, diag, m, n, a, lda, work)βZLANTRreturns the value of the1-norm, the Frobenius norm, the infinity norm, or the element of largest absolute value of a trapezoidal or triangular matrix.
π§ Detailed Description π§
scroll down, bestie β the function-by-function tea is right below. π«Ά
π Function 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, the Frobenius norm, the infinity norm, or the element of largest absolute value of a trapezoidal or triangular matrix. iconic behavior, honestly. β¨
π Purpose π
CLANTR returns the value of the one norm, the Frobenius norm, the infinity norm, or the element of largest absolute value of a trapezoidal or triangular matrix A. lowkey the whole point. π
π Returns π
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). note that max(abs(A(i,j))) is not a consistent matrix norm. periodt. π
π Parameters π
NORMβNORMisCHARACTER*1. Specifies the value to be returned inCLANTRas described above.UPLOβUPLOisCHARACTER*1. Specifies whether matrixAis upper or lower trapezoidal.= 'U': Upper trapezoidal.= 'L': Lower trapezoidal. Note thatAis triangular instead of trapezoidal ifM = N.DIAGβDIAGisCHARACTER*1. Specifies whether or not matrixAhas unit diagonal.= 'N': Non-unit diagonal.= 'U': Unit diagonal.MβMisINTEGER. The number of rows of matrixA.M >= 0, and ifUPLO = 'U',M <= N. WhenM = 0,CLANTRis set to zero.NβNisINTEGER. The number of columns of matrixA.N >= 0, and ifUPLO = 'L',N <= M. WhenN = 0,CLANTRis set to zero.AβAisCOMPLEX 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.LDAβLDAisINTEGER. The leading dimension of the arrayA.LDA >= max(M,1).WORKβWORKisREAL array, 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.
π¦ double precision function dlantr (character norm, character uplo, character diag, integer m, integer n, double precision, dimension( lda, * ) a, integer lda, double precision, dimension( * ) work) π¦
DLANTR returns the value of the 1-norm, the Frobenius norm, the infinity norm, or the element of largest absolute value of a trapezoidal or triangular matrix. double precision edition, obviously. π
π Purpose π
DLANTR returns the value of the one norm, the Frobenius norm, the infinity norm, or the element of largest absolute value of a trapezoidal or triangular matrix A. yes bestie, same energy, different precision. β¨
π Returns π
DLANTR = ( 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). and again: max(abs(A(i,j))) is not a consistent matrix norm. don't forget it. π
π Parameters π
NORMβNORMisCHARACTER*1. Specifies the value to be returned inDLANTRas described above.UPLOβUPLOisCHARACTER*1. Specifies whether matrixAis upper or lower trapezoidal.= 'U': Upper trapezoidal.= 'L': Lower trapezoidal. Note thatAis triangular instead of trapezoidal ifM = N.DIAGβDIAGisCHARACTER*1. Specifies whether or not matrixAhas unit diagonal.= 'N': Non-unit diagonal.= 'U': Unit diagonal.MβMisINTEGER. The number of rows of matrixA.M >= 0, and ifUPLO = 'U',M <= N. WhenM = 0,DLANTRis set to zero.NβNisINTEGER. The number of columns of matrixA.N >= 0, and ifUPLO = 'L',N <= M. WhenN = 0,DLANTRis set to zero.AβAisDOUBLE PRECISION 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.LDAβLDAisINTEGER. The leading dimension of the arrayA.LDA >= max(M,1).WORKβWORKisDOUBLE PRECISION array, 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 139 of file dlantr.f.
π¦ real function slantr (character norm, character uplo, character diag, integer m, integer n, real, dimension( lda, * ) a, integer lda, real, dimension( * ) work) π¦
SLANTR returns the value of the 1-norm, the Frobenius norm, the infinity norm, or the element of largest absolute value of a trapezoidal or triangular matrix. the real-real one, slay. πΈ
π Purpose π
SLANTR returns the value of the one norm, the Frobenius norm, the infinity norm, or the element of largest absolute value of a trapezoidal or triangular matrix A. no cap. β¨
π Returns π
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). and yes, max(abs(A(i,j))) is not a consistent matrix norm. iykyk. π
π Parameters π
NORMβNORMisCHARACTER*1. Specifies the value to be returned inSLANTRas described above.UPLOβUPLOisCHARACTER*1. Specifies whether matrixAis upper or lower trapezoidal.= 'U': Upper trapezoidal.= 'L': Lower trapezoidal. Note thatAis triangular instead of trapezoidal ifM = N.DIAGβDIAGisCHARACTER*1. Specifies whether or not matrixAhas unit diagonal.= 'N': Non-unit diagonal.= 'U': Unit diagonal.MβMisINTEGER. The number of rows of matrixA.M >= 0, and ifUPLO = 'U',M <= N. WhenM = 0,SLANTRis set to zero.NβNisINTEGER. The number of columns of matrixA.N >= 0, and ifUPLO = 'L',N <= M. WhenN = 0,SLANTRis set to zero.AAβ REAL array, dimension(LDA,N). This is your trapezoidal matrix, bestie (and like, she's triangular ifM = Nβ glow-up, honestly πΊ). IfUPLO = 'U', the leading m by n upper trapezoidal part of the arrayAholds the upper trapezoidal matrix, and the strictly lower triangular part ofAis not referenced β nobody's looking at her, she's off duty π . IfUPLO = 'L', then the leading m by n lower trapezoidal part ofAholds the lower trapezoidal matrix, and the strictly upper triangular part is not referenced. Also lowkey important: whenDIAG = 'U', the diagonal elements ofAare not referenced and are assumed to be one β the vibes are implied, no cap π«Ά.LDAβ INTEGER, the leading dimension of the arrayA. Rule of the day:LDA >= max(M,1). That's the whole assignment, periodt β¨.WORKβ REAL array, dimension(MAX(1,LWORK)), whereLWORK >= MwhenNORM = 'I'. Otherwise,WORKis not referenced β she's not even invited to the function, honestly π.
π Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
π Definition
At line 139 of file slantr.f. Like, that's literally where she lives π .
π zlantr β the double precision one, and yes she's complex
double precision function zlantr (character norm, character uplo, character diag, integer m, integer n, complex*16, dimension( lda, * ) a, integer lda, double precision, dimension( * ) work)
ZLANTR 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. Four moods, one function. Versatile queen π.
π― Purpose
!>
!> ZLANTR 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
ZLANTR β and it comes in four flavours, pick your fighter:
!>
!> ZLANTR = ( 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.
!>
β οΈ Heads up girlies: max(abs(A(i,j))) is not a consistent matrix norm. She's built different and she knows it π β don't treat her like the other three.
π Parameters
NORMβCHARACTER*1. Specifies the value to be returned inZLANTRas described above. Yeah, the chart. Look at the chart π¦.UPLOβCHARACTER*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 β she switches labels depending on the crowd, iykyk π
.
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', thenM <= N. WhenM = 0,ZLANTRis set to zero. Empty girlies get a zero, that's the rule πΈ.Nβ INTEGER, the number of columns of the matrixA.N >= 0, and ifUPLO = 'L', thenN <= M. WhenN = 0,ZLANTRis set to zero. Same energy, different axis β¨.AβCOMPLEX*16array, dimension(LDA,N). The trapezoidal matrixA(and again βAis triangular ifM = N). IfUPLO = 'U', the leading m by n upper trapezoidal part of the arrayAcontains the upper trapezoidal matrix, and the strictly lower triangular part ofAis not referenced β she's not reading that part, it's giving "left on read" π. IfUPLO = 'L', the leading m by n lower trapezoidal part ofAcontains the lower trapezoidal matrix, and the strictly upper triangular part ofAis not referenced. And note that whenDIAG = 'U', the diagonal elements ofAare not referenced and are assumed to be one β assumed, not checked. Trust fall π«Ά.LDAβ INTEGER, the leading dimension of the arrayA.LDA >= max(M,1). Non-negotiable β.WORKβDOUBLE PRECISIONarray, dimension(MAX(1,LWORK)), whereLWORK >= MwhenNORM = 'I'. Otherwise,WORKis not referenced. She only shows up for the infinity norm gig, iconic behaviour honestly ππ₯.
π Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
π Definition
At line 140 of file zlantr.f. Right next door to her single-precision sister, cute π.
πΈ Author
Generated automatically by Doxygen for LAPACK from the source code. Not a human, just a very efficient little bot doing its thing π€π.
And that's the whole page, bestie! This lil masterpiece comes to you courtesy of LAPACK, version 3.12.0, and it goes by lantr(3) down in the man page section β go forth and norm responsibly, ily, mwah ππβ
π¦ 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