SG++-Doxygen-Documentation
sgpp::datadriven::SLESolverTypeParser Class Reference

Convenience class to convert strings to sgpp::solver::SLESolverType and generate string representations for values of sgpp::solver::SLESolverType. More...

#include <SLESolverTypeParser.hpp>

Static Public Member Functions

static SLESolverType parse (const std::string &input)
 Convert strings to values sgpp::solver::SLESolverType. More...
 
static const std::string & toString (SLESolverType type)
 generate string representations for values of sgpp::solver::SLESolverType. More...
 

Detailed Description

Convenience class to convert strings to sgpp::solver::SLESolverType and generate string representations for values of sgpp::solver::SLESolverType.

Member Function Documentation

SLESolverType sgpp::datadriven::SLESolverTypeParser::parse ( const std::string &  input)
static

Convert strings to values sgpp::solver::SLESolverType.

Throws if there is no valid representation

Parameters
inputcase insensitive string representation of a sgpp::solver::SLESolverType.
Returns
the corresponding sgpp::solver::SLESolverType.

References sgpp::solver::BiCGSTAB, sgpp::solver::CG, and sgpp::solver::FISTA.

Referenced by sgpp::datadriven::DataMiningConfigParser::parseIntArray().

const std::string & sgpp::datadriven::SLESolverTypeParser::toString ( SLESolverType  type)
static

generate string representations for values of sgpp::solver::SLESolverType.

Parameters
typeenum value.
Returns
string representation of a sgpp::solver::SLESolverType.

References sgpp::datadriven::CG.

Referenced by sgpp::datadriven::DataMiningConfigParser::parseIntArray().


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