SGECON(3)
Hey bestie!! π Welcome to SGECON(3) from the Library Functions Manual β yes, the LAPACK one, and no, it is not scary. Itβs giving βletβs estimate a condition numberβ and honestly? iconic. π«Ά
π NAME π
SGECON lives at this exact source path, bestie β do not lose it:
/home/abuild/rpmbuild/BUILD/lapack-
static-3.12.0-build/lapack-3.12.0/SRC/sgecon.f
πΈ SYNOPSIS πΈ
π§ Functions/Subroutines π§
subroutine SGECON (norm, n, a, lda, anorm, rcond, work, iwork, info)β SGECON
π Function/Subroutine Documentation π
Hereβs the exact signature, character-for-character, because we do not play with code:
subroutine SGECON (character norm, integer n, real, dimension( lda, * ) a,
integer lda, real anorm, real rcond, real, dimension( * ) work, integer,
dimension( * ) iwork, integer info)
SGECON β thatβs the name, and itβs not a phase. β¨
π Purpose π
Okay so real talk: SGECON estimates the reciprocal of the condition number of a general real matrix A, in either the 1-norm or the infinity-norm, using the LU factorization computed by SGETRF.
An estimate is obtained for norm(inv(A)), and the reciprocal of the condition number is computed as:
RCOND = 1 / ( norm(A) * norm(inv(A)) ).
Lowkey important, highkey useful. π
π¦ Parameters π¦
NORMβNORM is CHARACTER*1. It specifies whether the 1-norm condition number or the infinity-norm condition number is required:= '1' or 'O':1-norm;= 'I':Infinity-norm.
NβN is INTEGER. The order of the matrixA.N >= 0.AβA is REAL array, dimension (LDA,N). The factorsLandUfrom the factorizationA = P*L*Uas computed bySGETRF.LDAβLDA is INTEGER. The leading dimension of the arrayA.LDA >= max(1,N).ANORMβANORM is REAL. IfNORM = '1' or 'O', the 1-norm of the original matrixA. IfNORM = 'I', the infinity-norm of the original matrixA.RCONDβRCOND is REAL. The reciprocal of the condition number of the matrixA, computed asRCOND = 1/(norm(A) * norm(inv(A))).WORKβWORK is REAL array, dimension (4*N).IWORKβIWORK is INTEGER array, dimension (N).INFOβINFO is INTEGER:= 0:successful exit< 0:ifINFO = -i, the i-th argument had an illegal value. NaNs are illegal values forANORM, and they propagate to the output parameterRCOND. Infinity is illegal forANORM, and it propagates to the output parameterRCONDas 0.= 1:ifRCOND = NaN, orRCOND = Inf, or the computed norm of the inverse ofAis 0. In the latter,RCOND = 0is returned.
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
π Definition π
Definition at line 130 of file sgecon.f.
πͺ Author (the generated one) πͺ
Generated automatically by Doxygen for LAPACK from the source code.
Okay thatβs the whole page, bestie β go forth and estimate those condition numbers responsibly. π«Ά Signed off with LAPACK Version 3.12.0 energy, from the footer path /home/abui...RC/sgecon.f(3). Mwah!! πβ¨
π¦ 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