OGS
|
Linear solver using Lis library with Eigen matrix and vector objects
Definition at line 30 of file EigenLisLinearSolver.h.
#include <EigenLisLinearSolver.h>
Public Member Functions | |
EigenLisLinearSolver (std::string const &solver_name, std::string const &lis_options) | |
void | setOption (std::string const &lis_options) |
bool | solve (EigenMatrix &A, EigenVector &b, EigenVector &x) |
bool | canSolveRectangular () const |
Get, if the solver can handle rectangular equation systems. | |
Private Member Functions | |
bool | solve (LisMatrix &A, LisVector &b, LisVector &x) |
Private Attributes | |
std::string | lis_options_ |
MathLib::EigenLisLinearSolver::EigenLisLinearSolver | ( | std::string const & | solver_name, |
std::string const & | lis_options ) |
Constructor
solver_name | A name used as a prefix for command line options if there are such options available. |
lis_options | string containing the options for LIS library; options will be applied in the solve method. |
Definition at line 25 of file EigenLisLinearSolver.cpp.
|
inline |
Get, if the solver can handle rectangular equation systems.
Definition at line 55 of file EigenLisLinearSolver.h.
|
inline |
copy linear solvers options
lis_options | string containing the options for LIS library; options will be applied in the solve method. |
Definition at line 47 of file EigenLisLinearSolver.h.
References lis_options_.
bool MathLib::EigenLisLinearSolver::solve | ( | EigenMatrix & | A, |
EigenVector & | b, | ||
EigenVector & | x ) |
Definition at line 31 of file EigenLisLinearSolver.cpp.
References MathLib::EigenMatrix::getNumberOfRows(), MathLib::EigenMatrix::getRawMatrix(), MathLib::EigenVector::getRawVector(), MathLib::LisVector::size(), and solve().
Referenced by solve(), and NumLib::detail::solvePicard().
Definition at line 62 of file EigenLisLinearSolver.cpp.
References MathLib::checkLisError(), MathLib::finalizeMatrixAssembly(), MathLib::LisMatrix::getRawMatrix(), MathLib::LisVector::getRawVector(), INFO(), and lis_options_.
|
private |
Definition at line 59 of file EigenLisLinearSolver.h.
Referenced by setOption(), and solve().