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

Functions

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

Detailed Description

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

Function Documentation

◆ cgst04()

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

CGST04 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. Each vector is stored as a column of the matrix X, dimension (LDX,NRHS).
[in]ldxThe leading dimension of the array X. LDX >= max(1,N).
[in]xactThe exact solution vectors. Each vector is stored as a column of the matrix XACT, dimension(LDX, NRHS).
[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: