TESTING/LIN/spot03.f(3)
π TESTING/LIN/spot03.f(3) π
okay so bestie, welcome to the Library Functions Manual page for TESTING/LIN/spot03.f(3) β it's giving LAPACK testing subroutine, and we're gonna read it together. π
β¨
π NAME π
TESTING/LIN/spot03.f β literally the name, no cap.
β¨ SYNOPSIS β¨
π§ Functions/Subroutines π§
subroutine spot03 (uplo, n, a, lda, ainv, ldainv, work, ldwork, rwork, rcond, resid)βSPOT03
π¦ Function/Subroutine Documentation π¦
Here's the actual signature, copied exactly so nobody comes for me:
subroutine spot03 (character uplo, integer n, real, dimension( lda, * ) a,
integer lda, real, dimension( ldainv, * ) ainv, integer ldainv, real,
dimension( ldwork, * ) work, integer ldwork, real, dimension( * ) rwork,
real rcond, real resid)
SPOT03
SPOT03 β that's the icon, periodt.
π― Purpose π―
SPOT03 computes the residual for a symmetric matrix times its inverse:
norm( I - A*AINV ) / ( N * norm(A) * norm(AINV) * EPS )
where EPS is the machine epsilon. π
πΈ Parameters πΈ
π UPLO
UPLO is CHARACTER*1 β it says whether the upper or lower triangular part of the symmetric matrix A is stored:
= 'U': Upper triangular= 'L': Lower triangular
π N
N is INTEGER β the number of rows and columns of the matrix A. N >= 0. π«Ά
π A
A is REAL array, dimension (LDA,N) β the original symmetric matrix A. Iconic.
π LDA
LDA is INTEGER β the leading dimension of the array A. LDA >= max(1,N). π₯
π AINV
AINV is REAL array, dimension (LDAINV,N) β on entry, the inverse of the matrix A, stored as a symmetric matrix in the same format as A.
β οΈ bestie, important: in this version,AINVis expanded into a full matrix and multiplied byA, so the opposing triangle ofAINVwill be changed; i.e., if the upper triangular part ofAINVis stored, the lower triangular part will be used as work space. So yeah, it's not staying exactly as you left it. π
π LDAINV
LDAINV is INTEGER β the leading dimension of the array AINV. LDAINV >= max(1,N). β¨
π WORK
WORK is REAL array, dimension (LDWORK,N). π§
π LDWORK
LDWORK is INTEGER β the leading dimension of the array WORK. LDWORK >= max(1,N). π
π RWORK
RWORK is REAL array, dimension (N). π
π RCOND
RCOND is REAL β the reciprocal of the condition number of A, computed as ( 1/norm(A) ) / norm(AINV). π
π RESID
RESID is REAL β norm(I - A*AINV) / ( N * norm(A) * norm(AINV) * EPS ). β
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 123 of file spot03.f. π
π Author π
Generated automatically by Doxygen for LAPACK from the source code. π€π
mwah! This page is from LAPACK, Version 3.12.0, and it's the TESTING/LIN/spot03.f(3) page β bye bestie, go slay your residuals! ππ
β¨
π¦ 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