TESTING/LIN/sppt02.f(3)
β¨ TESTING/LIN/sppt02.f(3) β¨
okay bestie, welcome to the Library Functions Manual page for TESTING/LIN/sppt02.f π«Ά this whole page is about the subroutine sppt02, and it is literally giving βpacked symmetric linear system residual checkβ energy. letβs get into it π
π NAME
TESTING/LIN/sppt02.f
β¨ SYNOPSIS
π§ Functions/Subroutines
subroutine sppt02 (uplo, n, nrhs, a, x, ldx, b, ldb, rwork, resid)
SPPT02 π
πΈ Function/Subroutine Documentation
subroutine sppt02 (character uplo, integer n, integer nrhs, real, dimension( * ) a, real, dimension( ldx, * ) x, integer ldx, real, dimension( ldb, * ) b, integer ldb, real, dimension( * ) rwork, real resid)
SPPT02 π
π― Purpose
okay so SPPT02 computes the residual in the solution of a symmetric system of linear equations A*x = b when packed storage is used for the coefficient matrix. the ratio computed is:
RESID = norm(B - A*X) / ( norm(A) * norm(X) * EPS),
where EPS is the machine precision. periodt β¨
π Parameters
UPLO
UPLOisCHARACTER*1β 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.
NRHS
NRHSisINTEGERβ the number of columns ofB, the matrix of right hand sides.NRHS >= 0.
A
AisREAL array, dimension (N*(N+1)/2)β the original symmetric matrixA, stored as a packed triangular matrix.
X
XisREAL array, dimension (LDX,NRHS)β the computed solution vectors for the system of linear equations.
LDX
LDXisINTEGERβ the leading dimension of the arrayX.LDX >= max(1,N).
B
BisREAL array, dimension (LDB,NRHS)β on entry, the right hand side vectors for the system of linear equations. On exit,Bis overwritten with the differenceB - A*X.
LDB
LDBisINTEGERβ the leading dimension of the arrayB.LDB >= max(1,N).
RWORK
RWORKisREAL array, dimension (N)β thatβs the whole spec, no extra lore π
RESID
RESIDisREALβ the maximum over the number of right hand sides ofnorm(B - A*X) / ( norm(A) * norm(X) * EPS ).
π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 120 of file sppt02.f.
π Author
Generated automatically by Doxygen for LAPACK from the source code.
mwah π signing off with the footer facts, bestie: this iconic page is from LAPACK Version 3.12.0 and TESTING/LIN/sppt02.f(3) ππ¦πΈ
π¦ 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