ZGECON(3)
π ZGECON(3) β the girlies' guide to estimating condition numbers β¨
okay so bestie, welcome to the ZGECON page, from the LAPACK library functions manual β the file lives at /home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/SRC/zgecon.f and honestly it's giving very "let me tell you about your matrix's health" energy π«Ά
β¨ SYNOPSIS β¨
Functions/Subroutines:
subroutine ZGECON (norm, n, a, lda, anorm, rcond, work, rwork, info)
ZGECON. that's her. that's the icon. π
π¦ Function/Subroutine Documentation π¦
subroutine ZGECON (character norm, integer n, complex*16, dimension( lda, * ) a, integer lda, double precision anorm, double precision rcond, complex*16, dimension( * ) work, double precision, dimension( * ) rwork, integer info)
ZGECON π
πΈ Purpose:
!> !> ZGECON estimates the reciprocal of the condition number of a general !> complex matrix A, in either the 1-norm or the infinity-norm, using !> the LU factorization computed by ZGETRF. !> !> 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)) ). !>
so basically it's like a vibe check for your matrix β it tells you how close to β¨troubleβ¨ inverting A is gonna be. no cap. π₯
π Parameters π
NORMβ ok soNORMisCHARACTER*1and it's literally the main character here, it decides which condition number you want:
!> NORM is CHARACTER*1 !> Specifies whether the 1-norm condition number or the !> infinity-norm condition number is required: !> = '1' or 'O': 1-norm; !> = 'I': Infinity-norm. !>
NβNisINTEGER, the order of the matrixA. and bestie,N >= 0. periodt.
!> N is INTEGER !> The order of the matrix A. N >= 0. !>
AβAis aCOMPLEX*16 array, dimension (LDA,N)β it's holding the factorsLandUfrom the factorizationA = P*L*Uas computed byZGETRF. like she already did the work, we're just checking her vibe π
!> A is COMPLEX*16 array, dimension (LDA,N) !> The factors L and U from the factorization A = P*L*U !> as computed by ZGETRF. !>
LDAβLDAisINTEGER, the leading dimension of the arrayA. and it better beLDA >= max(1,N). no exceptions, babes.
!> LDA is INTEGER !> The leading dimension of the array A. LDA >= max(1,N). !>
ANORMβANORMisDOUBLE PRECISION. ifNORM = '1'or'O', it's the 1-norm of the original matrixA. ifNORM = 'I', it's the infinity-norm of the original matrixA. pick your fighter π
!> ANORM is DOUBLE PRECISION !> If NORM = '1' or 'O', the 1-norm of the original matrix A. !> If NORM = 'I', the infinity-norm of the original matrix A. !>
RCONDβRCONDisDOUBLE PRECISIONand this is the payoff, the moment we've all been waiting for π it's the reciprocal of the condition number of the matrixA, computed asRCOND = 1/(norm(A) * norm(inv(A))).
!> RCOND is DOUBLE PRECISION !> The reciprocal of the condition number of the matrix A, !> computed as RCOND = 1/(norm(A) * norm(inv(A))). !>
WORKβWORKis aCOMPLEX*16 array, dimension (2*N). do not forget the 2, bestie. π«Ά
!> WORK is COMPLEX*16 array, dimension (2*N) !>
RWORKβRWORKis aDOUBLE PRECISION array, dimension (2*N). same energy, different type. π
!> RWORK is DOUBLE PRECISION array, dimension (2*N) !>
INFOβINFOisINTEGERand it's the one who tells you if everything slayed or if it flopped:
!> INFO is INTEGER !> = 0: successful exit !> < 0: if INFO = -i, the i-th argument had an illegal value. !> NaNs are illegal values for ANORM, and they propagate to !> the output parameter RCOND. !> Infinity is illegal for ANORM, and it propagates to the output !> parameter RCOND as 0. !> = 1: if RCOND = NaN, or !> RCOND = Inf, or !> the computed norm of the inverse of A is 0. !> In the latter, RCOND = 0 is returned. !>
π¨ lowkey important:NaNis an illegal value forANORMand it propagates to the output parameterRCOND.Infinityis also illegal forANORMand it propagates toRCONDas0. and ifINFO = 1because the computed norm of the inverse ofAis0, thenRCOND = 0gets returned. know the lore, iykyk π
π Author π
absolute icons, the whole squad:
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 130 of file zgecon.f.
π Author (the meta one) π
Generated automatically by Doxygen for LAPACK from the source code. she's auto-generated, she's cunty, she's doing her best πΈ
LAPACK, Version 3.12.0 β mwah, that's the tea, thanks for coming to my ted talk, go forth and estimate those condition numbers responsibly πβ¨ππ¦
π¦ 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