13 #ifndef MLPACK_BINDINGS_PYTHON_GET_CYTHON_TYPE_HPP 14 #define MLPACK_BINDINGS_PYTHON_GET_CYTHON_TYPE_HPP 28 const typename boost::disable_if
>::type* = 0) 36 const typename boost::disable_if
>::type*, 37 const typename boost::disable_if
>::type*, 38 const typename boost::disable_if
>::type*) 46 const typename boost::disable_if
>::type*, 47 const typename boost::disable_if
>::type*, 48 const typename boost::disable_if
>::type*) 54 inline std::string GetCythonType
( 56 const typename boost::disable_if
>::type*, 57 const typename boost::disable_if
>::type*, 58 const typename boost::disable_if
>::type*) 66 const typename boost::disable_if
>::type*, 67 const typename boost::disable_if
>::type*, 68 const typename boost::disable_if
>::type*) 76 const typename boost::disable_if
>::type*, 77 const typename boost::disable_if
>::type*, 78 const typename boost::disable_if
>::type*) 88 return "vector[" + GetCythonType
(d) + "]"; 94 const typename boost::enable_if
>::type* = 0) 96 std::string type =
"Mat";
102 return "arma." + type +
"[" + GetCythonType
(d) + "]"; 108 const typename boost::disable_if
>::type* = 0,
Linear algebra utility functions, generally performed on matrices or vectors.
std::string GetCythonType< bool >(util::ParamData &, const typename boost::disable_if< util::IsStdVector< bool >>::type *, const typename boost::disable_if< data::HasSerialize< bool >>::type *, const typename boost::disable_if< arma::is_arma_type< bool >>::type *)
The core includes that mlpack expects; standard C++ includes and Armadillo.
std::string GetCythonType(util::ParamData &, const typename boost::disable_if< util::IsStdVector< T >>::type *=0, const typename boost::disable_if< data::HasSerialize< T >>::type *=0, const typename boost::disable_if< arma::is_arma_type< T >>::type *=0)
This structure holds all of the information about a single parameter, including its value (which is s...
std::string GetCythonType< int >(util::ParamData &, const typename boost::disable_if< util::IsStdVector< int >>::type *, const typename boost::disable_if< data::HasSerialize< int >>::type *, const typename boost::disable_if< arma::is_arma_type< int >>::type *)
Metaprogramming structure for vector detection.
std::string GetCythonType< double >(util::ParamData &, const typename boost::disable_if< util::IsStdVector< double >>::type *, const typename boost::disable_if< data::HasSerialize< double >>::type *, const typename boost::disable_if< arma::is_arma_type< double >>::type *)
std::string GetCythonType< size_t >(util::ParamData &, const typename boost::disable_if< util::IsStdVector< size_t >>::type *, const typename boost::disable_if< data::HasSerialize< size_t >>::type *, const typename boost::disable_if< arma::is_arma_type< size_t >>::type *)
std::string cppType
The true name of the type, as it would be written in C++.