18 #ifndef __DOLFIN_EIGEN_LU_SOLVER_H 19 #define __DOLFIN_EIGEN_LU_SOLVER_H 24 #include <dolfin/common/types.h> 25 #include <Eigen/Dense> 26 #include "GenericLinearSolver.h" 33 class GenericLinearOperator;
48 std::string method=
"default");
54 void set_operator(std::shared_ptr<const GenericLinearOperator> A);
74 std::string
str(
bool verbose)
const;
77 static std::map<std::string, std::string>
methods();
84 {
return "lu_solver"; }
90 std::unique_ptr<EigenLUImplBase> _impl;
93 static const std::map<std::string, std::string> _methods_descr;
99 std::string select_solver(
const std::string method)
const;
102 std::shared_ptr<const EigenMatrix> _matA;
void set_operator(std::shared_ptr< const GenericLinearOperator > A)
Set operator (matrix)
Definition: EigenLUSolver.cpp:179
static Parameters default_parameters()
Default parameter values.
Definition: EigenLUSolver.cpp:142
const GenericLinearOperator & get_operator() const
Get operator (matrix)
Definition: EigenLUSolver.cpp:199
Definition: GenericLinearOperator.h:42
Definition: EigenLUSolver.cpp:60
Definition: EigenMatrix.h:46
~EigenLUSolver()
Destructor.
Definition: EigenLUSolver.cpp:174
Definition: Parameters.h:94
EigenLUSolver(std::string method="default")
Constructor.
Definition: EigenLUSolver.cpp:149
Definition: EigenLUSolver.h:39
static std::map< std::string, std::string > methods()
Return a list of available solver methods.
Definition: EigenLUSolver.cpp:137
Definition: EigenVector.h:45
This class provides a general solver for linear systems Ax = b.
Definition: GenericLinearSolver.h:37
std::string str(bool verbose) const
Return informal string representation (pretty-print)
Definition: EigenLUSolver.cpp:320
This class defines a common interface for vectors.
Definition: GenericVector.h:47
std::size_t solve(GenericVector &x, const GenericVector &b)
Solve linear system Ax = b.
Definition: EigenLUSolver.cpp:210
std::string parameter_type() const
Return parameter type: "krylov_solver" or "lu_solver".
Definition: EigenLUSolver.h:83