OGS
v6.4.0
|
Linear solver using Lis library with Eigen matrix and vector objects
Definition at line 29 of file EigenLisLinearSolver.h.
#include <EigenLisLinearSolver.h>
Public Member Functions | |
EigenLisLinearSolver (const std::string solver_name, BaseLib::ConfigTree const *const option) | |
void | setOption (const LisOption &option) |
bool | solve (EigenMatrix &A, EigenVector &b, EigenVector &x) |
Private Attributes | |
LisOption | _lis_option |
MathLib::EigenLisLinearSolver::EigenLisLinearSolver | ( | const std::string | solver_name, |
BaseLib::ConfigTree const *const | option | ||
) |
Constructor
solver_name | A name used as a prefix for command line options if there are such options available. |
option | A pointer to a linear solver option. In case you omit this argument, default settings follow those of LisOption struct. |
Definition at line 26 of file EigenLisLinearSolver.cpp.
|
inline |
copy linear solvers options
Definition at line 46 of file EigenLisLinearSolver.h.
References _lis_option.
bool MathLib::EigenLisLinearSolver::solve | ( | EigenMatrix & | A, |
EigenVector & | b, | ||
EigenVector & | x | ||
) |
Definition at line 33 of file EigenLisLinearSolver.cpp.
References _lis_option, MathLib::EigenMatrix::getNumberOfRows(), MathLib::EigenMatrix::getRawMatrix(), MathLib::EigenVector::getRawVector(), MathLib::LisLinearSolver::setOption(), MathLib::LisVector::size(), and MathLib::LisLinearSolver::solve().
|
private |
Definition at line 51 of file EigenLisLinearSolver.h.
Referenced by setOption(), and solve().