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

Functions

int dgst04 (int n, int nrhs, double *x, int ldx, double *xact, int ldxact, double rcond, double *resid)
 

Detailed Description

DGST04 computes the difference between a computed solution and the true solution to a system of linear equations.

Function Documentation

◆ dgst04()

int dgst04 ( int  n,
int  nrhs,
double *  x,
int  ldx,
double *  xact,
int  ldxact,
double  rcond,
double *  resid 
)

DGST04 computes the difference between a computed solution and the true solution to a system of linear equations. RESID = ( norm(X-XACT) * RCOND ) / ( norm(XACT) * EPS ), where RCOND is the reciprocal of the condition number and EPS is the machine epsilon.

Parameters
[in]nThe number of rows of the matrices X and XACT. N >= 0.
[in]nrhsThe number of columns of the matrices X and XACT. NRHS >= 0.
[in]xThe computed solution vectors, dimension (LDX,NRHS). Each vector is stored as a column of the matrix X.
[in]ldxThe leading dimension of the array X. LDX >= max(1,N).
[in]xactThe exact solution vectors, dimension(LDX,NRHS). Each vector is stored as a column of the matrix XACT.
[in]ldxactThe leading dimension of the array XACT. LDXACT >= max(1,N).
[in]rcondThe reciprocal of the condition number of the coefficient matrix in the system of equations.
[out]residThe maximum over the NRHS solution vectors of ( norm(X-XACT) * RCOND ) / ( norm(XACT) * EPS )
Here is the call graph for this function: