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