TESTING/LIN/zhpt01.f(3)
π TESTING/LIN/zhpt01.f(3) π
okay bestie, this page is from the Library Functions Manual, and it's giving βLAPACK testing internals but make it cuteβ π β¨
β¨ NAME β¨
TESTING/LIN/zhpt01.f
π¦ SYNOPSIS π¦
π Functions/Subroutines π
subroutine zhpt01 (uplo, n, a, afac, ipiv, c, ldc, rwork, resid)β theZHPT01girl herself π«Ά
π Function/Subroutine Documentation π
subroutine zhpt01 (character uplo, integer n, complex*16, dimension( * ) a,
complex*16, dimension( * ) afac, integer, dimension( * ) ipiv,
complex*16, dimension( ldc, * ) c, integer ldc, double precision,
dimension( * ) rwork, double precision resid)
ZHPT01 β iconic, honestly π
π§ Purpose π§
okay so ZHPT01 reconstructs a Hermitian indefinite packed matrix A from its block L*D*L' or U*D*U' factorization and computes the residual
norm( C - A ) / ( N * norm(A) * EPS ),
where C is the reconstructed matrix, EPS is the machine epsilon, L' is the conjugate transpose of L, and U' is the conjugate transpose of U. no cap, that's the whole vibe π«
π 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 number of rows and columns of the matrixA.N >= 0. periodt π
π¦ A π¦
AisCOMPLEX*16 array, dimension (N*(N+1)/2)β the original Hermitian matrixA, stored as a packed triangular matrix. literally packed with drama and data β¨
π AFAC π
AFACisCOMPLEX*16 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 the blockL*D*L'orU*D*U'factorization as computed byZHPTRF. she's got layers π«Ά
π IPIV π
IPIVisINTEGER array, dimension (N)β the pivot indices fromZHPTRF. pivot pivot slay π
β C β
CisCOMPLEX*16 array, dimension (LDC,N)β that's the reconstructed-matrix storage, bestie π
π LDC π
LDCisINTEGERβ the leading dimension of the arrayC.LDC >= max(1,N). don't skimp on the leading dimension, fr fr π
π§ RWORK π§
RWORKisDOUBLE PRECISION array, dimension (N)β workspace for the real-number side of the operation β¨
π₯ RESID π₯
RESIDisDOUBLE PRECISIONβ the residual, computed like this:- If
UPLO = 'L',norm(L*D*L' - A) / ( N * norm(A) * EPS ) - If
UPLO = 'U',norm(U*D*U' - A) / ( N * norm(A) * EPS )
- If
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
π Definition at line 112 of file zhpt01.f. π
that's the exact line, bestie β 112 of zhpt01.f π«Ά
πͺ Author πͺ
Generated automatically by Doxygen for LAPACK from the source code. yes, the docs wrote themselves, main character energy ππ
signed off with love from LAPACK Version 3.12.0 and the source file TESTING/LIN/zhpt01.f β this cutie was generated automatically by Doxygen for LAPACK from the source code, and that's the tea ππ¦β¨
π¦ 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