TESTING/LIN/cspt01.f(3)
π NAME π
okay so bestie, this is the TESTING/LIN/cspt01.f(3) page from the Library Functions Manual β the file itself is TESTING/LIN/cspt01.f, and cspt01 is the main character here. no cap π
β¨ SYNOPSIS β¨
π¦ Functions/Subroutines π¦
subroutine cspt01 (uplo, n, a, afac, ipiv, c, ldc, rwork, resid)
CSPT01
π Function/Subroutine Documentation π
Hereβs the exact signature tea:
subroutine cspt01 (character uplo, integer n, complex, dimension( * ) a,
complex, dimension( * ) afac, integer, dimension( * ) ipiv, complex,
dimension( ldc, * ) c, integer ldc, real, dimension( * ) rwork, real
resid)
CSPT01
π Purpose π
CSPT01 reconstructs a symmetric indefinite packed matrix A from its diagonal pivoting factorization A = U*D*U' or A = L*D*L' and computes the residual
norm( C - A ) / ( N * norm(A) * EPS ),
where C is the reconstructed matrix and EPS is the machine epsilon. literally the reconstruction + residual vibe check β¨
πΈ Parameters πΈ
UPLOβUPLO is CHARACTER*1. It specifies whether the upper or lower triangular part of the Hermitian matrixAis stored:= 'U':Upper triangular= 'L':Lower triangular
NβN is INTEGER. Itβs the order of the matrixA.N >= 0.AβA is COMPLEX array, dimension (N*(N+1)/2). The original symmetric matrixA, stored as a packed triangular matrix.AFACβAFAC is COMPLEX array, dimension (N*(N+1)/2). The factored form of the matrixA, stored as a packed triangular matrix.AFACcontains the block diagonal matrixDand the multipliers used to obtain the factorLorUfrom theL*D*L'orU*D*U'factorization as computed byCSPTRF.IPIVβIPIV is INTEGER array, dimension (N). The pivot indices fromCSPTRF.CβC is COMPLEX array, dimension (LDC,N).LDCβLDC is INTEGER. The leading dimension of the arrayC.LDC >= max(1,N).RWORKβRWORK is REAL array, dimension (N).RESIDβRESID is REAL. The residual formula is:
If UPLO = 'L', norm(L*D*L' - A) / ( N * norm(A) * EPS )
If UPLO = 'U', norm(U*D*U' - A) / ( N * norm(A) * EPS )
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 111 of file cspt01.f.
π Author π
Generated automatically by Doxygen for LAPACK from the source code.
mwah π sign-off time: source/version is LAPACK Version 3.12.0, and the footerβs page tag is TESTING/LIN/cspt01.f(3) β no separate date is printed in that footer, so no invented date, periodt π«Ά
π¦ 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