|
SuperLU 7.0.0
|

Functions | |
| int | sgst04 (int n, int nrhs, float *x, int ldx, float *xact, int ldxact, float rcond, float *resid) |
SGST04 computes the difference between a computed solution and the true solution to a system of linear equations.
| int sgst04 | ( | int | n, |
| int | nrhs, | ||
| float * | x, | ||
| int | ldx, | ||
| float * | xact, | ||
| int | ldxact, | ||
| float | rcond, | ||
| float * | resid | ||
| ) |
SGST04 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, dimension(LDX,NRHS). Each vector is stored as a column of the matrix X. |
| [in] | ldx | The leading dimension of the array X. LDX >= max(1,N). |
| [in] | xact | The exact solution vectors, dimension(LDX, NRHS). Each vector is stored as a column of the matrix XACT. |
| [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 ) |
