TESTING/LIN/cget04.f(3)
๐ฆ NAME ๐ฆ
Okay bestie, welcome to the TESTING/LIN/cget04.f page from the Library Functions Manual ๐
โจ โ this is the CGET04 subroutineโs whole moment, and no cap, every detail is staying right here.
TESTING/LIN/cget04.f โ yes, thatโs the file name, and CGET04 is the star of the show ๐
โจ SYNOPSIS โจ
๐ง Functions/Subroutines ๐ง
subroutine cget04 (n, nrhs, x, ldx, xact, ldxact, rcond, resid)
CGET04 โ icon behavior only ๐ฅ
๐ Function/Subroutine Documentation ๐
subroutine cget04 (integer n, integer nrhs, complex, dimension( ldx, * ) x,
integer ldx, complex, dimension( ldxact, * ) xact, integer ldxact, real
rcond, real resid)
CGET04 โ sheโs documented, sheโs precise, sheโs booked and busy ๐
๐ Purpose ๐
Bestie, CGET04 computes the difference between a computed solution and the true solution to a system of linear equations ๐งฎโจ
The formula is literally:
RESID = ( norm(X-XACT) * RCOND ) / ( norm(XACT) * EPS ),
where RCOND is the reciprocal of the condition number and EPS is the machine epsilon. Thatโs the whole numerical vibe check ๐ซถ
๐ Parameters ๐
NโN is INTEGER; itโs the number of rows of the matricesXandXACT. Bestie,N >= 0๐NRHSโNRHS is INTEGER; itโs the number of columns of the matricesXandXACT. And yes,NRHS >= 0โจXโX is COMPLEX array, dimension (LDX,NRHS); these are the computed solution vectors. Each vector is stored as a column of the matrixX, periodt ๐LDXโLDX is INTEGER; this is the leading dimension of the arrayX, and the rule isLDX >= max(1,N)๐XACTโXACT is COMPLEX array, dimension (LDX,NRHS); these are the exact solution vectors. Each vector is stored as a column of the matrixXACT๐ธLDXACTโLDXACT is INTEGER; this is the leading dimension of the arrayXACT, withLDXACT >= max(1,N)๐ฆRCONDโRCOND is REAL; itโs the reciprocal of the condition number of the coefficient matrix in the system of equations ๐RESIDโRESID is REAL; itโs the maximum over theNRHSsolution vectors of( norm(X-XACT) * RCOND ) / ( norm(XACT) * EPS )โ yes, that exact formula, no edits ๐ฅ
๐ซถ Author ๐ซถ
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 101 of file cget04.f. ๐
๐ Author ๐
Generated automatically by Doxygen for LAPACK from the source code.
Footer sign-off: LAPACK ยท Version 3.12.0 ยท TESTING/LIN/cget04.f(3) โ thatโs the source/version/date tea from the last line, kept cute and exact, with no invented date, bestie ๐ซถ๐โจ
๐ฆ 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