la_gbrcond(3)
π la_gbrcond β Skeel condition number estimate β¨
okay so this is the la_gbrcond(3) page from the Library Functions Manual, and bestie, it's a whole family of functions, not just one. Buckle up π
πΈ NAME πΈ
la_gbrcond β la_gbrcond: Skeel condition number estimate
β¨ SYNOPSIS β¨
π¦ Functions π¦
real function cla_gbrcond_c (trans, n, kl, ku, ab, ldab, afb, ldafb, ipiv, c, capply, info, work, rwork)β CLA_GBRCOND_C computes the infinity norm condition number ofop(A)*inv(diag(c))for general banded matrices.real function cla_gbrcond_x (trans, n, kl, ku, ab, ldab, afb, ldafb, ipiv, x, info, work, rwork)β CLA_GBRCOND_X computes the infinity norm condition number ofop(A)*diag(x)for general banded matrices.double precision function dla_gbrcond (trans, n, kl, ku, ab, ldab, afb, ldafb, ipiv, cmode, c, info, work, iwork)β DLA_GBRCOND estimates the Skeel condition number for a general banded matrix.real function sla_gbrcond (trans, n, kl, ku, ab, ldab, afb, ldafb, ipiv, cmode, c, info, work, iwork)β SLA_GBRCOND estimates the Skeel condition number for a general banded matrix.double precision function zla_gbrcond_c (trans, n, kl, ku, ab, ldab, afb, ldafb, ipiv, c, capply, info, work, rwork)β ZLA_GBRCOND_C computes the infinity norm condition number ofop(A)*inv(diag(c))for general banded matrices.double precision function zla_gbrcond_x (trans, n, kl, ku, ab, ldab, afb, ldafb, ipiv, x, info, work, rwork)β ZLA_GBRCOND_X computes the infinity norm condition number ofop(A)*diag(x)for general banded matrices.
π₯ Detailed Description π₯
No thoughts, just vibes and a big pile of function docs. Let's go function by function π
Function Documentation
π§ real function cla_gbrcond_c (character trans, integer n, integer kl, integer ku, complex, dimension( ldab, * ) ab, integer ldab, complex, dimension( ldafb, * ) afb, integer ldafb, integer, dimension( * ) ipiv, real, dimension( * ) c, logical capply, integer info, complex, dimension( * ) work, real, dimension( * ) rwork)
CLA_GBRCOND_C computes the infinity norm condition number of op(A)*inv(diag(c)) for general banded matrices.
π Purpose:
CLA_GBRCOND_C Computes the infinity norm condition number of op(A) * inv(diag(C)) where C is a REAL vector. like, the whole point π
π Parameters
TRANSβTRANS is CHARACTER*1. Specifies the form of the system of equations:= 'N': A * X = B(No transpose)= 'T': A**T * X = B(Transpose)= 'C': A**H * X = B(Conjugate Transpose = Transpose)
NβN is INTEGER. The number of linear equations, i.e., the order of the matrix A.N >= 0.KLβKL is INTEGER. The number of subdiagonals within the band of A.KL >= 0.KUβKU is INTEGER. The number of superdiagonals within the band of A.KU >= 0.ABβAB is COMPLEX array, dimension (LDAB,N). On entry, the matrix A in band storage, in rows1toKL+KU+1. The j-th column of A is stored in the j-th column of the array AB as follows:
AB(KU+1+i-j,j) = A(i,j) for max(1,j-KU)<=i<=min(N,j+kl)
LDABβLDAB is INTEGER. The leading dimension of the array AB.LDAB >= KL+KU+1.AFBβAFB is COMPLEX array, dimension (LDAFB,N). Details of the LU factorization of the band matrix A, as computed byCGBTRF. U is stored as an upper triangular band matrix withKL+KUsuperdiagonals in rows1toKL+KU+1, and the multipliers used during the factorization are stored in rowsKL+KU+2to2*KL+KU+1.LDAFBβLDAFB is INTEGER. The leading dimension of the array AFB.LDAFB >= 2*KL+KU+1.IPIVβIPIV is INTEGER array, dimension (N). The pivot indices from the factorizationA = P*L*Uas computed byCGBTRF; row i of the matrix was interchanged with rowIPIV(i).CβC is REAL array, dimension (N). The vector C in the formulaop(A) * inv(diag(C)).CAPPLYβCAPPLY is LOGICAL. If.TRUE.then access the vector C in the formula above.INFOβINFO is INTEGER:= 0: Successful exit.i > 0: The ith argument is invalid.
WORKβWORK is COMPLEX array, dimension (2*N). Workspace.RWORKβRWORK is REAL array, dimension (N). Workspace.
π Author
Univ. of Tennessee
Univ. of California Berkeley
Univ. of Colorado Denver
NAG Ltd.
Definition at line 158 of file cla_gbrcond_c.f.
π¦ real function cla_gbrcond_x (character trans, integer n, integer kl, integer ku, complex, dimension( ldab, * ) ab, integer ldab, complex, dimension( ldafb, * ) afb, integer ldafb, integer, dimension( * ) ipiv, complex, dimension( * ) x, integer info, complex, dimension( * ) work, real, dimension( * ) rwork)
CLA_GBRCOND_X computes the infinity norm condition number of op(A)*diag(x) for general banded matrices.
π Purpose:
CLA_GBRCOND_X Computes the infinity norm condition number of op(A) * diag(X) where X is a COMPLEX vector. (yes, X this time, not C β they're different girlies π)
π Parameters
TRANSβTRANS is CHARACTER*1. Specifies the form of the system of equations:= 'N': A * X = B(No transpose)= 'T': A**T * X = B(Transpose)= 'C': A**H * X = B(Conjugate Transpose = Transpose)
NβN is INTEGER. The number of linear equations, i.e., the order of the matrix A.N >= 0.KLβKL is INTEGER. The number of subdiagonals within the band of A.KL >= 0.KUβKU is INTEGER. The number of superdiagonals within the band of A.KU >= 0.ABβAB is COMPLEX array, dimension (LDAB,N). On entry, the matrix A in band storage, in rows1toKL+KU+1. The j-th column of A is stored in the j-th column of the array AB as follows:
AB(KU+1+i-j,j) = A(i,j) for max(1,j-KU)<=i<=min(N,j+kl)
LDABβLDAB is INTEGER. The leading dimension of the array AB.LDAB >= KL+KU+1.AFBβAFB is COMPLEX array, dimension (LDAFB,N). Details of the LU factorization of the band matrix A, as computed byCGBTRF. U is stored as an upper triangular band matrix withKL+KUsuperdiagonals in rows1toKL+KU+1, and the multipliers used during the factorization are stored in rowsKL+KU+2to2*KL+KU+1.LDAFBβLDAFB is INTEGER. The leading dimension of the array AFB.LDAFB >= 2*KL+KU+1.IPIVβIPIV is INTEGER array, dimension (N). The pivot indices from the factorizationA = P*L*Uas computed byCGBTRF; row i of the matrix was interchanged with rowIPIV(i).XβX is COMPLEX array, dimension (N). The vector X in the formulaop(A) * diag(X).INFOβINFO is INTEGER:= 0: Successful exit.i > 0: The ith argument is invalid.
WORKβWORK is COMPLEX array, dimension (2*N). Workspace.RWORKβRWORK is REAL array, dimension (N). Workspace.
π Author
Univ. of Tennessee
Univ. of California Berkeley
Univ. of Colorado Denver
NAG Ltd.
Definition at line 151 of file cla_gbrcond_x.f.
π double precision function dla_gbrcond (character trans, integer n, integer kl, integer ku, double precision, dimension( ldab, * ) ab, integer ldab, double precision, dimension( ldafb, * ) afb, integer ldafb, integer, dimension( * ) ipiv, integer cmode, double precision, dimension( * ) c, integer info, double precision, dimension( * ) work, integer, dimension( * ) iwork)
DLA_GBRCOND estimates the Skeel condition number for a general banded matrix.
π Purpose:
DLA_GBRCOND Estimates the Skeel condition number of op(A) * op2(C) where op2 is determined by CMODE as follows:
CMODE = 1 op2(C) = C
CMODE = 0 op2(C) = I
CMODE = -1 op2(C) = inv(C)
The Skeel condition number cond(A) = norminf( |inv(A)||A| ) is computed by computing scaling factors R such that diag(R)*A*op2(C) is row equilibrated and computing the standard infinity-norm condition number.
π Parameters
TRANSβTRANS is CHARACTER*1. Specifies the form of the system of equations:= 'N': A * X = B(No transpose)= 'T': A**T * X = B(Transpose)= 'C': A**H * X = B(Conjugate Transpose = Transpose)
NβN is INTEGER. The number of linear equations, i.e., the order of the matrix A.N >= 0.KLβKL is INTEGER. The number of subdiagonals within the band of A.KL >= 0.KUβKU is INTEGER. The number of superdiagonals within the band of A.KU >= 0.ABβAB is DOUBLE PRECISION array, dimension (LDAB,N). On entry, the matrix A in band storage, in rows1toKL+KU+1. The j-th column of A is stored in the j-th column of the array AB as follows:
AB(KU+1+i-j,j) = A(i,j) for max(1,j-KU)<=i<=min(N,j+kl)
LDABβLDAB is INTEGER. The leading dimension of the array AB.LDAB >= KL+KU+1.AFBβAFB is DOUBLE PRECISION array, dimension (LDAFB,N). Details of the LU factorization of the band matrix A, as computed byDGBTRF. U is stored as an upper triangular band matrix withKL+KUsuperdiagonals in rows1toKL+KU+1, and the multipliers used during the factorization are stored in rowsKL+KU+2to2*KL+KU+1.LDAFBβ INTEGER energy β¨ this is just the leading dimension of the arrayAFB, and bestie you must respectLDAFB >= 2*KL+KU+1or it's giving chaos πIPIVβ INTEGER array, dimension (N). The pivot indices from the factorizationA = P*L*Uas computed byDGBTRF; row i of the matrix was interchanged with rowIPIV(i). Basically the receipts of who swapped with who π₯CMODEβ INTEGER, and it decidesop2(C)in the formulaop(A) * op2(C)like so:
CMODE = 1 op2(C) = C
CMODE = 0 op2(C) = I
CMODE = -1 op2(C) = inv(C)
Cβ DOUBLE PRECISION array, dimension (N). The vectorCin the formulaop(A) * op2(C). She's the moment πINFOβ INTEGER, the vibe report:
= 0: Successful exit.
i > 0: The ith argument is invalid.
WORKβ DOUBLE PRECISION array, dimension (5*N). Workspace. Scratch paper era β¨IWORKβ INTEGER array, dimension (N). Workspace. More scratch paper, but ints this time π§
Author π
Univ. of Tennessee
Univ. of California Berkeley
Univ. of Colorado Denver
NAG Ltd.
Definition at line 167 of file dla_gbrcond.f.
π«Ά sla_gbrcond
real function sla_gbrcond (character trans, integer n, integer kl, integer
ku, real, dimension( ldab, * ) ab, integer ldab, real, dimension( ldafb,
* ) afb, integer ldafb, integer, dimension( * ) ipiv, integer cmode,
real, dimension( * ) c, integer info, real, dimension( * ) work,
integer, dimension( * ) iwork)
SLA_GBRCOND estimates the Skeel condition number for a general banded matrix. Iconic behavior, no notes π
Purpose π―
!>
!> SLA_GBRCOND Estimates the Skeel condition number of op(A) * op2(C)
!> where op2 is determined by CMODE as follows
!> CMODE = 1 op2(C) = C
!> CMODE = 0 op2(C) = I
!> CMODE = -1 op2(C) = inv(C)
!> The Skeel condition number cond(A) = norminf( |inv(A)||A| )
!> is computed by computing scaling factors R such that
!> diag(R)*A*op2(C) is row equilibrated and computing the standard
!> infinity-norm condition number.
!>
Parameters π
TRANSβ CHARACTER*1</character>. Tells you which form of the system of equations you're in:
= 'N': A * X = B (No transpose)
= 'T': A**T * X = B (Transpose)
= 'C': A**H * X = B (Conjugate Transpose = Transpose)
Nβ INTEGER. The number of linear equations, i.e., the order of the matrixA.N >= 0. She's the size of the whole situation π¦KLβ INTEGER. The number of subdiagonals within the band ofA.KL >= 0.KUβ INTEGER. The number of superdiagonals within the band ofA.KU >= 0.ABβ REAL array, dimension (LDAB,N). On entry, the matrixAin band storage, in rows 1 toKL+KU+1. The j-th column ofAis stored in the j-th column of the arrayABas follows:
AB(KU+1+i-j,j) = A(i,j) for max(1,j-KU)<=i<=min(N,j+kl)
LDABβ INTEGER. The leading dimension of the arrayAB.LDAB >= KL+KU+1.AFBβ REAL array, dimension (LDAFB,N). Details of the LU factorization of the band matrixA, as computed bySGBTRF.Uis stored as an upper triangular band matrix withKL+KUsuperdiagonals in rows 1 toKL+KU+1, and the multipliers used during the factorization are stored in rowsKL+KU+2to2*KL+KU+1. Lowkey a whole archive of what happened πLDAFBβ INTEGER. The leading dimension of the arrayAFB.LDAFB >= 2*KL+KU+1.IPIVβ INTEGER array, dimension (N). The pivot indices from the factorizationA = P*L*Uas computed bySGBTRF; row i of the matrix was interchanged with rowIPIV(i).CMODEβ INTEGER. Determinesop2(C)in the formulaop(A) * op2(C)as follows:
CMODE = 1 op2(C) = C
CMODE = 0 op2(C) = I
CMODE = -1 op2(C) = inv(C)
Cβ REAL array, dimension (N). The vectorCin the formulaop(A) * op2(C).INFOβ INTEGER:
= 0: Successful exit.
i > 0: The ith argument is invalid.
WORKβ REAL array, dimension (5*N). Workspace.IWORKβ INTEGER array, dimension (N). Workspace.
Author π
Univ. of Tennessee
Univ. of California Berkeley
Univ. of Colorado Denver
NAG Ltd.
Definition at line 166 of file sla_gbrcond.f.
π¦ zla_gbrcond_c
double precision function zla_gbrcond_c (character trans, integer n, integer
kl, integer ku, complex*16, dimension( ldab, * ) ab, integer ldab,
complex*16, dimension( ldafb, * ) afb, integer ldafb, integer,
dimension( * ) ipiv, double precision, dimension( * ) c, logical capply,
integer info, complex*16, dimension( * ) work, double precision,
dimension( * ) rwork)
ZLA_GBRCOND_C computes the infinity norm condition number of op(A)*inv(diag(c)) for general banded matrices. Complex math but make it fashion π
Purpose π―
!>
!> ZLA_GBRCOND_C Computes the infinity norm condition number of
!> op(A) * inv(diag(C)) where C is a DOUBLE PRECISION vector.
!>
Parameters π
TRANSβ CHARACTER*1. Specifies the form of the system of equations:
= 'N': A * X = B (No transpose)
= 'T': A**T * X = B (Transpose)
= 'C': A**H * X = B (Conjugate Transpose = Transpose)
Nβ INTEGER. The number of linear equations, i.e., the order of the matrixA.N >= 0.KLβ INTEGER. The number of subdiagonals within the band ofA.KL >= 0.KUβ INTEGER. The number of superdiagonals within the band ofA.KU >= 0.ABβ COMPLEX*16 array, dimension (LDAB,N). On entry, the matrixAin band storage, in rows 1 toKL+KU+1. The j-th column ofAis stored in the j-th column of the arrayABas follows:
AB(KU+1+i-j,j) = A(i,j) for max(1,j-KU)<=i<=min(N,j+kl)
LDABβ INTEGER. The leading dimension of the arrayAB.LDAB >= KL+KU+1.AFBβ COMPLEX*16 array, dimension (LDAFB,N). Details of the LU factorization of the band matrixA, as computed byZGBTRF.Uis stored as an upper triangular band matrix withKL+KUsuperdiagonals in rows 1 toKL+KU+1, and the multipliers used during the factorization are stored in rowsKL+KU+2to2*KL+KU+1.LDAFBβ INTEGER. The leading dimension of the arrayAFB.LDAFB >= 2*KL+KU+1.IPIVβ INTEGER array, dimension (N). The pivot indices from the factorizationA = P*L*Uas computed byZGBTRF; row i of the matrix was interchanged with rowIPIV(i).Cβ DOUBLE PRECISION array, dimension (N). The vectorCin the formulaop(A) * inv(diag(C)).CAPPLYβ LOGICAL. If.TRUE.then access the vectorCin the formula above. The switch of destiny β¨INFOβ INTEGER:
= 0: Successful exit.
i > 0: The ith argument is invalid.
WORKβ COMPLEX*16 array, dimension (2*N). Workspace.RWORKβ DOUBLE PRECISION array, dimension (N). Workspace.
Author π
Univ. of Tennessee
Univ. of California Berkeley
Univ. of Colorado Denver
NAG Ltd.
Definition at line 159 of file zla_gbrcond_c.f.
πΈ zla_gbrcond_x
double precision function zla_gbrcond_x (character trans, integer n, integer
kl, integer ku, complex*16, dimension( ldab, * ) ab, integer ldab,
complex*16, dimension( ldafb, * ) afb, integer ldafb, integer,
dimension( * ) ipiv, complex*16, dimension( * ) x, integer info,
complex*16, dimension( * ) work, double precision, dimension( * ) rwork)
ZLA_GBRCOND_X computes the infinity norm condition number of op(A)*diag(x) for general banded matrices. X marks the spot, bestie π―
Purpose π―
!>
!> ZLA_GBRCOND_X Computes the infinity norm condition number of
!> op(A) * diag(X) where X is a COMPLEX*16 vector.
!>
Parameters π
TRANSβ CHARACTER*1. Specifies the form of the system of equations:
= 'N': A * X = B (No transpose)
= 'T': A**T * X = B (Transpose)
= 'C': A**H * X = B (Conjugate Transpose = Transpose)
Nβ INTEGER. The number of linear equations, i.e., the order of the matrixA.N >= 0.KLβ INTEGER. The number of subdiagonals within the band ofA.KL >= 0.KUβ INTEGER. The number of superdiagonals within the band ofA.KU >= 0.ABβ COMPLEX*16 array, dimension (LDAB,N). On entry, the matrixAin band storage, in rows 1 toKL+KU+1. The j-th column ofAis stored in the j-th column of the arrayABas follows:
AB(KU+1+i-j,j) = A(i,j) for max(1,j-KU)<=i<=min(N,j+kl)
LDABβ INTEGER. The leading dimension of the arrayAB.LDAB >= KL+KU+1.AFBAFBπ βAFBis aCOMPLEX*16array, dimension(LDAFB,N). Itβs holding the details of the LU factorization of the band matrixA, exactly as computed byZGBTRF.Uis stored as an upper triangular band matrix withKL+KUsuperdiagonals in rows1toKL+KU+1, and the multipliers used during the factorization are stored in rowsKL+KU+2to2*KL+KU+1. Obsessed with the row math, ngl. β¨LDAFBβLDAFBisINTEGER. Itβs the leading dimension of the arrayAFB, and bestie,LDAFB >= 2*KL+KU+1β thatβs the vibe check. πIPIVβIPIVis anINTEGERarray, dimension(N). These are the pivot indices from the factorizationA = P*L*U, as computed byZGBTRF; row i of the matrix was interchanged with rowIPIV(i). Pivot queen behavior, lowkey. πXβXis aCOMPLEX*16array, dimension(N). Itβs the vectorXin the formulaop(A) * diag(X). Main character vector, fr fr. π¦INFOβINFOisINTEGER.= 0: Successful exit.i > 0: The ith argument is invalid.
WORKβWORKis aCOMPLEX*16array, dimension(2*N). Workspace. πRWORKβRWORKis aDOUBLE PRECISIONarray, dimension(N). Workspace. πΈ
π Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 152 of file zla_gbrcond_x.f.
π€ Author
Generated automatically by Doxygen for LAPACK from the source code.
π That's the whole page! Big slay to LAPACK Version 3.12.0, and the footerβs version/date situation is la_gbrcond(3) β official cute sign-off, periodt. π
π¦ 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