mlpack  master
Namespaces | Functions
default_param.hpp File Reference
Include dependency graph for default_param.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 mlpack
 Linear algebra utility functions, generally performed on matrices or vectors.
 
 mlpack::util
 

Functions

template<typename T >
std::string mlpack::util::DefaultParam (const ParamData &data)
 Return the default value of an option. More...
 
template<typename T >
std::string mlpack::util::DefaultParamImpl (const ParamData &data, const typename boost::disable_if< arma::is_arma_type< T >>::type *=0, const typename boost::disable_if< IsStdVector< T >>::type *=0, const typename boost::disable_if< data::HasSerialize< T >>::type *=0, const typename boost::disable_if< std::is_same< T, std::string >>::type *=0, const typename boost::disable_if< std::is_same< T, std::tuple< mlpack::data::DatasetInfo, arma::mat >>>::type *=0)
 Return the default value of an option. More...
 
template<typename T >
std::string mlpack::util::DefaultParamImpl (const ParamData &data, const typename boost::enable_if< IsStdVector< T >>::type *=0)
 Return the default value of a vector option. More...
 
template<typename T >
std::string mlpack::util::DefaultParamImpl (const ParamData &data, const typename boost::enable_if_c< arma::is_arma_type< T >::value||data::HasSerialize< T >::value||std::is_same< T, std::tuple< mlpack::data::DatasetInfo, arma::mat >>::value||std::is_same< T, std::string >::value >::type *=0)
 Return the default value of a matrix option (this returns the default filename, or '' if the default is no file). More...
 

Detailed Description

Author
Ryan Curtin

Return the default value of a parameter, depending on its type.

Definition in file default_param.hpp.