CLANHS(3)
π CLANHS(3) β the upper Hessenberg norm girlie π
ok so real talk, bestie: this page came out of /home/abui...RC/clanhs.f(3), and the manual it lives in is the Library Functions Manual. That's the vibe. Let's get into it π
β¨ SYNOPSIS β¨
Functions/Subroutines
real function CLANHS (norm, n, a, lda, work)β returns the value of the 1-norm, Frobenius norm, infinity-norm, or the largest absolute value of any element of an upper Hessenberg matrix. periodt π«Ά
π Function/Subroutine Documentation π
real function CLANHS (character norm, integer n, complex, dimension( lda, * ) a, integer lda, real, dimension( * ) work)
CLANHS returns the value of the 1-norm, Frobenius norm, infinity-norm, or the largest absolute value of any element of an upper Hessenberg matrix. no cap, that's literally the whole job πΈ
π₯ Purpose π₯
!>
!> CLANHS returns the value of the one norm, or the Frobenius norm, or
!> the infinity norm, or the element of largest absolute value of a
!> Hessenberg matrix A.
!>
β Returns β
CLANHS
!>
!> CLANHS = ( 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.
!>
so you pick your norm with NORM and CLANHS hands it right back to you, and if you're the 'M'/'m' girlie you get max(abs(A(i,j))) β and heads up, that one is not a consistent matrix norm, that's just the rules π
π Parameters π
NORMβNORMisCHARACTER*1. Specifies the value to be returned in CLANHS as described above. that's it, that's the assignment β¨NβNisINTEGER. The order of the matrixA.N >= 0. WhenN = 0, CLANHS is set to zero. tiny matrix, tiny answer, we love a clean edge case πAβAisCOMPLEXarray, dimension(LDA,N). Thenbynupper Hessenberg matrixA; the part ofAbelow the first sub-diagonal is not referenced. so don't stress about what's down there, she's not looking πLDAβLDAisINTEGER. The leading dimension of the arrayA.LDA >= max(N,1). respect the leading dimension or perish πWORKβWORKisREALarray, dimension(MAX(1,LWORK)), whereLWORK >= NwhenNORM = 'I'; otherwise,WORKis not referenced. so bestie, if you're doing the infinity norm you NEED your workspace, otherwise you can literally leave it π¦
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 108 of file clanhs.f. iykyk π
π« Author π«
Generated automatically by Doxygen for LAPACK from the source code. it's giving "nobody hand-wrote me and yet I'm iconic" π
friendly reminder that every single one of these details is load-bearing:NORMpicks the norm,N = 0gives you zero, andWORKonly matters for'I'. don't come for me if you skip that π
LAPACK, Version 3.12.0 β mwah, that's the whole page, go forth and compute your norms, bestie π§πβ¨
π¦ where this page comes from
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms