hpcon(3)
π
hpcon β Library Functions Manual, but make it cute π
okay so bestie, this is the hpcon(3) page from the Library Functions Manual, and it's literally the whole {hp,sp}con family β condition number estimation, six flavours, one vibe. It's long so we're splitting it, and this is part one. Buckle up π
β¨ NAME β¨
hpcon β {hp,sp}con: condition number estimate. that's it, that's the name, and yes they're all bundled together, iykyk π
β¨ SYNOPSIS β¨
πΈ Functions πΈ
subroutine chpcon (uplo, n, ap, ipiv, anorm, rcond, work, info)
CHPCON
subroutine cspcon (uplo, n, ap, ipiv, anorm, rcond, work, info)
CSPCON
subroutine dspcon (uplo, n, ap, ipiv, anorm, rcond, work, iwork, info)
DSPCON
subroutine sspcon (uplo, n, ap, ipiv, anorm, rcond, work, iwork, info)
SSPCON
subroutine zhpcon (uplo, n, ap, ipiv, anorm, rcond, work, info)
ZHPCON
subroutine zspcon (uplo, n, ap, ipiv, anorm, rcond, work, info)
ZSPCON
six little icons, one per precision/type taste test π
note the two extra iwork besties on dspcon and sspcon β they're the only ones who need an integer workspace, and we love them for it.
π¦ Detailed Description π¦
bestie there is literally nothing under this heading in the original. heading only. no text. it's giving minimalism, it's giving "the void stared back" π so we move on, no cap.
π Function Documentation π
π chpcon π
subroutine chpcon (character uplo, integer n, complex, dimension( * ) ap,
integer, dimension( * ) ipiv, real anorm, real rcond, complex,
dimension( * ) work, integer info)
CHPCON
Purpose
okay so CHPCON estimates the reciprocal of the condition number of a complex Hermitian packed matrix A, using the factorization A = U*D*U**H or A = L*D*L**H computed by CHPTRF.
an estimate is obtained for norm(inv(A)), and the reciprocal of the condition number is computed as RCOND = 1 / (ANORM * norm(inv(A))). math but make it fashion β¨
Parameters
UPLOβCHARACTER*1. specifies whether the details of the factorization are stored as an upper or lower triangular matrix.= 'U': upper triangular, form isA = U*D*U**H;= 'L': lower triangular, form isA = L*D*L**H.NβINTEGER. the order of the matrixA.N >= 0.APβCOMPLEXarray, dimension(N*(N+1)/2). the block diagonal matrixDand the multipliers used to obtain the factorUorLas computed byCHPTRF, stored as a packed triangular matrix.IPIVβINTEGERarray, dimension(N). details of the interchanges and the block structure ofDas determined byCHPTRF.ANORMβREAL. the 1-norm of the original matrixA.RCONDβREAL. the reciprocal of the condition number of the matrixA, computed asRCOND = 1/(ANORM * AINVNM), whereAINVNMis an estimate of the 1-norm ofinv(A)computed in this routine.WORKβCOMPLEXarray, dimension(2*N).INFOβINTEGER.= 0: successful exit;< 0: ifINFO = -i, the i-th argument had an illegal value.
Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 117 of file chpcon.f.
π cspcon π
subroutine cspcon (character uplo, integer n, complex, dimension( * ) ap,
integer, dimension( * ) ipiv, real anorm, real rcond, complex,
dimension( * ) work, integer info)
CSPCON
Purpose
CSPCON estimates the reciprocal of the condition number (in the 1-norm) of a complex symmetric packed matrix A, using the factorization A = U*D*U**T or A = L*D*L**T computed by CSPTRF.
an estimate is obtained for norm(inv(A)), and the reciprocal of the condition number is computed as RCOND = 1 / (ANORM * norm(inv(A))). same energy, different transpose flag π«Ά
β οΈ notice:**T, not**Hβ this is the symmetric one, bestie, don't mix her up withchpcon.
Parameters
UPLOβCHARACTER*1. specifies whether the details of the factorization are stored as an upper or lower triangular matrix.= 'U': upper triangular, form isA = U*D*U**T;= 'L': lower triangular, form isA = L*D*L**T.NβINTEGER. the order of the matrixA.N >= 0.APβCOMPLEXarray, dimension(N*(N+1)/2). the block diagonal matrixDand the multipliers used to obtain the factorUorLas computed byCSPTRF, stored as a packed triangular matrix.IPIVβINTEGERarray, dimension(N). details of the interchanges and the block structure ofDas determined byCSPTRF.ANORMβREAL. the 1-norm of the original matrixA.RCONDβREAL. the reciprocal of the condition number of the matrixA, computed asRCOND = 1/(ANORM * AINVNM), whereAINVNMis an estimate of the 1-norm ofinv(A)computed in this routine.WORKβCOMPLEXarray, dimension(2*N).INFOβINTEGER.= 0: successful exit;< 0: ifINFO = -i, the i-th argument had an illegal value.
Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 117 of file cspcon.f.
π₯ dspcon π₯
subroutine dspcon (character uplo, integer n, double precision, dimension( *
) ap, integer, dimension( * ) ipiv, double precision anorm, double
precision rcond, double precision, dimension( * ) work, integer,
dimension( * ) iwork, integer info)
DSPCON
Purpose
DSPCON estimates the reciprocal of the condition number (in the 1-norm) of a real symmetric packed matrix A, using the factorization A = U*D*U**T or A = L*D*L**T computed by DSPTRF.
an estimate is obtained for norm(inv(A)), and the reciprocal of the condition number is computed as RCOND = 1 / (ANORM * norm(inv(A))). double the precision, double the icon behaviour π
Parameters
UPLOβCHARACTER*1. specifies whether the details of the factorization are stored as an upper or lower triangular matrix.= 'U': upper triangular, form isA = U*D*U**T;= 'L': lower triangular, form isA = L*D*L**T.NβINTEGER. the order of the matrixA.N >= 0.APβDOUBLE PRECISIONarray, dimension(N*(N+1)/2). the block diagonal matrixDand the multipliers used to obtain the factorUorLas computed byDSPTRF, stored as a packed triangular matrix.IPIVβINTEGERarray, dimension(N). details of the interchanges and the block structure ofDas determined byDSPTRF.ANORMβDOUBLE PRECISION. the 1-norm of the original matrixA.RCONDβDOUBLE PRECISION. the reciprocal of the condition number of the matrixA, computed asRCOND = 1/(ANORM * AINVNM), whereAINVNMis an estimate of the 1-norm ofinv(A)computed in this routine.WORKβDOUBLE PRECISIONarray, dimension(2*N).IWORKβINTEGERarray, dimension(N).INFOβINTEGER.= 0: successful exit;< 0: ifINFO = -i, the i-th argument had an illegal value.
Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 123 of file dspcon.f.
πΈ sspcon πΈ
subroutine sspcon (character uplo, integer n, real, dimension( * ) ap,
integer, dimension( * ) ipiv, real anorm, real rcond, real, dimension( *
) work, integer, dimension( * ) iwork, integer info)
SSPCON
Purpose
SSPCON estimates the reciprocal of the condition number (in the 1-norm) of a real symmetric packed matrix A, using the factorization A = U*D*U**T or A = L*D*L**T computed by SSPTRF.
an estimate is obtained for norm(inv(A)), and the reciprocal of the condition number is computed as RCOND = 1 / (ANORM * norm(inv(A))). the single-precision sibling, she ate π
Parameters
UPLOβCHARACTER*1. specifies whether the details of the factorization are stored as an upper or lower triangular matrix.= 'U': upper triangular, form isA = U*D*U**T;= 'L': lower triangular, form isA = L*D*L**T.NβINTEGER. the order of the matrixA.N >= 0.APβREALarray, dimension(N*(N+1)/2). the block diagonal matrixDand the multipliers used to obtain the factorUorLas computed bySSPTRF, stored as a packed triangular matrix.IPIVβINTEGERarray, dimension(N). details of the interchanges and the block structure ofDas determined bySSPTRF.ANORMβREAL. the 1-norm of the original matrixA.RCONDβREAL. the reciprocal of the condition number of the matrixA, computed asRCOND = 1/(ANORM * AINVNM), whereAINVNMis an estimate of the 1-norm ofinv(A)computed in this routine.WORKβREALarray, dimension(2*N).IWORKβINTEGERarray, dimension(N).INFOβINTEGER.= 0: successful exit;< 0: ifINFO = -i, the i-th argument had an illegal value.
Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 123 of file sspcon.f.
π§ zhpcon π§
subroutine zhpcon (character uplo, integer n, complex*16, dimension( * ) ap,
integer, dimension( * ) ipiv, double precision anorm, double precision
rcond, complex*16, dimension( * ) work, integer info)
ZHPCON
Purpose
π«Ά and this is exactly where part one runs out, bestie β ZHPCON's purpose text starts right here and carries on into part two. no spoilers, no summing up, just vibes and a cliffhanger π
so bestie, ZHPCON is literally the vibe-check for how close your complex Hermitian packed matrix A is to being singular π it estimates the reciprocal of the condition number using the factorization A = U*D*U**H or A = L*D*L**H β and that factorization is the one computed by ZHPTRF, okay?? β¨ An estimate is obtained for norm(inv(A)), and the reciprocal of the condition number is computed as RCOND = 1 / (ANORM * norm(inv(A))). no cap, that's the whole formula π
Parameters
UPLOβUPLOisCHARACTER*1and it tells you whether the factorization details are stored as an upper or lower triangular matrix. The values are:= 'U': Upper triangular, form is A = U*D*U**H;and= 'L': Lower triangular, form is A = L*D*L**H.π«ΆNβNisINTEGER, the order of matrixA. Constraint:N >= 0. periodt.APβAPisCOMPLEX*16array, dimension(N*(N+1)/2). It's the block diagonal matrixDplus the multipliers used to obtain the factorUorLas computed byZHPTRF, stored as a packed triangular matrix. iconic storage fr.IPIVβIPIVisINTEGERarray, dimension(N). It holds the details of the interchanges and the block structure ofDas determined byZHPTRF. π₯ANORMβANORMisDOUBLE PRECISION, specifically the 1-norm of the original matrixA. πRCONDβRCONDisDOUBLE PRECISION, the reciprocal of the condition number of matrixA, computed asRCOND = 1/(ANORM * AINVNM), whereAINVNMis an estimate of the 1-norm ofinv(A)computed in this routine. math bestie.WORKβWORKisCOMPLEX*16array, dimension(2*N). πINFOβINFOisINTEGER.= 0: successful exitand< 0: if INFO = -i, the i-th argument had an illegal value. slay, no surprises.
Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
π Definition at line 117 of file zhpcon.f.
subroutine zspcon
subroutine zspcon (character uplo, integer n, complex*16, dimension( * ) ap,
integer, dimension( * ) ipiv, double precision anorm, double precision
rcond, complex*16, dimension( * ) work, integer info)
ZSPCON
Purpose
okay so ZSPCON estimates the reciprocal of the condition number (in the 1-norm) of a complex symmetric packed matrix A using the factorization A = U*D*U**T or A = L*D*L**T computed by ZSPTRF. An estimate is obtained for norm(inv(A)), and the reciprocal of the condition number is computed as RCOND = 1 / (ANORM * norm(inv(A))). literally the same energy but symmetric, not Hermitian π
Parameters
UPLOβUPLOisCHARACTER*1, specifying whether the factorization details are stored as an upper or lower triangular matrix. Values:= 'U': Upper triangular, form is A = U*D*U**T;and= 'L': Lower triangular, form is A = L*D*L**T.π¦NβNisINTEGER, the order of matrixA. Constraint:N >= 0. yes bestie, nonnegative only.APβAPisCOMPLEX*16array, dimension(N*(N+1)/2). It's the block diagonal matrixDand the multipliers used to obtain the factorUorLas computed byZSPTRF, stored as a packed triangular matrix. π packed and powerful.IPIVβIPIVisINTEGERarray, dimension(N). Details of the interchanges and the block structure ofDas determined byZSPTRF. πANORMβANORMisDOUBLE PRECISION, the 1-norm of the original matrixA. πΈRCONDβRCONDisDOUBLE PRECISION, the reciprocal of the condition number of matrixA, computed asRCOND = 1/(ANORM * AINVNM), whereAINVNMis an estimate of the 1-norm ofinv(A)computed in this routine. same formula, same drama.WORKβWORKisCOMPLEX*16array, dimension(2*N). βINFOβINFOisINTEGER.= 0: successful exitand< 0: if INFO = -i, the i-th argument had an illegal value. iykyk.
Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
π Definition at line 117 of file zspcon.f.
Author
Generated automatically by Doxygen for LAPACK from the source code.
mwah π and the footer vibe is source/version/date realness: LAPACK, Version 3.12.0, hpcon(3). bye bestie, go estimate those condition numbers responsibly π«Άβ¨
π¦ 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