SG++-Doxygen-Documentation
sgpp::datadriven::RegressionLearner::Solver Class Reference

#include <RegressionLearner.hpp>

Public Types

enum  solverCategory { solverCategory::cg, solverCategory::fista, solverCategory::none }
 

Public Member Functions

double getL ()
 
Solveroperator= (const Solver &)=delete
 
Solveroperator= (Solver &&other)
 
void solveCG (sgpp::base::OperationMatrix &systemMatrix, sgpp::base::DataVector &alpha, sgpp::base::DataVector &b, bool reuse, bool verbose, double maxTreshold)
 
void solveFista (sgpp::base::OperationMultipleEval &op, sgpp::base::DataVector &weights, const sgpp::base::DataVector &classes, size_t maxIt, double treshold, double L)
 
 Solver ()
 
 Solver (std::unique_ptr< sgpp::solver::SLESolver > &&s)
 
 Solver (std::unique_ptr< sgpp::solver::FistaBase > &&s)
 
 Solver (const Solver &)=delete
 
 Solver (Solver &&other)
 
 ~Solver ()
 

Public Attributes

enum sgpp::datadriven::RegressionLearner::Solver::solverCategory type = solverCategory::none
 
std::unique_ptr< sgpp::solver::SLESolversolverCG
 
std::unique_ptr< sgpp::solver::FistaBasesolverFista
 

Friends

void swap (Solver &first, Solver &second)
 

Member Enumeration Documentation

◆ solverCategory

Enumerator
cg 
fista 
none 

Constructor & Destructor Documentation

◆ Solver() [1/5]

sgpp::datadriven::RegressionLearner::Solver::Solver ( )
inline

◆ Solver() [2/5]

sgpp::datadriven::RegressionLearner::Solver::Solver ( std::unique_ptr< sgpp::solver::SLESolver > &&  s)
inlineexplicit

References cg, create_scripts::s, and solverCG.

◆ Solver() [3/5]

sgpp::datadriven::RegressionLearner::Solver::Solver ( std::unique_ptr< sgpp::solver::FistaBase > &&  s)
inlineexplicit

References fista, create_scripts::s, and solverFista.

◆ Solver() [4/5]

sgpp::datadriven::RegressionLearner::Solver::Solver ( const Solver )
delete

◆ Solver() [5/5]

sgpp::datadriven::RegressionLearner::Solver::Solver ( Solver &&  other)
inline

References operator=(), and swap.

◆ ~Solver()

sgpp::datadriven::RegressionLearner::Solver::~Solver ( )
inline

References cg, fista, none, solverCG, and solverFista.

Member Function Documentation

◆ getL()

double sgpp::datadriven::RegressionLearner::Solver::getL ( )
inline

◆ operator=() [1/2]

Solver& sgpp::datadriven::RegressionLearner::Solver::operator= ( const Solver )
delete

Referenced by Solver().

◆ operator=() [2/2]

Solver& sgpp::datadriven::RegressionLearner::Solver::operator= ( Solver &&  other)
inline

References swap.

◆ solveCG()

void sgpp::datadriven::RegressionLearner::Solver::solveCG ( sgpp::base::OperationMatrix systemMatrix,
sgpp::base::DataVector alpha,
sgpp::base::DataVector b,
bool  reuse,
bool  verbose,
double  maxTreshold 
)
inline

◆ solveFista()

void sgpp::datadriven::RegressionLearner::Solver::solveFista ( sgpp::base::OperationMultipleEval op,
sgpp::base::DataVector weights,
const sgpp::base::DataVector classes,
size_t  maxIt,
double  treshold,
double  L 
)
inline

Friends And Related Function Documentation

◆ swap

void swap ( Solver first,
Solver second 
)
friend

Referenced by operator=(), and Solver().

Member Data Documentation

◆ solverCG

std::unique_ptr<sgpp::solver::SLESolver> sgpp::datadriven::RegressionLearner::Solver::solverCG

Referenced by solveCG(), Solver(), and ~Solver().

◆ solverFista

std::unique_ptr<sgpp::solver::FistaBase> sgpp::datadriven::RegressionLearner::Solver::solverFista

Referenced by getL(), solveFista(), Solver(), and ~Solver().

◆ type


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