8 #ifndef MLPACK_CORE_UTIL_STRING_TYPE_PARAM_HPP 9 #define MLPACK_CORE_UTIL_STRING_TYPE_PARAM_HPP 21 const typename boost::disable_if<arma::is_arma_type<T>>::type* = 0,
22 const typename boost::disable_if<IsStdVector<T>>::type* = 0,
23 const typename boost::disable_if<data::HasSerialize<T>>::type* = 0);
30 const typename boost::enable_if<IsStdVector<T>>::type* = 0);
37 const typename boost::enable_if<arma::is_arma_type<T>>::type* = 0);
44 const typename boost::enable_if<data::HasSerialize<T>>::type* = 0);
53 return StringTypeParamImpl<T>();
85 #include "string_type_param_impl.hpp" std::string StringTypeParam< float >()
Return "float".
Linear algebra utility functions, generally performed on matrices or vectors.
The core includes that mlpack expects; standard C++ includes and Armadillo.
std::string StringTypeParamImpl(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)
Return a string containing the type of the parameter.
std::string StringTypeParam< double >()
Return "double".
std::string StringTypeParam< int >()
Return "int".
DatasetMapper< data::IncrementPolicy > DatasetInfo
std::string StringTypeParam< bool >()
Return "bool".
test cpp RESULT_VARIABLE MEX_RESULT_TRASH OUTPUT_VARIABLE MEX_OUTPUT ERROR_VARIABLE MEX_ERROR_TRASH string(REGEX MATCH"Warning: You are using"MEX_WARNING"${MEX_OUTPUT}") if(MEX_WARNING) string(REGEX REPLACE".*using [a-zA-Z]* version \"([0-9.]*)[^\"]*\".*""\\1"OTHER_COMPILER_VERSION"$
std::string StringTypeParam()
Return a string containing the type of a parameter.