12 #ifndef MLPACK_BINDINGS_R_PRINT_INPUT_PROCESSING_IMPL_HPP 13 #define MLPACK_BINDINGS_R_PRINT_INPUT_PROCESSING_IMPL_HPP 29 const typename std::enable_if<!arma::is_arma_type<T>::value>::type* = 0,
31 const typename std::enable_if<!std::is_same<T,
32 std::tuple<data::DatasetInfo, arma::mat>>::value>::type* = 0)
53 << d.
name <<
"\", " << d.
name <<
")" << std::endl;
64 << d.
name <<
"\", " << d.
name <<
")" << std::endl;
75 const typename std::enable_if<arma::is_arma_type<T>::value>::type* = 0)
89 << d.
name <<
"\", to_matrix(" << d.
name <<
"))" << std::endl;
100 << d.
name <<
"\", to_matrix(" << d.
name <<
"))" << std::endl;
111 const typename std::enable_if<std::is_same<T,
112 std::tuple<data::DatasetInfo, arma::mat>>::value>::type* = 0)
128 << d.
name <<
")" << std::endl;
131 <<
"$data)" << std::endl;
144 << d.
name <<
")" << std::endl;
147 <<
"$data)" << std::endl;
158 const typename std::enable_if<!arma::is_arma_type<T>::value>::type* = 0,
173 <<
"Ptr(p, \"" << d.
name <<
"\", " << d.
name <<
")" << std::endl;
184 <<
"Ptr(p, \"" << d.
name <<
"\", " << d.
name <<
")" << std::endl;
199 PrintInputProcessing<typename std::remove_pointer<T>::type>(d);
Linear algebra utility functions, generally performed on matrices or vectors.
The core includes that mlpack expects; standard C++ includes and Armadillo.
void PrintInputProcessing(util::ParamData &d, const typename std::enable_if<!arma::is_arma_type< T >::value >::type *=0, const typename std::enable_if<!data::HasSerialize< T >::value >::type *=0, const typename std::enable_if<!std::is_same< T, std::tuple< data::DatasetInfo, arma::mat >>::value >::type *=0)
Print input processing for a standard option type.
This structure holds all of the information about a single parameter, including its value (which is s...
#define MLPACK_COUT_STREAM
std::string StripType(std::string cppType)
Given a C++ type name, turn it into something that has no special characters that can simply be print...
std::string name
Name of this parameter.
bool required
True if this option is required.
std::string cppType
The true name of the type, as it would be written in C++.