11 #ifndef SPARSPAKSOLVER_H_ 12 #define SPARSPAKSOLVER_H_ 36 int init(
int nrows,
int nnz,
int* xrow,
int* xcol);
39 double getDiag(
int i);
40 double getOffDiag(
int i);
43 void setDiag(
int i,
double a);
44 void setRhs(
int i,
double b);
45 void addToDiag(
int i,
double a);
46 void addToOffDiag(
int j,
double a);
47 void addToRhs(
int i,
double b);
48 int solve(
int n,
double x[]);
Abstract class for solving a set of linear equations.
Definition: matrixsolver.h:27
Description of the MatrixSolver class.
Solves Ax = b using the SPARSPAK routines.
Definition: sparspaksolver.h:25