Chi-Tech
linear_matrix_action_Ax.cc
Go to the documentation of this file.
1
#include "
linear_matrix_action_Ax.h
"
2
3
#include "
linear_solver_context.h
"
4
5
#include <petscksp.h>
6
7
namespace
chi_math
8
{
9
10
template
<>
11
int
LinearSolverMatrixAction
(
Mat
matrix,
Vec
vector,
Vec
action)
12
{
13
LinearSolverContext<Mat,Vec>
* context;
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
linear_matrix_action_Ax.h
linear_solver_context.h
chi_math
Definition:
chi_runtime.h:42
chi_math::LinearSolverMatrixAction
int LinearSolverMatrixAction(Mat matrix, Vec vector, Vec action)
Definition:
linear_matrix_action_Ax.cc:11
Mat
struct _p_Mat * Mat
Definition:
petsc_forward_declarations.h:10
Vec
struct _p_Vec * Vec
Definition:
petsc_forward_declarations.h:9
chi_math::LinearSolverContext
Definition:
linear_solver_context.h:15
chi_math::LinearSolverContext::MatrixAction
virtual int MatrixAction(MatType &matrix, VecType &vector, VecType &action)
Definition:
linear_solver_context.h:21
framework
math
LinearSolver
linear_matrix_action_Ax.cc
Generated by
1.9.3