![]() |
LAPACK 3.12.1
LAPACK: Linear Algebra PACKage
|
subroutine cget04 | ( | integer | n, |
integer | nrhs, | ||
complex, dimension( ldx, * ) | x, | ||
integer | ldx, | ||
complex, dimension( ldxact, * ) | xact, | ||
integer | ldxact, | ||
real | rcond, | ||
real | resid ) |
CGET04
!> !> CGET04 computes the difference between a computed solution and the !> true solution to a system of linear equations. !> !> RESID = ( norm(X-XACT) * RCOND ) / ( norm(XACT) * EPS ), !> where RCOND is the reciprocal of the condition number and EPS is the !> machine epsilon. !>
[in] | N | !> N is INTEGER !> The number of rows of the matrices X and XACT. N >= 0. !> |
[in] | NRHS | !> NRHS is INTEGER !> The number of columns of the matrices X and XACT. NRHS >= 0. !> |
[in] | X | !> X is COMPLEX array, dimension (LDX,NRHS) !> The computed solution vectors. Each vector is stored as a !> column of the matrix X. !> |
[in] | LDX | !> LDX is INTEGER !> The leading dimension of the array X. LDX >= max(1,N). !> |
[in] | XACT | !> XACT is COMPLEX array, dimension (LDX,NRHS) !> The exact solution vectors. Each vector is stored as a !> column of the matrix XACT. !> |
[in] | LDXACT | !> LDXACT is INTEGER !> The leading dimension of the array XACT. LDXACT >= max(1,N). !> |
[in] | RCOND | !> RCOND is REAL !> The reciprocal of the condition number of the coefficient !> matrix in the system of equations. !> |
[out] | RESID | !> RESID is REAL !> The maximum over the NRHS solution vectors of !> ( norm(X-XACT) * RCOND ) / ( norm(XACT) * EPS ) !> |
Definition at line 101 of file cget04.f.