MFEM
v3.1
Finite element discretization library
|
Abstract operator. More...
#include <operator.hpp>
Inherited by BackwardEulerOperator, BackwardEulerOperator, mfem::BlockOperator, mfem::HypreParMatrix, mfem::IdentityOperator, mfem::Matrix, mfem::miniapps::IrrotationalProjector, mfem::NonlinearForm, mfem::RAPOperator, mfem::Solver, mfem::TimeDependentOperator, and mfem::TransposeOperator.
Public Member Functions | |
Operator (int s=0) | |
Construct a square Operator with given size s (default 0) More... | |
Operator (int h, int w) | |
int | Height () const |
Get the height (size of output) of the Operator. Synonym with NumRows. More... | |
int | NumRows () const |
int | Width () const |
Get the width (size of input) of the Operator. Synonym with NumCols. More... | |
int | NumCols () const |
virtual void | Mult (const Vector &x, Vector &y) const =0 |
Operator application. More... | |
virtual void | MultTranspose (const Vector &x, Vector &y) const |
Action of the transpose operator. More... | |
virtual Operator & | GetGradient (const Vector &x) const |
Evaluate the gradient operator at the point x. More... | |
void | PrintMatlab (std::ostream &out, int n=0, int m=0) |
Prints operator with input size n and output size m in matlab format. More... | |
virtual | ~Operator () |
Protected Attributes | |
int | height |
int | width |
Abstract operator.
Definition at line 21 of file operator.hpp.
|
inlineexplicit |
Construct a square Operator with given size s (default 0)
Definition at line 28 of file operator.hpp.
|
inline |
Construct an Operator with the given height (output size) and width (input size).
Definition at line 32 of file operator.hpp.
|
inlinevirtual |
Definition at line 63 of file operator.hpp.
Evaluate the gradient operator at the point x.
Reimplemented in mfem::NonlinearForm, and mfem::ParNonlinearForm.
Definition at line 54 of file operator.hpp.
|
inline |
Get the height (size of output) of the Operator. Synonym with NumRows.
Definition at line 35 of file operator.hpp.
Operator application.
Implemented in mfem::HypreSolver, mfem::HypreSmoother, mfem::DenseMatrixInverse, mfem::HypreParMatrix, mfem::UMFPackSolver, mfem::SLBQPOptimizer, mfem::MixedBilinearForm, mfem::NewtonSolver, mfem::MINRESSolver, mfem::BiCGSTABSolver, mfem::miniapps::DivergenceFreeProjector, mfem::RAPOperator, mfem::FGMRESSolver, mfem::miniapps::IrrotationalProjector, mfem::SparseMatrix, mfem::GMRESSolver, mfem::TransposeOperator, mfem::BlockDiagonalPreconditioner, mfem::BilinearForm, mfem::IdentityOperator, mfem::CGSolver, mfem::BlockMatrix, mfem::DenseMatrix, mfem::AbstractSparseMatrix, mfem::SLISolver, mfem::BlockOperator, mfem::DSmoother, mfem::NonlinearForm, mfem::GSSmoother, and mfem::ParNonlinearForm.
Action of the transpose operator.
Reimplemented in mfem::HypreParMatrix, mfem::UMFPackSolver, mfem::MixedBilinearForm, mfem::RAPOperator, mfem::SparseMatrix, mfem::TransposeOperator, mfem::BlockDiagonalPreconditioner, mfem::BlockMatrix, mfem::DenseMatrix, mfem::AbstractSparseMatrix, and mfem::BlockOperator.
Definition at line 50 of file operator.hpp.
|
inline |
Get the number of columns (size of input) of the Operator. Synonym with Width.
Definition at line 44 of file operator.hpp.
|
inline |
Get the number of rows (size of output) of the Operator. Synonym with Height.
Definition at line 38 of file operator.hpp.
void mfem::Operator::PrintMatlab | ( | std::ostream & | out, |
int | n = 0 , |
||
int | m = 0 |
||
) |
Prints operator with input size n and output size m in matlab format.
Definition at line 21 of file operator.cpp.
|
inline |
Get the width (size of input) of the Operator. Synonym with NumCols.
Definition at line 41 of file operator.hpp.
|
protected |
Definition at line 24 of file operator.hpp.
|
protected |
Definition at line 24 of file operator.hpp.