TESTING/LIN/cget02.f(3)
π TESTING/LIN/cget02.f(3) π
okay so this is the TESTING/LIN/cget02.f page from the Library Functions Manual, and honestly? Itβs giving βsmall but mighty Fortran testing routineβ energy. Letβs get into it, bestie. π«Ά
π NAME π
TESTING/LIN/cget02.f β yes, thatβs the file, and itβs the main character of this page. Periodt. π
πΈ SYNOPSIS πΈ
β¨ Functions/Subroutines β¨
subroutine cget02 (trans, m, n, nrhs, a, lda, x, ldx, b, ldb, rwork,
resid)
CGET02
π¦ Function/Subroutine Documentation π¦
Hereβs the full signature, copied exactly because we do not play fast and loose with Fortran, bestie:
subroutine cget02 (character trans, integer m, integer n, integer nrhs,
complex, dimension( lda, * ) a, integer lda, complex, dimension( ldx, *
) x, integer ldx, complex, dimension( ldb, * ) b, integer ldb, real,
dimension( * ) rwork, real resid)
CGET02
π Purpose π
CGET02 computes the residual for a solution of a system of linear equations op(A)*X = B:
RESID = norm(B - op(A)*X) / ( norm(op(A)) * norm(X) * EPS ),
where op(A) = A, A**T, or A**H, depending on TRANS, and EPS is the machine epsilon. Iconic little residual check, no cap. β¨
π Parameters π
TRANSβTRANS is CHARACTER*1. Specifies the form of the system of equations:= 'N': A * X = B (No transpose)= 'T': A**T * X = B (Transpose)= 'C': A**H * X = B (Conjugate transpose)
MβM is INTEGER. The number of rows of the matrixA.M >= 0.NβN is INTEGER. The number of columns of the matrixA.N >= 0.NRHSβNRHS is INTEGER. The number of columns ofB, the matrix of right hand sides.NRHS >= 0.AβA is COMPLEX array, dimension (LDA,N). The originalM x NmatrixA.LDAβLDA is INTEGER. The leading dimension of the arrayA.LDA >= max(1,M).XβX is COMPLEX array, dimension (LDX,NRHS). The computed solution vectors for the system of linear equations.LDXβLDX is INTEGER. The leading dimension of the arrayX. IfTRANS = 'N',LDX >= max(1,N); ifTRANS = 'T'or'C',LDX >= max(1,M).BβB is COMPLEX array, dimension (LDB,NRHS). On entry, the right hand side vectors for the system of linear equations. On exit,Bis overwritten with the differenceB - op(A)*X.LDBβLDB is INTEGER. The leading dimension of the arrayB.IF TRANS = 'N',LDB >= max(1,M); ifTRANS = 'T'or'C',LDB >= max(1,N).RWORKβRWORK is REAL array, dimension (M).RESIDβRESID is REAL. The maximum over the number of right hand sides ofnorm(B - op(A)*X) / ( norm(op(A)) * norm(X) * EPS ).
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 132 of file cget02.f.
π Author π
Generated automatically by Doxygen for LAPACK from the source code.
π Cute sign-off: this is LAPACK Version 3.12.0, generated automatically by Doxygen for LAPACK from the source code. The footer doesnβt hand us a date, so Iβm not inventing one, bestie β no cap. Periodt. π
π¦ 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