SG++-Doxygen-Documentation
sgpp::optimization::sle_solver::SLESolver Class Referenceabstract

Abstract class for solving systems of linear equations. More...

#include <SLESolver.hpp>

Inheritance diagram for sgpp::optimization::sle_solver::SLESolver:
sgpp::optimization::sle_solver::Armadillo sgpp::optimization::sle_solver::Auto sgpp::optimization::sle_solver::BiCGStab sgpp::optimization::sle_solver::Eigen sgpp::optimization::sle_solver::GaussianElimination sgpp::optimization::sle_solver::Gmmpp sgpp::optimization::sle_solver::UMFPACK

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...
 

Detailed Description

Abstract class for solving systems of linear equations.

Constructor & Destructor Documentation

◆ SLESolver()

sgpp::optimization::sle_solver::SLESolver::SLESolver ( )
inline

Constructor.

◆ ~SLESolver()

virtual sgpp::optimization::sle_solver::SLESolver::~SLESolver ( )
inlinevirtual

Destructor.

References chess::b, and solve().

Member Function Documentation

◆ solve() [1/2]

virtual bool sgpp::optimization::sle_solver::SLESolver::solve ( SLE system,
base::DataVector b,
base::DataVector x 
) const
pure virtual

◆ solve() [2/2]

virtual bool sgpp::optimization::sle_solver::SLESolver::solve ( SLE system,
base::DataMatrix B,
base::DataMatrix X 
) const
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.

Parameters
systemsystem to be solved
Bmatrix of right-hand sides
[out]Xmatrix of solutions to the systems
Returns
whether all went well (false if errors occurred)

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().


The documentation for this class was generated from the following file: