ZLAQGE(3)
β¨ ZLAQGE(3) β like, the row-and-column glow-up for your matrix β¨
okay so bestie, welcome to the Library Functions Manual π
this page is all about /home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/SRC/zlaqge.f and honestly? she's a little legend. sit down, grab a snack π, we're talking equilibration.
πΈ NAME πΈ
/home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/SRC/zlaqge.f β that's the whole name, yes it's a whole file path, no I don't make the rules π that's just how the generated page do.
π¦ SYNOPSIS π¦
Functions/Subroutines
subroutine ZLAQGE (m, n, a, lda, r, c, rowcnd, colcnd, amax, equed)β ZLAQGE scales a general rectangular matrix, using row and column scaling factors computed bysgeequ. slay.
π Function/Subroutine Documentation π
π the subroutine herself
subroutine ZLAQGE (integer m, integer n, complex*16, dimension( lda, * ) a,
integer lda, double precision, dimension( * ) r, double precision,
dimension( * ) c, double precision rowcnd, double precision colcnd,
double precision amax, character equed)
ZLAQGE scales a general rectangular matrix, using row and column scaling factors computed by sgeequ. that's the whole vibe. main character energy fr fr π₯
π Purpose:
ZLAQGE equilibrates a general M by N matrix A using the row and column scaling factors in the vectors R and C.
literally just: A gets a little makeover using R and C. glow-up via vectors. obsessed. β¨
π Parameters
M
MisINTEGERThe number of rows of the matrixA.M >= 0.
how many rows, bestie. zero is allowed, we don't judge π
N
NisINTEGERThe number of columns of the matrixA.N >= 0.
how many columns. also allowed to be zero. equal opportunity π«Ά
A
AisCOMPLEX*16array, dimension(LDA,N)On entry, the M by N matrixA. On exit, the equilibrated matrix. SeeEQUEDfor the form of the equilibrated matrix.
she goes in as herself and comes out equilibrated π
check EQUED if you wanna know exactly which form she's serving.
LDA
LDAisINTEGERThe leading dimension of the arrayA.LDA >= max(M,1).
leading dimension, and yes the max(M,1) is real β not me being dramatic, that's the actual constraint β
R
RisDOUBLE PRECISIONarray, dimension(M)The row scale factors forA.
row scale factors. one per row. iconic πΈ
C
CisDOUBLE PRECISIONarray, dimension(N)The column scale factors forA.
column scale factors. one per column. also iconic π¦
ROWCND
ROWCNDisDOUBLE PRECISIONRatio of the smallestR(i)to the largestR(i).
tiniest row factor over biggest row factor. the ratio that tells you how row-ily unhinged things are π
COLCND
COLCNDisDOUBLE PRECISIONRatio of the smallestC(i)to the largestC(i).
same situation but for the columns. smallest C(i) over largest C(i). periodt.
AMAX
AMAXisDOUBLE PRECISIONAbsolute value of largest matrix entry.
the absolute value of the biggest entry in the whole matrix. the head cheerleader of numbers π
EQUED
EQUEDisCHARACTER*1Specifies the form of equilibration that was done. ='N': No equilibration ='R': Row equilibration, i.e.,Ahas been premultiplied bydiag(R). ='C': Column equilibration, i.e.,Ahas been postmultiplied bydiag(C). ='B': Both row and column equilibration, i.e.,Ahas been replaced bydiag(R) * A * diag(C).
the receipt π§Ύ β tells you which flavor of glow-up actually happened:
'N'β no equilibration, she woke up like this'R'β row equilibration,Agot premultiplied bydiag(R)'C'β column equilibration,Agot postmultiplied bydiag(C)'B'β both, soAwas replaced bydiag(R) * A * diag(C), full glam π β¨
π§ Internal Parameters:
THRESHis a threshold value used to decide if row or column scaling should be done based on the ratio of the row or column scaling factors. IfROWCND < THRESH, row scaling is done, and ifCOLCND < THRESH, column scaling is done.
so THRESH is the vibe check π«Ά ratio too small? scaling happens. that's it.
LARGEandSMALLare threshold values used to decide if row scaling should be done based on the absolute size of the largest matrix element. IfAMAX > LARGEorAMAX < SMALL, row scaling is done.
LARGE and SMALL are also vibe checks, but for the absolute size of the largest matrix element β if AMAX > LARGE or AMAX < SMALL, row scaling gets done. no cap π―
β Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
the whole academic-and-NAG friend group wrote this, we stan π
Definition at line 141 of file zlaqge.f.
π« Author (yes, again)
Generated automatically by Doxygen for LAPACK from the source code. it's giving auto-generated but make it cute π€π
quick reminder bestie π: EQUED is output β it's telling you what was done, not asking you what to do. don't come for me, that's just what the parameters say.
πΈ written by the LAPACK girlies, Version 3.12.0, straight outta /home/abui...RC/zlaqge.f(3) β mwah, see you in the next manpage, 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