SRC/sgeequ.f(3)
SRC/sgeequ.f π¦
okay so bestie, this page is straight out of the Library Functions Manual, and it's giving βI compute scalings for matrices and I know it.β Let's get into it. β¨
πΈ NAME πΈ
SRC/sgeequ.f β yes, the file name is the whole name, and honestly iconic.
β¨ SYNOPSIS β¨
π Functions/Subroutines π
subroutine sgeequ (m, n, a, lda, r, c, rowcnd, colcnd, amax, info)βSGEEQU
π« Function/Subroutine Documentation π«
Here's the full signature, bestie:
subroutine sgeequ (integer m, integer n, real, dimension( lda, * ) a,
integer lda, real, dimension( * ) r, real, dimension( * ) c, real
rowcnd, real colcnd, real amax, integer info)
SGEEQU
π¦ Purpose π¦
Okay so SGEEQU 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 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 absolute value 1.
R(i) and C(j) are restricted to be 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.
β οΈ vibe check, bestie: not guaranteed to reduce the condition number of A β but it works well in practice, fr fr.
π Parameters π
MβM is INTEGER. The number of rows of the matrixA.M >= 0.NβN is INTEGER. The number of columns of the matrixA.N >= 0.AβA is REAL array, dimension (LDA,N). TheM-by-Nmatrix whose equilibration factors are to be computed.LDAβLDA is INTEGER. The leading dimension of the arrayA.LDA >= 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 137 of file sgeequ.f.
π Author π
Generated automatically by Doxygen for LAPACK from the source code.
and that's the whole vibe π«Ά signed off by LAPACK Version 3.12.0, with footer energy from SRC/sgeequ.f(3) π
β¨
π¦ 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