Go to the source code of this file.
Data Structures | |
struct | ILSI_Param |
This struct gives the input and output parameters for an IDXL_Solver. More... | |
Typedefs | |
typedef struct ILSI_Comm | ILSI_Comm |
An ILSI_Comm is actually a C++ class--see ilsi.h. | |
typedef void(* | ILSI_Solver )(ILSI_Param *param, ILSI_Comm *comm, int n, const double *b, double *x) |
An ILSI_Solver is a routine that computes, in parallel, the solution x to the linear equation A x = b. | |
Functions | |
void | ILSI_Param_new (ILSI_Param *param) |
Set default values for solver parameters. | |
void | ILSI_CG_Solver (ILSI_Param *param, ILSI_Comm *comm, int n, const double *b, double *x) |
Conjugate-gradient solver: requires symmetric positive definite matrix. |
typedef void(* ILSI_Solver)(ILSI_Param *param, ILSI_Comm *comm, int n, const double *b, double *x) |
An ILSI_Solver is a routine that computes, in parallel, the solution x to the linear equation A x = b.
ILSI_Solvers must be written in C++, since ILSI_Comm is C++.
param | Assorted input and output parameters for solver. | |
comm | The partitioned parallel matrix A and communication system for the solver. | |
n | The length of the local part of the solution vectors. | |
b | The local part of the known vector. Never modified. | |
x | On input, the initial guess for the solution. During execution, the intermediate solution values. On output, the final solution. |
void ILSI_Param_new | ( | ILSI_Param * | param | ) |
Set default values for solver parameters.
Definition at line 11 of file ilsi.C.
References ILSI_Param::iterations, ILSI_Param::maxIterations, ILSI_Param::maxResidual, ILSI_Param::residual, ILSI_Param::solverIn, and ILSI_Param::solverOut.
Referenced by main().
void ILSI_CG_Solver | ( | ILSI_Param * | param, | |
ILSI_Comm * | comm, | |||
int | n, | |||
const double * | b, | |||
double * | x | |||
) |
Conjugate-gradient solver: requires symmetric positive definite matrix.
Definition at line 78 of file cg.C.
References int, ILSI_Param::iterations, ILSI_Param::maxIterations, ILSI_Param::maxResidual, and ILSI_Param::residual.
Referenced by main().