MFEM
v3.1
Finite element discretization library
|
#include <densemat.hpp>
Public Member Functions | |
DenseMatrixInverse () | |
Default constructor. More... | |
DenseMatrixInverse (const DenseMatrix &mat) | |
DenseMatrixInverse (const DenseMatrix *mat) | |
Same as above but does not factorize the matrix. More... | |
int | Size () const |
Get the size of the inverse matrix. More... | |
void | Factor () |
Factor the current DenseMatrix, *a. More... | |
void | Factor (const DenseMatrix &mat) |
Factor a new DenseMatrix of the same size. More... | |
virtual void | SetOperator (const Operator &op) |
Set/update the solver for the given operator. More... | |
virtual void | Mult (const Vector &x, Vector &y) const |
Matrix vector multiplication with the inverse of dense matrix. More... | |
void | Mult (const DenseMatrix &B, DenseMatrix &X) const |
Multiply the inverse matrix by another matrix: X = A^{-1} B. More... | |
void | GetInverseMatrix (DenseMatrix &Ainv) const |
Compute and return the inverse matrix in Ainv. More... | |
void | TestInversion () |
Print the numerical conditioning of the inversion: ||A^{-1} A - I||. More... | |
virtual | ~DenseMatrixInverse () |
Destroys dense inverse matrix. More... | |
Public Member Functions inherited from mfem::MatrixInverse | |
MatrixInverse () | |
MatrixInverse (const Matrix &mat) | |
Creates approximation of the inverse of square matrix. More... | |
Public Member Functions inherited from mfem::Solver | |
Solver (int s=0, bool iter_mode=false) | |
Solver (int h, int w, bool iter_mode=false) | |
Initialize a Solver with height 'h' and width 'w'. More... | |
Public Member Functions inherited from mfem::Operator | |
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 | 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 () |
Additional Inherited Members | |
Public Attributes inherited from mfem::Solver | |
bool | iterative_mode |
If true, use the second argument of Mult as an initial guess. More... | |
Protected Attributes inherited from mfem::Operator | |
int | height |
int | width |
Data type for inverse of square dense matrix. Stores LU factors
Definition at line 461 of file densemat.hpp.
|
inline |
Default constructor.
Definition at line 469 of file densemat.hpp.
mfem::DenseMatrixInverse::DenseMatrixInverse | ( | const DenseMatrix & | mat | ) |
Creates square dense matrix. Computes factorization of mat and stores LU factors.
Definition at line 3831 of file densemat.cpp.
mfem::DenseMatrixInverse::DenseMatrixInverse | ( | const DenseMatrix * | mat | ) |
Same as above but does not factorize the matrix.
Definition at line 3841 of file densemat.cpp.
|
virtual |
Destroys dense inverse matrix.
Definition at line 3906 of file densemat.cpp.
void mfem::DenseMatrixInverse::Factor | ( | ) |
Factor the current DenseMatrix, *a.
Definition at line 3850 of file densemat.cpp.
void mfem::DenseMatrixInverse::Factor | ( | const DenseMatrix & | mat | ) |
Factor a new DenseMatrix of the same size.
Definition at line 3861 of file densemat.cpp.
|
inline |
Compute and return the inverse matrix in Ainv.
Definition at line 496 of file densemat.hpp.
Matrix vector multiplication with the inverse of dense matrix.
Implements mfem::Operator.
Definition at line 3883 of file densemat.cpp.
void mfem::DenseMatrixInverse::Mult | ( | const DenseMatrix & | B, |
DenseMatrix & | X | ||
) | const |
Multiply the inverse matrix by another matrix: X = A^{-1} B.
Definition at line 3889 of file densemat.cpp.
|
virtual |
Set/update the solver for the given operator.
Implements mfem::Solver.
Definition at line 3876 of file densemat.cpp.
|
inline |
Get the size of the inverse matrix.
Definition at line 479 of file densemat.hpp.
void mfem::DenseMatrixInverse::TestInversion | ( | ) |
Print the numerical conditioning of the inversion: ||A^{-1} A - I||.
Definition at line 3895 of file densemat.cpp.