SuperLU 6.0.1
|
Functions | |
int | zgst01 (int m, int n, SuperMatrix *A, SuperMatrix *L, SuperMatrix *U, int *perm_c, int *perm_r, double *resid) |
ZGST01 reconstructs a matrix A from its L*U factorization and computes the residual.
int zgst01 | ( | int | m, |
int | n, | ||
SuperMatrix * | A, | ||
SuperMatrix * | L, | ||
SuperMatrix * | U, | ||
int * | perm_c, | ||
int * | perm_r, | ||
double * | resid | ||
) |
ZGST01 reconstructs a matrix A from its L*U factorization and computes the residual norm(L*U - A) / ( N * norm(A) * EPS ), where EPS is the machine epsilon.
[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] | A | The original M x N matrix A, dimension(A->nrow, A->ncol). |
[in] | L | The factor matrix L, dimension(L->nrow, L->ncol). |
[in] | U | The factor matrix U, dimension(U->nrow, U->ncol). |
[in] | perm_c | The column permutation from ZGSTRF, dimension(N). |
[in] | perm_r | The pivot indices from ZGSTRF, dimension(M). |
[out] | resid | norm(L*U - A) / ( N * norm(A) * EPS ) |