SuperLU 6.0.1
Functions
zgst01.c File Reference
#include <math.h>
#include "slu_zdefs.h"
Include dependency graph for zgst01.c:

Functions

int zgst01 (int m, int n, SuperMatrix *A, SuperMatrix *L, SuperMatrix *U, int *perm_c, int *perm_r, double *resid)
 

Detailed Description

ZGST01 reconstructs a matrix A from its L*U factorization and computes the residual.

Function Documentation

◆ zgst01()

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.

Parameters
[in]mThe number of rows of the matrix A. M >= 0.
[in]nThe number of columns of the matrix A. N >= 0.
[in]AThe original M x N matrix A, dimension(A->nrow, A->ncol).
[in]LThe factor matrix L, dimension(L->nrow, L->ncol).
[in]UThe factor matrix U, dimension(U->nrow, U->ncol).
[in]perm_cThe column permutation from ZGSTRF, dimension(N).
[in]perm_rThe pivot indices from ZGSTRF, dimension(M).
[out]residnorm(L*U - A) / ( N * norm(A) * EPS )
Here is the call graph for this function: