SLANSB(3)
π NAME
/home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/SRC/slansb.f
okay so real talk, bestie, you're in the LAPACK corner of the manual and this whole page is literally just that one file. that's the name. that's the whole name section. iconic minimalism, no notes π
β¨ SYNOPSIS
π¦ Functions/Subroutines
real function SLANSB (norm, uplo, n, k, ab, ldab, 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.
πΈ Function/Subroutine Documentation
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. that's the whole gig. it does not solve anything, it does not factor anything, it just looks at your matrix and reports a number. main character energy tbh π
π 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.
!>
so like. an n by n symmetric band matrix A, with k super-diagonals. it measures it. that's it. that's the function. π«Ά
π§ Returns
SLANSB β and here's exactly what comes back, depending on the NORM you picked, no cap:
!>
!> 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.
!>
breaking that down for you because the ASCII art is giving ancient runes:
NORM = 'M'or'm'βmax(abs(A(i,j)))NORM = '1','O'or'o'βnorm1(A), the one norm (maximum column sum)NORM = 'I'or'i'βnormI(A), the infinity norm (maximum row sum)NORM = 'F','f','E'or'e'βnormF(A), the Frobenius norm (square root of sum of squares)
β οΈ heads up bestie, and this is important: max(abs(A(i,j))) is not a consistent matrix norm. the manpage says it, i'm saying it, we're all saying it. do not come for me in the replies. π
π Parameters
π NORM
NORM is CHARACTER*1. it specifies the value to be returned in SLANSB as described above. it's the little switch that decides which norm you get, so pick your fighter wisely. β¨
π UPLO
UPLO is CHARACTER*1. it 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. and when N = 0, SLANSB is set to zero β like, it just returns zero, that's the vibe, nothing to measure, nothing to report. π¦
π K
K is INTEGER. the number of super-diagonals or sub-diagonals of the band matrix A. K >= 0. this is the band width, the thing that makes it a band matrix and not a whole entire square. π
π AB
AB is REAL array, dimension (LDAB,N). it's the upper or lower triangle of the symmetric band matrix A, stored in the first K+1 rows of AB. the j-th column of A is stored in the j-th column of the array AB as 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).
read those index expressions slowly, they're the whole personality of the function. π
π LDAB
LDAB is INTEGER. the leading dimension of the array AB. LDAB >= K+1. it's a constraint, it's non-negotiable, it's giving boundaries. π
π WORK
WORK is REAL array, dimension (MAX(1,LWORK)), where LWORK >= N when NORM = 'I' or '1' or 'O'; otherwise, WORK is not referenced. so sometimes it's the hardest-working array in the room and sometimes it's literally just sitting there unused, and honestly? relatable. π
π Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
four whole institutions. a whole squad. the group chat that raised this function. π«Ά
Definition at line 127 of file slansb.f.
β Author
(yes, another one, we love a double author credit β¨)
Generated automatically by Doxygen for LAPACK from the source code. not a human, not a poet, just Doxygen doing its little thing. π€
okay bestie that's the whole page!! go forth and norm your symmetric band matrices π
β signed off with love by LAPACK, Version 3.12.0, from /home/abui...RC/slansb.f(3) ππ
π¦
π¦ 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