MFEM  v3.2
Finite element discretization library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
mfem::KLUSolver Class Reference

Direct sparse solver using KLU. More...

#include <solvers.hpp>

Inheritance diagram for mfem::KLUSolver:
[legend]
Collaboration diagram for mfem::KLUSolver:
[legend]

Public Member Functions

 KLUSolver ()
 
 KLUSolver (SparseMatrix &A)
 
virtual void SetOperator (const Operator &op)
 Set/update the solver for the given operator. More...
 
virtual void Mult (const Vector &b, Vector &x) const
 Operator application. More...
 
virtual void MultTranspose (const Vector &b, Vector &x) const
 Action of the transpose operator. More...
 
virtual ~KLUSolver ()
 
- 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 OperatorGetGradient (const Vector &x) const
 Evaluate the gradient operator at the point x. More...
 
void PrintMatlab (std::ostream &out, int n=0, int m=0) const
 Prints operator with input size n and output size m in matlab format. More...
 
virtual ~Operator ()
 

Public Attributes

klu_common Common
 
- Public Attributes inherited from mfem::Solver
bool iterative_mode
 If true, use the second argument of Mult as an initial guess. More...
 

Protected Member Functions

void Init ()
 

Protected Attributes

SparseMatrixmat
 
klu_symbolic * Symbolic
 
klu_numeric * Numeric
 
- Protected Attributes inherited from mfem::Operator
int height
 
int width
 

Detailed Description

Direct sparse solver using KLU.

Definition at line 364 of file solvers.hpp.

Constructor & Destructor Documentation

mfem::KLUSolver::KLUSolver ( )
inline

Definition at line 374 of file solvers.hpp.

mfem::KLUSolver::KLUSolver ( SparseMatrix A)
inline

Definition at line 377 of file solvers.hpp.

mfem::KLUSolver::~KLUSolver ( )
virtual

Definition at line 1888 of file solvers.cpp.

Member Function Documentation

void mfem::KLUSolver::Init ( )
protected

Definition at line 1824 of file solvers.cpp.

void mfem::KLUSolver::Mult ( const Vector x,
Vector y 
) const
virtual

Operator application.

Implements mfem::Operator.

Definition at line 1860 of file solvers.cpp.

void mfem::KLUSolver::MultTranspose ( const Vector x,
Vector y 
) const
virtual

Action of the transpose operator.

Reimplemented from mfem::Operator.

Definition at line 1874 of file solvers.cpp.

void mfem::KLUSolver::SetOperator ( const Operator op)
virtual

Set/update the solver for the given operator.

Implements mfem::Solver.

Definition at line 1829 of file solvers.cpp.

Member Data Documentation

klu_common mfem::KLUSolver::Common
mutable

Definition at line 389 of file solvers.hpp.

SparseMatrix* mfem::KLUSolver::mat
protected

Definition at line 367 of file solvers.hpp.

klu_numeric* mfem::KLUSolver::Numeric
protected

Definition at line 369 of file solvers.hpp.

klu_symbolic* mfem::KLUSolver::Symbolic
protected

Definition at line 368 of file solvers.hpp.


The documentation for this class was generated from the following files: