TESTING/LIN/ztpt01.f(3)
π TESTING/LIN/ztpt01.f π
okay so bestie, welcome to the TESTING/LIN/ztpt01.f(3) page from the Library Functions Manual β LAPACK's own ztpt01 corner of the universe. It's giving "tiny testing routine with main-character energy," and we're gonna read every single detail together, no skips, no cap. π
β¨ NAME β¨
TESTING/LIN/ztpt01.f
π¦ SYNOPSIS π¦
Functions/Subroutines
subroutine ztpt01 (uplo, diag, n, ap, ainvp, rcond, rwork, resid)
ZTPT01
π«Ά Function/Subroutine Documentation π«Ά
π« the subroutine signature π«
subroutine ztpt01 (character uplo, character diag, integer n, complex*16,
dimension( * ) ap, complex*16, dimension( * ) ainvp, double precision
rcond, double precision, dimension( * ) rwork, double precision resid)
ZTPT01
π‘ Purpose
Bestie, here's the tea: ZTPT01 computes the residual for a triangular matrix A times its inverse when A is stored in packed format:
RESID = norm(A*AINV - I) / ( N * norm(A) * norm(AINV) * EPS ),
where EPS is the machine epsilon. That's the whole purpose, and it ate. β¨
π Parameters
UPLOβUPLOisCHARACTER*1. Specifies whether the matrixAis upper or lower triangular.= 'U': Upper triangular= 'L': Lower triangular
DIAGβDIAGisCHARACTER*1. Specifies whether or not the matrixAis unit triangular.= 'N': Non-unit triangular= 'U': Unit triangular
NβNisINTEGER. The order of the matrixA.N >= 0.APβAPisCOMPLEX*16 array, dimension (N*(N+1)/2). The original upper or lower triangular matrixA, packed columnwise in a linear array. Thej-th column ofAis stored in the arrayAPas follows:
if UPLO = 'U', AP((j-1)*j/2 + i) = A(i,j) for 1<=i<=j;
if UPLO = 'L',
AP((j-1)*(n-j) + j*(j+1)/2 + i-j) = A(i,j) for j<=i<=n.
AINVPβAINVPisCOMPLEX*16 array, dimension (N*(N+1)/2). On entry, the (triangular) inverse of the matrixA, packed columnwise in a linear array as inAP. On exit, the contents ofAINVPare destroyed.
π yes bestie, AINVP gets wrecked on exit β that's not a vibe, that's just the spec.
RCONDβRCONDisDOUBLE PRECISION. The reciprocal condition number ofA, computed as1/(norm(A) * norm(AINV)).RWORKβRWORKisDOUBLE PRECISION array, dimension (N).RESIDβRESIDisDOUBLE PRECISION.norm(A*AINV - I) / ( N * norm(A) * norm(AINV) * EPS ).
π Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 108 of file ztpt01.f.
π Author π
Generated automatically by Doxygen for LAPACK from the source code.
bye bestie π β the footer credits LAPACK, Version 3.12.0, and TESTING/LIN/ztpt01.f(3); no separate date is printed on this page, so consider this your cute official sign-off. mwah π«Ά
π¦ 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