CSPT01(3)
๐ CSPT01(3) ๐
okay bestie, welcome to the Library Functions Manual corner of the group chat. Header vibes: CSPT01(3), path /home/abui...IN/cspt01.f(3). Todayโs main character is CSPT01, a LAPACK testing subroutine that reconstructs stuff and checks the residual. No cap, itโs very โtrust but verifyโ energy. โจ
โจ NAME โจ
/home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/TESTING/LIN/cspt01.f โ thatโs the file, and CSPT01 is the subroutine living in it. Main character energy fr fr. ๐
๐ฆ SYNOPSIS ๐ฆ
๐ง Functions/Subroutines ๐ง
subroutine CSPT01 (uplo, n, a, afac, ipiv, c, ldc, rwork, resid)
CSPT01
๐ Function/Subroutine Documentation ๐
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 ๐
Okay so CSPT01 reconstructs a symmetric indefinite packed matrix A from its diagonal pivoting factorization A = U*D*U' or A = L*D*L', then computes the residual:
norm( C - A ) / ( N * norm(A) * EPS ),
where C is the reconstructed matrix and EPS is the machine epsilon. Itโs giving โput it back together and check the mathโ realness. ๐
๐ธ Parameters ๐ธ
๐ค UPLO
UPLOisCHARACTER*1โ specifies whether the upper or lower triangular part of the Hermitian matrixAis stored:= 'U': Upper triangular= 'L': Lower triangular
๐ข N
NisINTEGERโ the order of the matrixA.N >= 0.
๐งฉ A
AisCOMPLEX array, dimension (N*(N+1)/2)โ the original symmetric matrixA, stored as a packed triangular matrix.
๐๏ธ AFAC
AFACisCOMPLEX 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
IPIVisINTEGER array, dimension (N)โ the pivot indices fromCSPTRF.
๐งฎ C
CisCOMPLEX array, dimension (LDC,N)โ thatโs the whole spec, bestie.
๐ LDC
LDCisINTEGERโ the leading dimension of the arrayC.LDC >= max(1,N).
๐งบ RWORK
RWORKisREAL array, dimension (N)โ yes, thatโs all the original gives us.
๐ฏ RESID
RESIDisREALโ ifUPLO = 'L', itโsnorm(L*D*L' - A) / ( N * norm(A) * EPS ); ifUPLO = 'U', itโsnorm(U*D*U' - A) / ( N * norm(A) * EPS ).
๐ Author ๐
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
๐ Definition ๐
Definition at line 111 of file cspt01.f.
๐ซ Author ๐ซ
Generated automatically by Doxygen for LAPACK from the source code.
๐ Thatโs the whole page, bestie. Source/version energy: LAPACK Version 3.12.0, footer path /home/abui...IN/cspt01.f(3). The footer doesnโt give a separate date to shout out, so Iโm not inventing one โ periodt. ๐ซถ
๐ฆ 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