mlpack  3.1.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
get_numpy_type.hpp
Go to the documentation of this file.
1 
12 #ifndef MLPACK_BINDINGS_PYTHON_GET_NUMPY_TYPE_HPP
13 #define MLPACK_BINDINGS_PYTHON_GET_NUMPY_TYPE_HPP
14 
15 #include <mlpack/prereqs.hpp>
16 
17 namespace mlpack {
18 namespace bindings {
19 namespace python {
20 
21 template<typename T>
23 {
24  return "unknown"; // Not sure...
25 }
26 
27 template<>
29 {
30  return "np.double";
31 }
32 
33 template<>
35 {
36  return "np.intp";
37 }
38 
39 } // namespace python
40 } // namespace bindings
41 } // namespace mlpack
42 
43 #endif
The core includes that mlpack expects; standard C++ includes and Armadillo.
std::string GetNumpyType< size_t >()
std::string GetNumpyType< double >()
string(REGEX REPLACE".*#define MLPACK_VERSION_MINOR ([0-9]+).*""\\1"MLPACK_VERSION_MINOR"${VERSION_HPP_CONTENTS}") string(REGEX REPLACE".* "\\1" MLPACK_VERSION_PATCH "$
Definition: CMakeLists.txt:35