poequb(3)
β¨ NAME β¨
poequb β equilibration, power of 2 π
(yeah bestie, this is the poequb(3) page β Library Functions Manual, section 3, and it's literally four subroutines that all do the same iconic thing in different precisions π)
πΈ SYNOPSIS πΈ
Functions
subroutine cpoequb (n, a, lda, s, scond, amax, info)
CPOEQUB
subroutine dpoequb (n, a, lda, s, scond, amax, info)
DPOEQUB
subroutine spoequb (n, a, lda, s, scond, amax, info)
SPOEQUB
subroutine zpoequb (n, a, lda, s, scond, amax, info)
ZPOEQUB
π¦ DETAILED DESCRIPTION π¦
okay so real talk β this whole page is the same routine living its best life in four different data types, and each one gets its own little write-up below. no cap, they're identical apart from the type of the matrix and the type of the scale factors. pick the one that matches your array and slay. β¨
π FUNCTION DOCUMENTATION π
subroutine cpoequb (integer n, complex, dimension( lda, * ) a, integer lda, real, dimension( * ) s, real scond, real amax, integer info)
CPOEQUB
π Purpose
CPOEQUB computes row and column scalings intended to equilibrate a Hermitian positive definite matrix A and reduce its condition number (with respect to the two-norm). S contains the scale factors, S(i) = 1/sqrt(A(i,i)), chosen so that the scaled matrix B with elements B(i,j) = S(i)*A(i,j)*S(j) has ones on the diagonal. This choice of S puts the condition number of B within a factor N of the smallest possible condition number over all possible diagonal scalings.
This routine differs from CPOEQU 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 β and this is the tradeoff, bestie β the scaled diagonal entries are no longer approximately 1 but lie between sqrt(radix) and 1/sqrt(radix). periodt. π
π Parameters
NβNisINTEGER. The order of the matrixA.N >= 0. (yes, zero is allowed, she's flexible π)AβAisCOMPLEXarray, dimension(LDA,N). TheN-by-NHermitian positive definite matrix whose scaling factors are to be computed. Only the diagonal elements ofAare referenced β so don't stress about the rest, she's not looking πLDAβLDAisINTEGER. The leading dimension of the arrayA.LDA >= max(1,N).SβSisREALarray, dimension(N). IfINFO = 0,Scontains the scale factors forA. π«ΆSCONDβSCONDisREAL. IfINFO = 0,Scontains the ratio of the smallestS(i)to the largestS(i). IfSCOND >= 0.1andAMAXis neither too large nor too small, it is not worth scaling byS. like, don't bother, it's giving unnecessary effort πAMAXβAMAXisREAL. Absolute value of largest matrix element. IfAMAXis very close to overflow or very close to underflow, the matrix should be scaled. π¨INFOβINFOisINTEGER= 0: successful exit β< 0: ifINFO = -i, thei-th argument had an illegal value π> 0: ifINFO = i, thei-th diagonal element is nonpositive π
π Author
Univ. of Tennessee
Univ. of California Berkeley
Univ. of Colorado Denver
NAG Ltd.
Definition at line 118 of file cpoequb.f.
subroutine dpoequb (integer n, double precision, dimension( lda, * ) a, integer lda, double precision, dimension( * ) s, double precision scond, double precision amax, integer info)
DPOEQUB
π Purpose
DPOEQUB computes row and column scalings intended to equilibrate a symmetric positive definite matrix A and reduce its condition number (with respect to the two-norm). S contains the scale factors, S(i) = 1/sqrt(A(i,i)), chosen so that the scaled matrix B with elements B(i,j) = S(i)*A(i,j)*S(j) has ones on the diagonal. This choice of S puts the condition number of B within a factor N of the smallest possible condition number over all possible diagonal scalings.
This routine differs from DPOEQU 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 diagonal entries are no longer approximately 1 but lie between sqrt(radix) and 1/sqrt(radix). same energy, different precision, we love consistency β¨
π Parameters
NβNisINTEGER. The order of the matrixA.N >= 0.AβAisDOUBLE PRECISIONarray, dimension(LDA,N). TheN-by-Nsymmetric positive definite matrix whose scaling factors are to be computed. Only the diagonal elements ofAare referenced.LDAβLDAisINTEGER. The leading dimension of the arrayA.LDA >= max(1,N).SβSisDOUBLE PRECISIONarray, dimension(N). IfINFO = 0,Scontains the scale factors forA. π«ΆSCONDβSCONDisDOUBLE PRECISION. IfINFO = 0,Scontains the ratio of the smallestS(i)to the largestS(i). IfSCOND >= 0.1andAMAXis neither too large nor too small, it is not worth scaling byS.AMAXβAMAXisDOUBLE PRECISION. Absolute value of largest matrix element. IfAMAXis very close to overflow or very close to underflow, the matrix should be scaled. π₯INFOβINFOisINTEGER= 0: successful exit β< 0: ifINFO = -i, thei-th argument had an illegal value π> 0: ifINFO = i, thei-th diagonal element is nonpositive π
π Author
Univ. of Tennessee
Univ. of California Berkeley
Univ. of Colorado Denver
NAG Ltd.
Definition at line 117 of file dpoequb.f.
subroutine spoequb (integer n, real, dimension( lda, * ) a, integer lda, real, dimension( * ) s, real scond, real amax, integer info)
SPOEQUB
π Purpose
SPOEQUB computes row and column scalings intended to equilibrate a symmetric positive definite matrix A and reduce its condition number (with respect to the two-norm). S contains the scale factors, S(i) = 1/sqrt(A(i,i)), chosen so that the scaled matrix B with elements B(i,j) = S(i)*A(i,j)*S(j) has ones on the diagonal. This choice of S puts the condition number of B within a factor N of the smallest possible condition number over all possible diagonal scalings.
This routine differs from SPOEQU 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 diagonal entries are no longer approximately 1 but lie between sqrt(radix) and 1/sqrt(radix). the single-precision girlies are eating too π
π Parameters
NβNisINTEGER. The order of the matrixA.N >= 0.AβAisREALarray, dimension(LDA,N). TheN-by-Nsymmetric positive definite matrix whose scaling factors are to be computed. Only the diagonal elements ofAare referenced.LDAβLDAisINTEGER. The leading dimension of the arrayA.LDA >= max(1,N).SβSisREALarray, dimension(N). IfINFO = 0,Scontains the scale factors forA. π«ΆSCONDβSCONDisREAL. IfINFO = 0,Scontains the ratio of the smallestS(i)to the largestS(i). IfSCOND >= 0.1andAMAXis neither too large nor too small, it is not worth scaling byS.AMAXβAMAXisREAL. Absolute value of largest matrix element. IfAMAXis very close to overflow or very close to underflow, the matrix should be scaled. π¨INFOβINFOisINTEGER= 0: successful exit β< 0: ifINFO = -i, thei-th argument had an illegal value π> 0: ifINFO = i, thei-th diagonal element is nonpositive π
π Author
Univ. of Tennessee
Univ. of California Berkeley
Univ. of Colorado Denver
NAG Ltd.
Definition at line 117 of file spoequb.f.
subroutine zpoequb (integer n, complex*16, dimension( lda, * ) a, integer lda, double precision, dimension( * ) s, double precision scond, double precision amax, integer info)
ZPOEQUB
π Purpose
ZPOEQUB computes row and column scalings intended to equilibrate a Hermitian positive definite matrix A and reduce its condition number (with respect to the two-norm). S contains the scale factors, S(i) = 1/sqrt(A(i,i)), chosen so that the scaled matrix B with elements B(i,j) = S(i)*A(i,j)*S(j) has ones on the diagonal. This choice of S puts the condition number of B within a factor N of the smallest possible condition number over all possible diagonal scalings.
This routine differs from ZPOEQU 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 diagonal entries are no longer approximately 1 but lie between sqrt(radix) and 1/sqrt(radix). double-complex main character energy, honestly π
π Parameters
NβNisINTEGER. The order of the matrixA.N >= 0.AβAisCOMPLEX*16array, dimension(LDA,N). TheN-by-NHermitian positive definite matrix whose scaling factors are to be computed. Only the diagonal elements ofAare referenced.LDAβLDAisINTEGER. The leading dimension of the arrayA.LDA >= max(1,N).SβSisDOUBLE PRECISIONarray, dimension(N). IfINFO = 0,Scontains the scale factors forA. π«ΆSCONDβSCONDisDOUBLE PRECISION. IfINFO = 0,Scontains the ratio of the smallestS(i)to the largestS(i). IfSCOND >= 0.1andAMAXis neither too large nor too small, it is not worth scaling byS.AMAXAMAXβDOUBLE PRECISION. This is the absolute value of the largest matrix element. IfAMAXis very close to overflow or very close to underflow, the matrix should be scaled. No cap, handle that scaling situation bestie π«ΆINFOβINTEGER. The little report card of what happened:= 0: successful exit β¨< 0: ifINFO = -i, the i-th argument had an illegal value π> 0: ifINFO = i, the i-th diagonal element is nonpositive π
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
The definition is at line 118 of file zpoequb.f.
π€ Author (the automated one) π€
Generated automatically by Doxygen for LAPACK from the source code. The robots really said βwe got this oneβ π€π
Thatβs the whole vibe check, bestie. Source/version is LAPACK Version 3.12.0 and the footer is giving poequb(3) energy β the date isnβt printed in this footer, but the icon behavior absolutely is πβ¨
π¦ 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