SG++-Doxygen-Documentation
|
Abstract class for solving systems of linear equations. More...
#include <SLESolver.hpp>
Public Member Functions | |
SLESolver () | |
Constructor. More... | |
virtual bool | solve (SLE &system, base::DataVector &b, base::DataVector &x) const =0 |
Pure virtual method for a solving linear system. More... | |
virtual bool | solve (SLE &system, base::DataMatrix &B, base::DataMatrix &X) const |
Virtual method for solving multiple linear systems with different right-hand sides. More... | |
virtual | ~SLESolver () |
Destructor. More... | |
Abstract class for solving systems of linear equations.
|
inline |
Constructor.
|
inlinevirtual |
|
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::optimization::sle_solver::BiCGStab, sgpp::optimization::sle_solver::Auto, sgpp::optimization::sle_solver::UMFPACK, sgpp::optimization::sle_solver::Armadillo, sgpp::optimization::sle_solver::Eigen, sgpp::optimization::sle_solver::GaussianElimination, and sgpp::optimization::sle_solver::Gmmpp.
Referenced by sgpp::optimization::optimizer::LevenbergMarquardt::optimize(), sgpp::optimization::optimizer::AdaptiveNewton::optimize(), sgpp::optimization::optimizer::Newton::optimize(), solve(), and ~SLESolver().
|
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::optimization::sle_solver::Auto, sgpp::optimization::sle_solver::UMFPACK, sgpp::optimization::sle_solver::Armadillo, and sgpp::optimization::sle_solver::Eigen.
References chess::b, sgpp::base::DataMatrix::getColumn(), sgpp::optimization::SLE::getDimension(), sgpp::base::DataMatrix::getNcols(), python.statsfileInfo::i, m, sgpp::base::DataMatrix::resize(), sgpp::base::DataMatrix::setColumn(), and solve().