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

Functions

int sgst04 (int n, int nrhs, float *x, int ldx, float *xact, int ldxact, float rcond, float *resid)
 

Detailed Description

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

Function Documentation

◆ sgst04()

int sgst04 ( int  n,
int  nrhs,
float *  x,
int  ldx,
float *  xact,
int  ldxact,
float  rcond,
float *  resid 
)

SGST04 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: