lanhb(3)
π lanhb(3) β lan{hb,sb}: Hermitian/symmetric matrix, banded π
okay so bestie, welcome to the Library Functions Manual β¨ this is the page for lanhb and honestly it's giving "norm energy" and we are obsessed. it's a long one so buckle up π
πΈ NAME πΈ
lanhb β lan{hb,sb}: Hermitian/symmetric matrix, banded
β¨ SYNOPSIS β¨
π₯ Functions π₯
real function clanhb (norm, uplo, n, k, ab, ldab, work)βCLANHBreturns the value of the 1-norm, or the Frobenius norm, or the infinity norm, or the element of largest absolute value of a Hermitian band matrix. πreal function clansb (norm, uplo, n, k, ab, ldab, work)βCLANSBreturns the value of the 1-norm, or the Frobenius norm, or the infinity norm, or the element of largest absolute value of a symmetric band matrix. β¨double precision function dlansb (norm, uplo, n, k, ab, ldab, work)βDLANSBreturns the value of the 1-norm, or the Frobenius norm, or the infinity norm, or the element of largest absolute value of a symmetric band matrix. π¦real function slansb (norm, uplo, n, k, ab, ldab, work)βSLANSBreturns the value of the 1-norm, or the Frobenius norm, or the infinity norm, or the element of largest absolute value of a symmetric band matrix. πΈdouble precision function zlanhb (norm, uplo, n, k, ab, ldab, work)βZLANHBreturns the value of the 1-norm, or the Frobenius norm, or the infinity norm, or the element of largest absolute value of a Hermitian band matrix. πdouble precision function zlansb (norm, uplo, n, k, ab, ldab, work)βZLANSBreturns the value of the 1-norm, or the Frobenius norm, or the infinity norm, or the element of largest absolute value of a symmetric band matrix. β
π Detailed Description π
(no cap: there's literally nothing extra here, the detailed tea is all in the function docs below π)
π Function Documentation π
π§ real function clanhb (character norm, character uplo, integer n, integer k, complex, dimension( ldab, * ) ab, integer ldab, real, dimension( * ) work) π§
CLANHB returns the value of the 1-norm, or the Frobenius norm, or the infinity norm, or the element of largest absolute value of a Hermitian band matrix. main character of the whole page, honestly. π
π Purpose π
CLANHBreturns the value of the one norm, or the Frobenius norm, or the infinity norm, or the element of largest absolute value of annbynhermitian band matrixA, withksuper-diagonals.
okay so it's literally just "what's the size of this matrix, bestie" β pick your flavor of norm and it hands it to you π«Ά
β Returns β
here's the whole menu, keep it exact because the vibe check on this table is real:
!>
!> CLANHB = ( 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.
!>
ngl that last line is important: max(abs(A(i,j))) is not a consistent matrix norm. it said what it said π
πΈ Parameters πΈ
NORMβNORM is CHARACTER*1. it tellsCLANHBwhich value to return, exactly like the menu up there says. β¨UPLOβUPLO is CHARACTER*1. tells it whether the upper or lower triangular part of the band matrixAis supplied.= 'U': Upper triangular= 'L': Lower triangular
NβN is INTEGER. the order of the matrixA.N >= 0. and whenN = 0,CLANHBis set to zero. periodt. πKβK is INTEGER. the number of super-diagonals or sub-diagonals of the band matrixA.K >= 0. πABβAB is COMPLEX array, dimension (LDAB,N). it holds the upper or lower triangle of the hermitian band matrixA, stored in the firstK+1rows ofAB. thej-th column ofAlives in thej-th column of the arrayABlike this:- if
UPLO = 'U',AB(k+1+i-j,j) = A(i,j)formax(1,j-k)<=i<=j; - if
UPLO = 'L',AB(1+i-j,j) = A(i,j)forj<=i<=min(n,j+k).
- if
β οΈ and heads up: the imaginary parts of the diagonal elements need not be set and are assumed to be zero. so don't come for me if you left them blank, it's fine π
LDABβLDAB is INTEGER. the leading dimension of the arrayAB.LDAB >= K+1. fr fr. π₯WORKβWORK is REAL array, dimension (MAX(1,LWORK)), whereLWORK >= NwhenNORM = 'I'or'1'or'O'; otherwise,WORKis not referenced. π¦
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 130 of file clanhb.f.
π¦ real function clansb (character norm, character uplo, integer n, integer k, complex, dimension( ldab, * ) ab, integer ldab, real, dimension( * ) work) π¦
CLANSB returns the value of the 1-norm, or the Frobenius norm, or the infinity norm, or the element of largest absolute value of a symmetric band matrix. same energy, but symmetric this time β lowkey the chill twin of CLANHB π
π Purpose π
CLANSBreturns the value of the one norm, or the Frobenius norm, or the infinity norm, or the element of largest absolute value of annbynsymmetric band matrixA, withksuper-diagonals.
β Returns β
!>
!> CLANSB = ( 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.
!>
same warning as before and it still matters: max(abs(A(i,j))) is not a consistent matrix norm. π
πΈ Parameters πΈ
NORMβNORM is CHARACTER*1. specifies the value to be returned inCLANSB, as described above. πUPLOβUPLO is CHARACTER*1. tells it whether the upper or lower triangular part of the band matrixAis supplied.= 'U': Upper triangular part is supplied= 'L': Lower triangular part is supplied
NβN is INTEGER. the order of the matrixA.N >= 0. whenN = 0,CLANSBis set to zero. β¨KβK is INTEGER. the number of super-diagonals or sub-diagonals of the band matrixA.K >= 0. πABβAB is COMPLEX array, dimension (LDAB,N). the upper or lower triangle of the symmetric band matrixA, stored in the firstK+1rows ofAB. thej-th column ofAsits in thej-th column of the arrayAB, like:- if
UPLO = 'U',AB(k+1+i-j,j) = A(i,j)formax(1,j-k)<=i<=j; - if
UPLO = 'L',AB(1+i-j,j) = A(i,j)forj<=i<=min(n,j+k).
- if
LDABβLDAB is INTEGER. the leading dimension of the arrayAB.LDAB >= K+1. π₯WORKβWORK is REAL array, dimension (MAX(1,LWORK)), whereLWORK >= NwhenNORM = 'I'or'1'or'O'; otherwise,WORKis not referenced. π
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 128 of file clansb.f.
π double precision function dlansb (character norm, character uplo, integer n, integer k, double precision, dimension( ldab, * ) ab, integer ldab, double precision, dimension( * ) work) π
DLANSB returns the value of the 1-norm, or the Frobenius norm, or the infinity norm, or the element of largest absolute value of a symmetric band matrix. it's the double-precision sibling β more bits, same slay π«Ά
π Purpose π
DLANSBreturns the value of the one norm, or the Frobenius norm, or the infinity norm, or the element of largest absolute value of annbynsymmetric band matrixA, withksuper-diagonals.
β Returns β
!>
!> DLANSB = ( 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.
!>
again: max(abs(A(i,j))) is not a consistent matrix norm. this is not me being dramatic, this is just facts π
πΈ Parameters πΈ
NORMβNORM is CHARACTER*1. specifies the value to be returned inDLANSB, as described above. β¨UPLOβUPLO is CHARACTER*1. whether the upper or lower triangular part of the band matrixAis supplied.= 'U': Upper triangular part is supplied= 'L': Lower triangular part is supplied
NβN is INTEGER. the order of the matrixA.N >= 0. whenN = 0,DLANSBis set to zero. πKβK is INTEGER. the number of super-diagonals or sub-diagonals of the band matrixA.K >= 0. πΈABβAB is DOUBLE PRECISION array, dimension (LDAB,N). the upper or lower triangle of the symmetric band matrixA, stored in the firstK+1rows ofAB. thej-th column ofAis stored in thej-th column of the arrayAB:- if
UPLO = 'U',AB(k+1+i-j,j) = A(i,j)formax(1,j-k)<=i<=j; - if
UPLO = 'L',AB(1+i-j,j) = A(i,j)forj<=i<=min(n,j+k).
- if
LDABβLDAB is INTEGER. the leading dimension of the arrayAB.LDAB >= K+1. βWORKβWORK is DOUBLE PRECISION array, dimension (MAX(1,LWORK)), whereLWORK >= NwhenNORM = 'I'or'1'or'O'; otherwise,WORKis not referenced. π
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
...and the last author-block crumbs for dlansb: big ups to Univ. of Colorado Denver and NAG Ltd. β and the receipt says Definition at line 127 of file dlansb.f. π«Ά
π©· real function slansb
real function slansb (character norm, character uplo, integer n, integer k, real, dimension( ldab, * ) ab, integer ldab, real, dimension( * ) work)
SLANSB returns the value of the 1-norm, or the Frobenius norm, or the infinity norm, or the element of largest absolute value of a symmetric band matrix. β¨
Purpose
SLANSB returns the value of the one norm, or the Frobenius norm, or the infinity norm, or the element of largest absolute value of an n by n symmetric band matrix A, with k super-diagonals. π
Returns
SLANSB
SLANSB = ( 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 β iconic behavior, but still not a consistent matrix norm. π
Parameters
NORMβNORM is CHARACTER*1. Specifies the value to be returned inSLANSBas described above. πUPLOβUPLO is CHARACTER*1. Specifies whether the upper or lower triangular part of the band matrix A is supplied.= 'U': Upper triangular part is supplied;= 'L': Lower triangular part is supplied. πΈNβN is INTEGER. The order of the matrix A.N >= 0. WhenN = 0,SLANSBis set to zero. πKβK is INTEGER. The number of super-diagonals or sub-diagonals of the band matrix A.K >= 0. π¦ABβAB is REAL array, dimension (LDAB,N). The upper or lower triangle of the symmetric band matrix A, stored in the firstK+1rows ofAB. The j-th column of A is stored in the j-th column of the arrayABas follows:
if UPLO = 'U', AB(k+1+i-j,j) = A(i,j) for max(1,j-k)<=i<=j;
if UPLO = 'L', AB(1+i-j,j) = A(i,j) for j<=i<=min(n,j+k).
LDABβLDAB is INTEGER. The leading dimension of the arrayAB.LDAB >= K+1. πWORKβWORK is REAL array, dimension (MAX(1,LWORK)), whereLWORK >= NwhenNORM = 'I' or '1' or 'O'; otherwise,WORKis not referenced. π
Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 127 of file slansb.f.
π§ double precision function zlanhb
double precision function zlanhb (character norm, character uplo, integer n,
integer k, complex*16, dimension( ldab, * ) ab, integer ldab, double
precision, dimension( * ) work)
ZLANHB returns the value of the 1-norm, or the Frobenius norm, or the infinity norm, or the element of largest absolute value of a Hermitian band matrix. π₯
Purpose
ZLANHB returns the value of the one norm, or the Frobenius norm, or the infinity norm, or the element of largest absolute value of an n by n hermitian band matrix A, with k super-diagonals. π
Returns
ZLANHB
ZLANHB = ( 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 inZLANHBas described above. πUPLOβUPLO is CHARACTER*1. Specifies whether the upper or lower triangular part of the band matrix A is supplied.= 'U': Upper triangular;= 'L': Lower triangular. βNβN is INTEGER. The order of the matrix A.N >= 0. WhenN = 0,ZLANHBis set to zero. πKβK is INTEGER. The number of super-diagonals or sub-diagonals of the band matrix A.K >= 0. π«ΆABβAB is COMPLEX*16 array, dimension (LDAB,N). The upper or lower triangle of the hermitian band matrix A, stored in the firstK+1rows ofAB. The j-th column of A is stored in the j-th column of the arrayABas follows:
if UPLO = 'U', AB(k+1+i-j,j) = A(i,j) for max(1,j-k)<=i<=j;
if UPLO = 'L', AB(1+i-j,j) = A(i,j) for j<=i<=min(n,j+k).
Note that the imaginary parts of the diagonal elements need not be set and are assumed to be zero. π
LDABβLDAB is INTEGER. The leading dimension of the arrayAB.LDAB >= K+1. πWORKβWORK is DOUBLE PRECISION array, dimension (MAX(1,LWORK)), whereLWORK >= NwhenNORM = 'I' or '1' or 'O'; otherwise,WORKis not referenced. π
Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 130 of file zlanhb.f.
π¦ double precision function zlansb
double precision function zlansb (character norm, character uplo, integer n,
integer k, complex*16, dimension( ldab, * ) ab, integer ldab, double
precision, dimension( * ) work)
ZLANSB returns the value of the 1-norm, or the Frobenius norm, or the infinity norm, or the element of largest absolute value of a symmetric band matrix. π
Purpose
ZLANSB returns the value of the one norm, or the Frobenius norm, or the infinity norm, or the element of largest absolute value of an n by n symmetric band matrix A, with k super-diagonals. π
Returns
ZLANSB
ZLANSB = ( 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 β say it louder for the people in the back. π
Parameters
NORMβNORM is CHARACTER*1. Specifies the value to be returned inZLANSBas described above. πUPLOβUPLO is CHARACTER*1. Specifies whether the upper or lower triangular part of the band matrix A is supplied.= 'U': Upper triangular part is supplied;= 'L': Lower triangular part is supplied. πΈNβN is INTEGER. The order of the matrix A.N >= 0. WhenN = 0,ZLANSBis set to zero. πKβK is INTEGER. The number of super-diagonals or sub-diagonals of the band matrix A.K >= 0. π§ABβAB is COMPLEX*16 array, dimension (LDAB,N). The upper or lower triangle of the symmetric band matrix A, stored in the firstK+1rows ofAB. The j-th column of A is stored in the j-th column of the arrayABas follows:
if UPLO = 'U', AB(k+1+i-j,j) = A(i,j) for max(1,j-k)<=i<=j;
if UPLO = 'L', AB(1+i-j,j) = A(i,j) for j<=i<=min(n,j+k).
LDABβLDAB is INTEGER. The leading dimension of the arrayAB.LDAB >= K+1. πWORKβWORK is DOUBLE PRECISION array, dimension (MAX(1,LWORK)), whereLWORK >= NwhenNORM = 'I' or '1' or 'O'; otherwise,WORKis not referenced. π«Ά
Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 128 of file zlansb.f.
Author
Generated automatically by Doxygen for LAPACK from the source code. π€β¨
Okay thatβs the whole sparkly saga, bestie: LAPACK Version 3.12.0, manual page lanhb(3) β and the original footer didnβt print a date, so no cap, thatβs the receipt. ππ
π¦ 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