Chi-Tech
linear_solver_context.h
Go to the documentation of this file.
1#ifndef CHITECH_LINEAR_SOLVER_CONTEXT_H
2#define CHITECH_LINEAR_SOLVER_CONTEXT_H
3
4namespace chi_math
5{
7 {
8 NONE = 0,
9 RHS_NORM = 1,
11 CUSTOM_SCALE = 3
12 };
13 template<class MatType, class VecType>
15 {
16 double rhs_norm = 0.0;
20
21 virtual int MatrixAction(MatType& matrix, VecType& vector, VecType& action)
22 {return 0;}
23
24 virtual ~LinearSolverContext() = default;
25 };
26}//namespace chi_math
27
28#endif //CHITECH_LINEAR_SOLVER_CONTEXT_H
virtual int MatrixAction(MatType &matrix, VecType &vector, VecType &action)
virtual ~LinearSolverContext()=default