|
SuperLU 7.0.0
|

Functions | |
| int | cgst04 (int n, int nrhs, singlecomplex *x, int ldx, singlecomplex *xact, int ldxact, float rcond, float *resid) |
CGST04 computes the difference between a computed solution and the true solution to a system of linear equations.
| int cgst04 | ( | int | n, |
| int | nrhs, | ||
| singlecomplex * | x, | ||
| int | ldx, | ||
| singlecomplex * | xact, | ||
| int | ldxact, | ||
| float | rcond, | ||
| float * | resid | ||
| ) |
CGST04 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 | The number of rows of the matrices X and XACT. N >= 0. |
| [in] | nrhs | The number of columns of the matrices X and XACT. NRHS >= 0. |
| [in] | x | The computed solution vectors. Each vector is stored as a column of the matrix X, dimension (LDX,NRHS). |
| [in] | ldx | The leading dimension of the array X. LDX >= max(1,N). |
| [in] | xact | The exact solution vectors. Each vector is stored as a column of the matrix XACT, dimension(LDX, NRHS). |
| [in] | ldxact | The leading dimension of the array XACT. LDXACT >= max(1,N). |
| [in] | rcond | The reciprocal of the condition number of the coefficient matrix in the system of equations. |
| [out] | resid | The maximum over the NRHS solution vectors of ( norm(X-XACT) * RCOND ) / ( norm(XACT) * EPS ) |
