13 #ifndef MLPACK_BINDINGS_GO_PRINT_DEFN_OUTPUT_HPP 14 #define MLPACK_BINDINGS_GO_PRINT_DEFN_OUTPUT_HPP 30 const typename std::enable_if<!arma::is_arma_type<T>::value>::type* = 0,
32 const typename std::enable_if<!std::is_same<T,
33 std::tuple<data::DatasetInfo, arma::mat>>::value>::type* = 0)
35 std::cout << GetGoType<T>(d);
44 const typename std::enable_if<arma::is_arma_type<T>::value>::type* = 0)
47 std::cout <<
"*" << GetGoType<T>(d);
56 const typename std::enable_if<std::is_same<T,
57 std::tuple<data::DatasetInfo, arma::mat>>::value>::type* = 0)
60 std::cout <<
"*" << GetGoType<T>(d);
69 const typename std::enable_if<!arma::is_arma_type<T>::value>::type* = 0,
73 std::string goStrippedType, strippedType, printedType, defaultsType;
74 StripType(d.
cppType, goStrippedType, strippedType, printedType, defaultsType);
75 std::cout << goStrippedType;
97 PrintDefnOutput<typename std::remove_pointer<T>::type>(d);
void StripType(const std::string &inputType, std::string &goStrippedType, std::string &strippedType, std::string &printedType, std::string &defaultsType)
Given an input type like, e.g., "LogisticRegression<>", return four types that can be used in Go code...
Linear algebra utility functions, generally performed on matrices or vectors.
The core includes that mlpack expects; standard C++ includes and Armadillo.
This structure holds all of the information about a single parameter, including its value (which is s...
std::string cppType
The true name of the type, as it would be written in C++.
void PrintDefnOutput(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 output for a regular parameter type.