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

Functions

int cgst01 (int m, int n, SuperMatrix *A, SuperMatrix *L, SuperMatrix *U, int *perm_c, int *perm_r, float *resid)
 

Detailed Description

CGST01 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.

Function Documentation

◆ cgst01()

int cgst01 ( int  m,
int  n,
SuperMatrix A,
SuperMatrix L,
SuperMatrix U,
int *  perm_c,
int *  perm_r,
float *  resid 
)

CGST01 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.
[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 CGSTRF, dimension (N).
[in]perm_rThe pivot indices from CGSTRF, dimension (M).
[out]residnorm(L*U - A) / ( N * norm(A) * EPS )
Here is the call graph for this function: