mlpack  3.4.2
 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 >()
python
Definition: CMakeLists.txt:61
std::string GetNumpyType< double >()
src mlpack core util version hpp VERSION_HPP_CONTENTS string(REGEX REPLACE".*#define MLPACK_VERSION_MAJOR ([0-9]+).*""\\1"MLPACK_VERSION_MAJOR"${VERSION_HPP_CONTENTS}") string(REGEX REPLACE".* MLPACK_VERSION_MINOR "$
Definition: CMakeLists.txt:79