TESTING/LIN/dppt01.f(3)
πΈ NAME πΈ
Okay bestie, this is the page TESTING/LIN/dppt01.f(3) from the Library Functions Manual, and the main character is DPPT01. Itβs a subroutine situation, and the vibe is very βreconstruct the matrix and check the residual.β No cap. π
β¨ SYNOPSIS β¨
Functions/Subroutines
subroutine dppt01 (uplo, n, a, afac, rwork, resid)
DPPT01
π Function/Subroutine Documentation π
subroutine dppt01 (character uplo, integer n, double precision, dimension( *
) a, double precision, dimension( * ) afac, double precision, dimension(
* ) rwork, double precision resid)
DPPT01
π Purpose π
DPPT01 reconstructs a symmetric positive definite packed matrix A from its L*L' or U'*U factorization and computes the residual
norm( L*L' - A ) / ( N * norm(A) * EPS )
or
norm( U'*U - A ) / ( N * norm(A) * EPS ),
where EPS is the machine epsilon. Thatβs the whole assignment, and it ate. π₯
π§ Parameters π§
UPLO
UPLOisCHARACTER*1β it specifies whether the upper or lower triangular part of the symmetric matrixAis stored:= 'U': upper triangular= 'L': lower triangular
N
NisINTEGERβ the number of rows and columns of the matrixA.N >= 0.
A
AisDOUBLE PRECISION array, dimension (N*(N+1)/2)β the original symmetric matrixA, stored as a packed triangular matrix.
AFAC
AFACisDOUBLE PRECISION array, dimension (N*(N+1)/2)β on entry, the factorLorUfrom theL*L'orU'*Ufactorization ofA, stored as a packed triangular matrix. It gets overwritten with the reconstructed matrix, and then with the differenceL*L' - A(orU'*U - A). So yes, itβs doing a full in-place glow-up. β¨
RWORK
RWORKisDOUBLE PRECISION array, dimension (N).
RESID
RESIDisDOUBLE PRECISION:- If
UPLO = 'L':norm(L*L' - A) / ( N * norm(A) * EPS ) - If
UPLO = 'U':norm(U'*U - A) / ( N * norm(A) * EPS )
- If
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 92 of file dppt01.f.
π Author π
Generated automatically by Doxygen for LAPACK from the source code.
Bye bestie π«Ά β this pageβs footer says LAPACK Version 3.12.0 and TESTING/LIN/dppt01.f(3). There was no date printed in the footer, so Iβm not making one up, 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