SuperLU 6.0.1
|
#include "slu_ddefs.h"
Functions | |
int | dgst02 (trans_t trans, int m, int n, int nrhs, SuperMatrix *A, double *x, int ldx, double *b, int ldb, double *resid) |
DGST02 computes the residual for a solution of a system of linear equations A*x = b or A'*x = b: RESID = norm(B - A*X) / ( norm(A) * norm(X) * EPS ), where EPS is the machine epsilon.
int dgst02 | ( | trans_t | trans, |
int | m, | ||
int | n, | ||
int | nrhs, | ||
SuperMatrix * | A, | ||
double * | x, | ||
int | ldx, | ||
double * | b, | ||
int | ldb, | ||
double * | resid | ||
) |
DGST02 computes the residual for a solution of a system of linear equations A*x = b or A'*x = b: RESID = norm(B - A*X) / ( norm(A) * norm(X) * EPS ), where EPS is the machine epsilon.
[in] | trans | Specifies the form of the system of equations: = NOTRANS: A *x = b = TRANS : A'*x = b, where A' is the transpose of A = CONJ : A'*x = b, where A' is the transpose of A |
[in] | m | The number of rows of the matrix A. M >= 0. |
[in] | n | The number of columns of the matrix A. N >= 0. |
[in] | nrhs | The number of columns of B, the matrix of right hand sides. NRHS >= 0. |
[in] | A | The original M x N sparse matrix A, dimension (LDA,N). |
[in] | x | The computed solution vectors for the system of linear equations, dimension (LDX,NRHS). |
[in] | ldx | The leading dimension of the array X. If TRANS = NOTRANS, LDX >= max(1,N); if TRANS = TRANS or CONJ, LDX >= max(1,M). |
[in,out] | b | On entry, the right hand side vectors for the system of linear equations, dimension(LDB,NRHS). On exit, B is overwritten with the difference B - A*X. |
[in] | ldb | The leading dimension of the array B. IF TRANS = NOTRANS, LDB >= max(1,M); if TRANS = TRANS or CONJ, LDB >= max(1,N). |
[out] | resid | The maximum over the number of right hand sides of norm(B - A*X) / ( norm(A) * norm(X) * EPS ). |