CTRCON(3)
β¨ CTRCON β¨
okay bestie, so this is the LAPACK tea from ctrcon.f in the /home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/SRC/ directory β it's giving very specific, but we're gonna make it make sense π
π SYNOPSIS π
subroutine CTRCON (norm, uplo, diag, n, a, lda, rcond, work, rwork, info)
π«Ά FUNCTION/SUBROUTINE DOCUMENTATION π«Ά
πΈ The Full Signature (slay, literally) πΈ
subroutine CTRCON (character norm, character uplo, character diag, integer n, complex, dimension( lda, * ) a, integer lda, real rcond, complex, dimension( * ) work, real, dimension( * ) rwork, integer info)
π PURPOSE π
okay so picture this: CTRCON estimates the reciprocal of the condition number of a triangular matrix A β and it can do it in either the 1-norm or the infinity-norm, because we contain multitudes β¨
It computes the norm of A, gets an estimate for norm(inv(A)), and then does the cute little math:
RCOND = 1 / ( norm(A) * norm(inv(A)) ).
no cap, that's the whole vibe π
π PARAMETERS π
NORMβCHARACTER*1. This one tells us whether we're doing the 1-norm condition number or the infinity-norm condition number, and she's very particular:= '1'or'O': 1-norm= 'I': Infinity-norm
UPLOβCHARACTER*1. Which triangle are we working with, bestie?= 'U':Ais upper triangular= 'L':Ais lower triangular
DIAGβCHARACTER*1. Is the diagonal doing its own thing or are we assuming it's all ones?= 'N':Ais non-unit triangular= 'U':Ais unit triangular
NβINTEGER. The order of the matrixA. And she saidN >= 0, periodt.AβCOMPLEXarray, dimension(LDA,N). The triangular matrixAherself, the main character. Here's the tea:- If
UPLO = 'U', the leadingN-by-Nupper triangular part of the arrayAcontains the upper triangular matrix, and the strictly lower triangular part ofAis not referenced (we don't look at her, she's not invited). - If
UPLO = 'L', the leadingN-by-Nlower triangular part of the arrayAcontains the lower triangular matrix, and the strictly upper triangular part ofAis not referenced. same energy. - If
DIAG = 'U', the diagonal elements ofAare also not referenced and are assumed to be1. iconic behavior honestly.
- If
LDAβINTEGER. The leading dimension of the arrayA. Must beLDA >= max(1,N). no exceptions, bestie, that's the rule π¦RCONDβREAL. The reciprocal of the condition number of the matrixA, computed asRCOND = 1/(norm(A) * norm(inv(A))). this is the moment, the whole reason we're here πWORKβCOMPLEXarray, dimension(2*N). just vibes and workspace.RWORKβREALarray, dimension(N). more workspace, but real this time.INFOβINTEGER. The receipts:= 0: successful exit π< 0: ifINFO = -i, thei-th argument had an illegal value. not cute, fix it.
π AUTHOR π
Univ. of Tennessee
Univ. of California Berkeley
Univ. of Colorado Denver
NAG Ltd.
β DEFINITION β
Defined at line 135 of file ctrcon.f.
and that's the whole breakdown, bestie β generated automatically by Doxygen for LAPACK from the source code, from LAPACK Version 3.12.0, dated /home/abui...RC/ctrcon.f(3). we love a technically accurate slay π
π¦ 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