laqhp(3)
π laqhp β row/col scale matrix β¨
okay so bestie, welcome to laqhp(3) from the Library Functions Manual π this page is basically the group chat for six subroutines that all do the same iconic thing β they equilibrate your matrix using the scaling factors in the vector S, i.e. they swap A out for diag(S) * A * diag(S) (row/col scale, hence the NAME, periodt π). And the whole time the matrix stays in packed storage, because we're efficient like that π
πΈ SYNOPSIS πΈ
Functions
claqhpβCLAQHPscales a Hermitian matrix stored in packed form.claqspβCLAQSPscales a symmetric/Hermitian matrix in packed storage, using scaling factors computed bysppequ.dlaqspβDLAQSPscales a symmetric/Hermitian matrix in packed storage, using scaling factors computed bysppequ.slaqspβSLAQSPscales a symmetric/Hermitian matrix in packed storage, using scaling factors computed bysppequ.zlaqhpβZLAQHPscales a Hermitian matrix stored in packed form.zlaqspβZLAQSPscales a symmetric/Hermitian matrix in packed storage, using scaling factors computed bysppequ.
π¦ Detailed Description π¦
π Function Documentation π
claqhp β the complex Hermitian packed one π«
subroutine claqhp (character uplo, integer n, complex, dimension( * ) ap,
real, dimension( * ) s, real scond, real amax, character equed)
CLAQHP scales a Hermitian matrix stored in packed form.
π Purpose:
CLAQHP equilibrates a Hermitian matrix A using the scaling factors in the vector S. that's the whole job bestie, and she does it flawlessly β¨
π Parameters
UPLOβCHARACTER*1. says which triangle of the Hermitian matrixAwe're storing:'U': Upper triangular'L': Lower triangular
NβINTEGER. the order of the matrixA. lowkey important:N >= 0.APβCOMPLEX array, dimension (N*(N+1)/2). On entry, this holds the upper or lower triangle of the Hermitian matrixA, packed columnwise in a linear array. the j-th column ofAlives inAPlike this:
if UPLO = 'U', AP(i + (j-1)*j/2) = A(i,j) for 1<=i<=j;
if UPLO = 'L', AP(i + (j-1)*(2n-j)/2) = A(i,j) for j<=i<=n.
On exit, it's the equilibrated matrix: diag(S) * A * diag(S), in the same storage format as A. same fit, new energy π«Ά
SβREAL array, dimension (N). the scale factors forA.SCONDβREAL. ratio of the smallestS(i)to the largestS(i).AMAXβREAL. absolute value of largest matrix entry.EQUEDβCHARACTER*1. tells you whether or not equilibration was done:'N': No equilibration.'Y': Equilibration was done, i.e.,Ahas been replaced bydiag(S) * A * diag(S).
π Internal Parameters:
THRESHis a threshold value used to decide if scaling should be done based on the ratio of the scaling factors. IfSCOND < THRESH, scaling is done.LARGEandSMALLare threshold values used to decide if scaling should be done based on the absolute size of the largest matrix element. IfAMAX > LARGEorAMAX < SMALL, scaling is done.
π«Ά Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 125 of file claqhp.f.
claqsp β complex, symmetric/Hermitian, packed π
subroutine claqsp (character uplo, integer n, complex, dimension( * ) ap,
real, dimension( * ) s, real scond, real amax, character equed)
CLAQSP scales a symmetric/Hermitian matrix in packed storage, using scaling factors computed by sppequ.
π Purpose:
CLAQSP equilibrates a symmetric matrix A using the scaling factors in the vector S. no notes, she ate π₯
π Parameters
UPLOβCHARACTER*1. which triangle of the symmetric matrixAis stored, choose your fighter:'U': Upper triangular'L': Lower triangular
NβINTEGER. the order of the matrixA.N >= 0, always.APβCOMPLEX array, dimension (N*(N+1)/2). On entry: the upper or lower triangle of the symmetric matrixA, packed columnwise in a linear array. here's the mapping for the j-th column ofA:
if UPLO = 'U', AP(i + (j-1)*j/2) = A(i,j) for 1<=i<=j;
if UPLO = 'L', AP(i + (j-1)*(2n-j)/2) = A(i,j) for j<=i<=n.
On exit: the equilibrated matrix diag(S) * A * diag(S), sitting in the same storage format as A π
SβREAL array, dimension (N). The scale factors forA.SCONDβREAL. Ratio of the smallestS(i)to the largestS(i).AMAXβREAL. Absolute value of largest matrix entry.EQUEDβCHARACTER*1. Specifies whether or not equilibration was done:'N': No equilibration.'Y': Equilibration was done, i.e.,Ahas been replaced bydiag(S) * A * diag(S).
π Internal Parameters:
THRESHis a threshold value used to decide if scaling should be done based on the ratio of the scaling factors. IfSCOND < THRESH, scaling is done.LARGEandSMALLare threshold values used to decide if scaling should be done based on the absolute size of the largest matrix element. IfAMAX > LARGEorAMAX < SMALL, scaling is done.
π«Ά Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 125 of file claqsp.f.
dlaqsp β double precision edition π§
subroutine dlaqsp (character uplo, integer n, double precision, dimension( *
) ap, double precision, dimension( * ) s, double precision scond, double
precision amax, character equed)
DLAQSP scales a symmetric/Hermitian matrix in packed storage, using scaling factors computed by sppequ.
π Purpose:
DLAQSP equilibrates a symmetric matrix A using the scaling factors in the vector S. double the precision, double the slay πβ¨
π Parameters
UPLOβCHARACTER*1. Specifies whether the upper or lower triangular part of the symmetric matrixAis stored:'U': Upper triangular'L': Lower triangular
NβINTEGER. The order of the matrixA.N >= 0.APβDOUBLE PRECISION array, dimension (N*(N+1)/2). On entry, the upper or lower triangle of the symmetric matrixA, packed columnwise in a linear array. the j-th column ofAis stored inAPas follows:
if UPLO = 'U', AP(i + (j-1)*j/2) = A(i,j) for 1<=i<=j;
if UPLO = 'L', AP(i + (j-1)*(2n-j)/2) = A(i,j) for j<=i<=n.
On exit, the equilibrated matrix: diag(S) * A * diag(S), in the same storage format as A π
SβDOUBLE PRECISION array, dimension (N). The scale factors forA.SCONDβDOUBLE PRECISION. Ratio of the smallestS(i)to the largestS(i).AMAXβDOUBLE PRECISION. Absolute value of largest matrix entry.EQUEDβCHARACTER*1. Specifies whether or not equilibration was done:'N': No equilibration.'Y': Equilibration was done, i.e.,Ahas been replaced bydiag(S) * A * diag(S).
π Internal Parameters:
THRESHis a threshold value used to decide if scaling should be done based on the ratio of the scaling factors. IfSCOND < THRESH, scaling is done.LARGEandSMALLare threshold values used to decide if scaling should be done based on the absolute size of the largest matrix element. IfAMAX > LARGEorAMAX < SMALL, scaling is done.
π«Ά Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 124 of file dlaqsp.f.
slaqsp β single precision, single-minded focus π
subroutine slaqsp (character uplo, integer n, real, dimension( * ) ap, real,
dimension( * ) s, real scond, real amax, character equed)
SLAQSP scales a symmetric/Hermitian matrix in packed storage, using scaling factors computed by sppequ.
π Purpose:
SLAQSP equilibrates a symmetric matrix A using the scaling factors in the vector S. main character energy fr fr π
π Parameters
UPLOβCHARACTER*1. Specifies whether the upper or lower triangular part of the symmetric matrixAis stored:'U': Upper triangular'L': Lower triangular
NβINTEGER. The order of the matrixA.N >= 0.APβREAL array, dimension (N*(N+1)/2). On entry, the upper or lower triangle of the symmetric matrixA, packed columnwise in a linear array. the j-th column ofAis stored inAPas follows:
if UPLO = 'U', AP(i + (j-1)*j/2) = A(i,j) for 1<=i<=j;
if UPLO = 'L', AP(i + (j-1)*(2n-j)/2) = A(i,j) for j<=i<=n.
On exit, the equilibrated matrix: diag(S) * A * diag(S), in the same storage format as A β
SβREAL array, dimension (N). The scale factors forA.SCONDβREAL. Ratio of the smallestS(i)to the largestS(i).AMAXβREAL. Absolute value of largest matrix entry.EQUEDβ π«Ά hold that thought, bestie β more of this page is coming in part 2 πEQUEDisCHARACTER*1β it's the receipts, bestie π it tells you whether equilibration was actually done or not.= 'N': no equilibration, we left it alone.= 'Y': equilibration was done, i.e.,Ahas been replaced bydiag(S) * A * diag(S).
π§ Internal Parameters
THRESHis a threshold value used to decide if scaling should be done based on the ratio of the scaling factors. IfSCOND < THRESH, scaling is done.LARGEandSMALLare threshold values used to decide if scaling should be done based on the absolute size of the largest matrix element. IfAMAX > LARGEorAMAX < SMALL, scaling is done.
π Author
Univ. of Tennessee
Univ. of California Berkeley
Univ. of Colorado Denver
NAG Ltd.
Definition at line 124 of file slaqsp.f.
πΈ zlaqhp πΈ
subroutine zlaqhp (character uplo, integer n, complex*16, dimension( * ) ap,
double precision, dimension( * ) s, double precision scond, double
precision amax, character equed)
ZLAQHP scales a Hermitian matrix stored in packed form. That's the whole elevator pitch, no cap πβ¨
π― Purpose
ZLAQHPequilibrates a Hermitian matrixAusing the scaling factors in the vectorS.
π§© Parameters
UPLOisCHARACTER*1β bestie, this is the "which half are we storing" switch for the Hermitian matrixA.= 'U': upper triangular= 'L': lower triangular
NisINTEGERβ the order of the matrixA. Constraint check:N >= 0π«ΆAPisCOMPLEX*16array, dimension(N*(N+1)/2)β the packed triangle, living its best linear-array life. On entry, the upper or lower triangle of the Hermitian matrixA, packed columnwise in a linear array. Thej-th column ofAis stored in the arrayAPas follows:- if
UPLO = 'U',AP(i + (j-1)*j/2) = A(i,j)for1<=i<=j; - if
UPLO = 'L',AP(i + (j-1)*(2n-j)/2) = A(i,j)forj<=i<=n.
- if
On exit, the equilibrated matrix: diag(S) * A * diag(S), in the same storage format as A. It literally reinvented itself, icon behaviour π
SisDOUBLE PRECISIONarray, dimension(N)β the scale factors forA. The main characters tbh.SCONDisDOUBLE PRECISIONβ ratio of the smallestS(i)to the largestS(i). The little-to-big vibe check πAMAXisDOUBLE PRECISIONβ absolute value of largest matrix entry. The biggest fish in the matrix pond πEQUEDisCHARACTER*1β the receipts again, telling you if equilibration happened.= 'N': no equilibration.= 'Y': equilibration was done, i.e.,Ahas been replaced bydiag(S) * A * diag(S).
π§ Internal Parameters
THRESHis a threshold value used to decide if scaling should be done based on the ratio of the scaling factors. IfSCOND < THRESH, scaling is done.LARGEandSMALLare threshold values used to decide if scaling should be done based on the absolute size of the largest matrix element. IfAMAX > LARGEorAMAX < SMALL, scaling is done.
π Author
Univ. of Tennessee
Univ. of California Berkeley
Univ. of Colorado Denver
NAG Ltd.
Definition at line 125 of file zlaqhp.f.
π zlaqsp π
subroutine zlaqsp (character uplo, integer n, complex*16, dimension( * ) ap,
double precision, dimension( * ) s, double precision scond, double
precision amax, character equed)
ZLAQSP scales a symmetric/Hermitian matrix in packed storage, using scaling factors computed by sppequ. Family reunion of the scaling routines fr fr π«β¨
π― Purpose
ZLAQSPequilibrates a symmetric matrixAusing the scaling factors in the vectorS.
π§© Parameters
UPLOisCHARACTER*1β strikes again. Tells you whether the upper or lower triangular part of the symmetric matrixAis stored.= 'U': upper triangular= 'L': lower triangular
NisINTEGERβ the order of the matrixA.N >= 0, always check bestie π«ΆAPisCOMPLEX*16array, dimension(N*(N+1)/2)β the packed triangle, same deal, symmetric edition. On entry, the upper or lower triangle of the symmetric matrixA, packed columnwise in a linear array. Thej-th column ofAis stored in the arrayAPas follows:- if
UPLO = 'U',AP(i + (j-1)*j/2) = A(i,j)for1<=i<=j; - if
UPLO = 'L',AP(i + (j-1)*(2n-j)/2) = A(i,j)forj<=i<=n.
- if
On exit, the equilibrated matrix: diag(S) * A * diag(S), in the same storage format as A. Glow-up complete β¨
SisDOUBLE PRECISIONarray, dimension(N)β the scale factors forA.SCONDisDOUBLE PRECISIONβ ratio of the smallestS(i)to the largestS(i).AMAXisDOUBLE PRECISIONβ absolute value of largest matrix entry.EQUEDisCHARACTER*1β did we equilibrate or not, that is the question π= 'N': no equilibration.= 'Y': equilibration was done, i.e.,Ahas been replaced bydiag(S) * A * diag(S).
π§ Internal Parameters
THRESHis a threshold value used to decide if scaling should be done based on the ratio of the scaling factors. IfSCOND < THRESH, scaling is done.LARGEandSMALLare threshold values used to decide if scaling should be done based on the absolute size of the largest matrix element. IfAMAX > LARGEorAMAX < SMALL, scaling is done.
π Author
Univ. of Tennessee
Univ. of California Berkeley
Univ. of Colorado Denver
NAG Ltd.
Definition at line 125 of file zlaqsp.f.
π¦ Author π¦
Generated automatically by Doxygen for LAPACK from the source code.
okay that's the whole page bestie, you ate that π This lil beauty is from LAPACK, Version 3.12.0, page laqhp(3) β go forth and equilibrate responsibly, mwah πβ¨π«Ά
π¦ 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