![]() |
SG++-Doxygen-Documentation
|
Abstract class for solving systems of linear equations. More...
#include <SLESolver.hpp>
Public Member Functions | |
SLESolver () | |
Constructor. | |
virtual bool | solve (SLE &system, DataMatrix &B, DataMatrix &X) const |
Virtual method for solving multiple linear systems with different right-hand sides. | |
virtual bool | solve (SLE &system, DataVector &b, DataVector &x) const =0 |
Pure virtual method for a solving linear system. | |
virtual | ~SLESolver () |
Destructor. | |
Abstract class for solving systems of linear equations.
|
inline |
Constructor.
|
inlinevirtual |
Destructor.
|
inlinevirtual |
Virtual method for solving multiple linear systems with different right-hand sides.
Defaults to calling the solve() method for a single right-hand side multiple times.
system | system to be solved | |
B | matrix of right-hand sides | |
[out] | X | matrix of solutions to the systems |
Reimplemented in sgpp::base::sle_solver::Armadillo, sgpp::base::sle_solver::Auto, sgpp::base::sle_solver::Eigen, and sgpp::base::sle_solver::UMFPACK.
References sgpp::base::DataMatrix::getColumn(), sgpp::base::SLE::getDimension(), sgpp::base::DataMatrix::getNcols(), m, and solve().
|
pure virtual |
Pure virtual method for a solving linear system.
system | system to be solved | |
b | right-hand side | |
[out] | x | solution to the system |
Implemented in sgpp::base::sle_solver::Armadillo, sgpp::base::sle_solver::Auto, sgpp::base::sle_solver::BiCGStab, sgpp::base::sle_solver::Eigen, sgpp::base::sle_solver::GaussianElimination, sgpp::base::sle_solver::Gmmpp, and sgpp::base::sle_solver::UMFPACK.
Referenced by sgpp::optimization::optimizer::LevenbergMarquardt::optimize(), sgpp::optimization::optimizer::AdaptiveNewton::optimize(), sgpp::optimization::optimizer::Newton::optimize(), and solve().