Advanced Multi-Physics (AMP)
On-Line Documentation
EpetraMatrixOperator.h
Go to the documentation of this file.
1#ifndef included_AMP_EpetraMatrixOperator_h
2#define included_AMP_EpetraMatrixOperator_h
3
4#include "AMP/matrices/trilinos/ManagedEpetraMatrix.h"
5#include "AMP/operators/LinearOperator.h"
6#include "AMP/operators/trilinos/EpetraMatrixOperatorParameters.h"
7
8namespace AMP::Operator {
9
11{
12private:
13 std::shared_ptr<AMP::LinearAlgebra::Variable> d_Input, d_Output;
14
15public:
16 explicit EpetraMatrixOperator( std::shared_ptr<EpetraMatrixOperatorParameters> params )
17 : LinearOperator( params )
18 {
19 std::shared_ptr<AMP::LinearAlgebra::Matrix> t(
20 new AMP::LinearAlgebra::ManagedEpetraMatrix( params->d_Matrix ) );
21 setMatrix( t );
22 }
23
25};
26} // namespace AMP::Operator
27
28#endif
A class that wraps an Epetra_CrsMatrix.
EpetraMatrixOperator(std::shared_ptr< EpetraMatrixOperatorParameters > params)
std::shared_ptr< AMP::LinearAlgebra::Variable > d_Output
std::shared_ptr< AMP::LinearAlgebra::Variable > d_Input
virtual void setMatrix(std::shared_ptr< AMP::LinearAlgebra::Matrix > in_mat)
std::shared_ptr< AMP::Operator::Operator > shared_ptr
Definition Operator.h:29



Advanced Multi-Physics (AMP)
Oak Ridge National Laboratory
Idaho National Laboratory
Los Alamos National Laboratory
This page automatically produced from the
source code by doxygen
Last updated: Tue Mar 10 2026 13:06:41.
Comments on this page