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

Functions

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

Detailed Description

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

Function Documentation

◆ sgst01()

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

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