TESTING/LIN/spot03.f(3)

πŸ“¦
version 3.12.1 Β· 3 versions
, in arch rolling

πŸŽ€ 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, AINV is expanded into a full matrix and multiplied by A, so the opposing triangle of AINV will be changed; i.e., if the upper triangular part of AINV is 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