Chi-Tech
linear_matrix_action_Ax.cc
Go to the documentation of this file.
2
4
5#include <petscksp.h>
6
7namespace chi_math
8{
9
10template<>
11int LinearSolverMatrixAction(Mat matrix, Vec vector, Vec action)
12{
14 MatShellGetContext(matrix,&context);
15
16 context->MatrixAction(matrix, vector, //inputs
17 action); //output
18
19 return 0;
20}
21
22}//namespace chi_math
23
int LinearSolverMatrixAction(Mat matrix, Vec vector, Vec action)
struct _p_Mat * Mat
struct _p_Vec * Vec
virtual int MatrixAction(MatType &matrix, VecType &vector, VecType &action)