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) β€” 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.
  • double precision function dlantr (norm, uplo, diag, m, n, a, lda, 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.
  • real function slantr (norm, uplo, diag, m, n, a, lda, 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.
  • double precision function zlantr (norm, uplo, diag, m, n, a, lda, work) β€” ZLANTR 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.

🧚 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 β€” NORM is CHARACTER*1. Specifies the value to be returned in CLANTR as described above.
  • UPLO β€” UPLO is CHARACTER*1. Specifies whether matrix A is upper or lower trapezoidal. = 'U': Upper trapezoidal. = 'L': Lower trapezoidal. Note that A is triangular instead of trapezoidal if M = N.
  • DIAG β€” DIAG is CHARACTER*1. Specifies whether or not matrix A has unit diagonal. = 'N': Non-unit diagonal. = 'U': Unit diagonal.
  • M β€” M is INTEGER. The number of rows of matrix A. M >= 0, and if UPLO = 'U', M <= N. When M = 0, CLANTR is set to zero.
  • N β€” N is INTEGER. The number of columns of matrix A. N >= 0, and if UPLO = 'L', N <= M. When N = 0, CLANTR is set to zero.
  • A β€” A is COMPLEX array, dimension (LDA,N). The trapezoidal matrix A (A is triangular if M = N). If UPLO = 'U', the leading m by n upper trapezoidal part of the array A contains the upper trapezoidal matrix, and the strictly lower triangular part of A is not referenced. If UPLO = 'L', the leading m by n lower trapezoidal part of the array A contains the lower trapezoidal matrix, and the strictly upper triangular part of A is not referenced. Note that when DIAG = 'U', the diagonal elements of A are not referenced and are assumed to be one.
  • LDA β€” LDA is INTEGER. The leading dimension of the array A. LDA >= max(M,1).
  • WORK β€” WORK is REAL array, dimension (MAX(1,LWORK)), where LWORK >= M when NORM = 'I'; otherwise, WORK is 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 β€” NORM is CHARACTER*1. Specifies the value to be returned in DLANTR as described above.
  • UPLO β€” UPLO is CHARACTER*1. Specifies whether matrix A is upper or lower trapezoidal. = 'U': Upper trapezoidal. = 'L': Lower trapezoidal. Note that A is triangular instead of trapezoidal if M = N.
  • DIAG β€” DIAG is CHARACTER*1. Specifies whether or not matrix A has unit diagonal. = 'N': Non-unit diagonal. = 'U': Unit diagonal.
  • M β€” M is INTEGER. The number of rows of matrix A. M >= 0, and if UPLO = 'U', M <= N. When M = 0, DLANTR is set to zero.
  • N β€” N is INTEGER. The number of columns of matrix A. N >= 0, and if UPLO = 'L', N <= M. When N = 0, DLANTR is set to zero.
  • A β€” A is DOUBLE PRECISION array, dimension (LDA,N). The trapezoidal matrix A (A is triangular if M = N). If UPLO = 'U', the leading m by n upper trapezoidal part of the array A contains the upper trapezoidal matrix, and the strictly lower triangular part of A is not referenced. If UPLO = 'L', the leading m by n lower trapezoidal part of the array A contains the lower trapezoidal matrix, and the strictly upper triangular part of A is not referenced. Note that when DIAG = 'U', the diagonal elements of A are not referenced and are assumed to be one.
  • LDA β€” LDA is INTEGER. The leading dimension of the array A. LDA >= max(M,1).
  • WORK β€” WORK is DOUBLE PRECISION array, dimension (MAX(1,LWORK)), where LWORK >= M when NORM = 'I'; otherwise, WORK is 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 β€” NORM is CHARACTER*1. Specifies the value to be returned in SLANTR as described above.
  • UPLO β€” UPLO is CHARACTER*1. Specifies whether matrix A is upper or lower trapezoidal. = 'U': Upper trapezoidal. = 'L': Lower trapezoidal. Note that A is triangular instead of trapezoidal if M = N.
  • DIAG β€” DIAG is CHARACTER*1. Specifies whether or not matrix A has unit diagonal. = 'N': Non-unit diagonal. = 'U': Unit diagonal.
  • M β€” M is INTEGER. The number of rows of matrix A. M >= 0, and if UPLO = 'U', M <= N. When M = 0, SLANTR is set to zero.
  • N β€” N is INTEGER. The number of columns of matrix A. N >= 0, and if UPLO = 'L', N <= M. When N = 0, SLANTR is set to zero.
  • A
  • A β€” REAL array, dimension (LDA,N). This is your trapezoidal matrix, bestie (and like, she's triangular if M = N β€” glow-up, honestly πŸ”Ί). If UPLO = 'U', the leading m by n upper trapezoidal part of the array A holds the upper trapezoidal matrix, and the strictly lower triangular part of A is not referenced β€” nobody's looking at her, she's off duty πŸ’…. If UPLO = 'L', then the leading m by n lower trapezoidal part of A holds the lower trapezoidal matrix, and the strictly upper triangular part is not referenced. Also lowkey important: when DIAG = 'U', the diagonal elements of A are not referenced and are assumed to be one β€” the vibes are implied, no cap 🫢.
  • LDA β€” INTEGER, the leading dimension of the array A. Rule of the day: LDA >= max(M,1). That's the whole assignment, periodt ✨.
  • WORK β€” REAL array, dimension (MAX(1,LWORK)), where LWORK >= M when NORM = 'I'. Otherwise, WORK is 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 in ZLANTR as described above. Yeah, the chart. Look at the chart πŸ¦‹.
  • UPLO β€” CHARACTER*1. Specifies whether the matrix A is 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 matrix A has unit diagonal.
    • = 'N': Non-unit diagonal
    • = 'U': Unit diagonal
  • M β€” INTEGER, the number of rows of the matrix A. M >= 0, and if UPLO = 'U', then M <= N. When M = 0, ZLANTR is set to zero. Empty girlies get a zero, that's the rule 🌸.
  • N β€” INTEGER, the number of columns of the matrix A. N >= 0, and if UPLO = 'L', then N <= M. When N = 0, ZLANTR is set to zero. Same energy, different axis ✨.
  • A β€” COMPLEX*16 array, dimension (LDA,N). The trapezoidal matrix A (and again β€” A is triangular if M = N). If UPLO = 'U', the leading m by n upper trapezoidal part of the array A contains the upper trapezoidal matrix, and the strictly lower triangular part of A is not referenced β€” she's not reading that part, it's giving "left on read" πŸ™ˆ. If UPLO = 'L', the leading m by n lower trapezoidal part of A contains the lower trapezoidal matrix, and the strictly upper triangular part of A is not referenced. And note that when DIAG = 'U', the diagonal elements of A are not referenced and are assumed to be one β€” assumed, not checked. Trust fall 🫢.
  • LDA β€” INTEGER, the leading dimension of the array A. LDA >= max(M,1). Non-negotiable βœ‹.
  • WORK β€” DOUBLE PRECISION array, dimension (MAX(1,LWORK)), where LWORK >= M when NORM = 'I'. Otherwise, WORK is 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