18 #ifndef __PASO_SOLVER_H__ 19 #define __PASO_SOLVER_H__ 28 #define SOLVER_NO_ERROR 0 29 #define SOLVER_MAXITER_REACHED 1 30 #define SOLVER_INPUT_ERROR -1 31 #define SOLVER_MEMORY_ERROR -9 32 #define SOLVER_BREAKDOWN -10 33 #define SOLVER_NEGATIVE_NORM_ERROR -11 34 #define SOLVER_DIVERGENCE -12 36 #define TOLERANCE_FOR_SCALARS (double)(0.) 49 double* tolerance, Performance* pp);
52 double* tolerance, Performance* pp);
55 double* tolerance, Performance* pp);
58 double* tolerance, Performance* pp);
61 double* tolerance,
dim_t length_of_recursion,
dim_t restart,
65 dim_t* iter,
double* tolerance, Performance* pp);
72 #endif // __PASO_SOLVER_H__ err_t Solver_GMRES2(Function *F, const double *f0, const double *x0, double *dx, dim_t *iter, double *tolerance, Performance *pp)
Definition: GMRES2.cpp:23
#define PASO_DLL_API
Definition: Paso.h:41
void solve(SystemMatrix_ptr A, double *out, double *in, Options *options)
Definition: solve.cpp:38
err_t Solver_MINRES(SystemMatrix_ptr A, double *R, double *X, dim_t *iter, double *tolerance, Performance *pp)
Definition: MINRES.cpp:60
void Solver_free(SystemMatrix *A)
Definition: Solver.cpp:39
boost::shared_ptr< SystemMatrix > SystemMatrix_ptr
Definition: SystemMatrix.h:38
void Solver(SystemMatrix_ptr A, double *x, double *b, Options *options, Performance *pp)
calls the iterative solver
Definition: Solver.cpp:45
err_t Solver_PCG(SystemMatrix_ptr A, double *r, double *x, dim_t *iter, double *tolerance, Performance *pp)
Definition: PCG.cpp:63
int err_t
Definition: types.h:29
err_t Solver_NewtonGMRES(Function *F, double *x, Options *options, Performance *pp)
Definition: NewtonGMRES.cpp:40
err_t Solver_TFQMR(SystemMatrix_ptr A, double *B, double *X, dim_t *iter, double *tolerance, Performance *pp)
Definition: TFQMR.cpp:62
err_t Solver_GMRES(SystemMatrix_ptr A, double *r, double *x, dim_t *iter, double *tolerance, dim_t Length_of_recursion, dim_t restart, Performance *pp)
Definition: GMRES.cpp:67
index_t dim_t
Definition: types.h:27
void solve_free(SystemMatrix *in)
Definition: solve.cpp:116
err_t Solver_BiCGStab(SystemMatrix_ptr A, double *r, double *x, dim_t *iter, double *tolerance, Performance *pp)
Definition: BiCGStab.cpp:78