TESTING/LIN/cpot01.f(3)
π TESTING/LIN/cpot01.f(3) π
okay so this page is from the Library Functions Manual, and the star of the show is literally TESTING/LIN/cpot01.f. buckle up bestie, it's giving LAPACK testing routine energy β¨
π NAME π
TESTING/LIN/cpot01.f β no cap, that's the name π
β¨ SYNOPSIS β¨
π§ Functions/Subroutines π§
subroutine cpot01 (uplo, n, a, lda, afac, ldafac, rwork, resid)
CPOT01
π¦ Function/Subroutine Documentation π¦
okay here's the full signature, copied exactly because we do not play with technical details:
subroutine cpot01 (character uplo, integer n, complex, dimension( lda, * )
a, integer lda, complex, dimension( ldafac, * ) afac, integer ldafac,
real, dimension( * ) rwork, real resid)
CPOT01 β that's the routine, periodt π
π― Purpose π―
okay so CPOT01 reconstructs a Hermitian positive definite matrix A from its L*L' or U'*U factorization, and then it computes the residual:
norm( L*L' - A ) / ( N * norm(A) * EPS )
norm( U'*U - A ) / ( N * norm(A) * EPS )
where EPS is the machine epsilon, L' is the conjugate transpose of L, and U' is the conjugate transpose of U. literally that's the whole purpose, and it ate π₯
π§Έ Parameters π§Έ
UPLOβUPLOisCHARACTER*1. It specifies whether the upper or lower triangular part of the Hermitian matrixAis stored:= 'U': Upper triangular= 'L': Lower triangular
NβNisINTEGER. The number of rows and columns of the matrixA.N >= 0.AβAisCOMPLEX array, dimension (LDA,N). The original Hermitian matrixA.LDAβLDAisINTEGER. The leading dimension of the arrayA.LDA >= max(1,N)AFACβAFACisCOMPLEX array, dimension (LDAFAC,N). On entry, the factorLorUfrom theL * L**HorU**H * Ufactorization ofA. Overwritten with the reconstructed matrix, and then with the differenceL * L**H - A(orU**H * U - A).LDAFACβLDAFACisINTEGER. The leading dimension of the arrayAFAC.LDAFAC >= max(1,N).RWORKβRWORKisREAL array, dimension (N)RESIDβRESIDisREAL. IfUPLO = 'L',norm(L * L**H - A) / ( N * norm(A) * EPS ); ifUPLO = 'U',norm(U**H * U - A) / ( N * norm(A) * EPS )
π§βπ» Author π§βπ»
these iconic institutions/companies, fr fr:
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 105 of file cpot01.f. β yup, line 105, bestie π
π€ Author π€
Generated automatically by Doxygen for LAPACK from the source code. β the robot did its thing π«Ά
π okay that's the whole page β source/version: LAPACK, Version 3.12.0; page: TESTING/LIN/cpot01.f(3); and the footer doesn't list a date, so no fake date from me, bestie ππ«Άβ¨
π¦ 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