SRC/sgbequb.f(3)
π SRC/sgbequb.f β Library Functions Manual, bestie β¨
πΈ NAME πΈ
SRC/sgbequb.f
β¨ SYNOPSIS β¨
π§Έ Functions/Subroutines
subroutine sgbequb (m, n, kl, ku, ab, ldab, r, c, rowcnd, colcnd, amax,
info)
SGBEQUB
π Function/Subroutine Documentation π
subroutine sgbequb (integer m, integer n, integer kl, integer ku, real,
dimension( ldab, * ) ab, integer ldab, real, dimension( * ) r, real,
dimension( * ) c, real rowcnd, real colcnd, real amax, integer info)
SGBEQUB
π― Purpose
Okay so SGBEQUB computes row and column scalings intended to equilibrate an M-by-N matrix A and reduce its condition number. R returns the row scale factors, and C returns the column scale factors, chosen to try to make the largest element in each row and column of the matrix B with elements B(i,j)=R(i)*A(i,j)*C(j) have an absolute value of at most the radix.
R(i) and C(j) are restricted to be a power of the radix between SMLNUM = smallest safe number and BIGNUM = largest safe number. Use of these scaling factors is not guaranteed to reduce the condition number of A but works well in practice.
This routine differs from SGEEQU by restricting the scaling factors to a power of the radix. Barring over- and underflow, scaling by these factors introduces no additional rounding errors. However, the scaled entries' magnitudes are no longer approximately 1 but lie between sqrt(radix) and 1/sqrt(radix).
π§Ύ Parameters
MβM is INTEGER. The number of rows of the matrixA. The rule isM >= 0.NβN is INTEGER. The number of columns of the matrixA. The rule isN >= 0.KLβKL is INTEGER. The number of subdiagonals within the band ofA. The rule isKL >= 0.KUβKU is INTEGER. The number of superdiagonals within the band ofA. The rule isKU >= 0.ABβAB is REAL array, dimension (LDAB,N). On entry, the matrixAin band storage, in rows 1 toKL+KU+1. Thej-th column ofAis stored in thej-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βLDAB is INTEGER. The leading dimension of the arrayA. The rule isLDAB >= max(1,M).RβR is REAL array, dimension (M). IfINFO = 0orINFO > M,Rcontains the row scale factors forA.CβC is REAL array, dimension (N). IfINFO = 0,Ccontains the column scale factors forA.ROWCNDβROWCND is REAL. IfINFO = 0orINFO > M,ROWCNDcontains the ratio of the smallestR(i)to the largestR(i). IfROWCND >= 0.1andAMAXis neither too large nor too small, it is not worth scaling byR.COLCNDβCOLCND is REAL. IfINFO = 0,COLCNDcontains the ratio of the smallestC(i)to the largestC(i). IfCOLCND >= 0.1, it is not worth scaling byC.AMAXβAMAX is REAL. Absolute value of largest matrix element. IfAMAXis very close to overflow or very close to underflow, the matrix should be scaled.INFOβINFO is INTEGER= 0: successful exit< 0: ifINFO = -i, thei-th argument had an illegal value> 0: ifINFO = i, andiis<= M: thei-th row ofAis exactly zero> M: the(i-M)-th column ofAis exactly zero
π«Ά Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
π Definition at line 158 of file sgbequb.f.
π§ Author π§
Generated automatically by Doxygen for LAPACK from the source code.
Mwah π β the footer says LAPACK Version 3.12.0, and the source/version is SRC/sgbequb.f(3); no separate date is listed there, so that's the whole cute send-off. π«Ά
π¦ 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