TESTING/LIN/cget04.f(3)

๐Ÿ“ฆ
version 3.12.1 ยท 2 versions
, in arch rolling

๐Ÿฆ‹ 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 matrices X and XACT. Bestie, N >= 0 ๐Ÿ’…
  • NRHS โ€” NRHS is INTEGER; itโ€™s the number of columns of the matrices X and XACT. 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 matrix X, periodt ๐ŸŽ€
  • LDX โ€” LDX is INTEGER; this is the leading dimension of the array X, and the rule is LDX >= 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 matrix XACT ๐ŸŒธ
  • LDXACT โ€” LDXACT is INTEGER; this is the leading dimension of the array XACT, with LDXACT >= 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 the NRHS solution 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