mlpack  3.4.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
get_arma_type.hpp
Go to the documentation of this file.
1 
14 #ifndef MLPACK_BINDINGS_PYTHON_GET_ARMA_TYPE_HPP
15 #define MLPACK_BINDINGS_PYTHON_GET_ARMA_TYPE_HPP
16 
17 #include <mlpack/prereqs.hpp>
18 
19 namespace mlpack {
20 namespace bindings {
21 namespace python {
22 
27 template<typename T>
29 {
30  if (T::is_col)
31  return "col";
32  else if (T::is_row)
33  return "row";
34  else
35  return "mat";
36 }
37 
38 } // namespace python
39 } // namespace bindings
40 } // namespace mlpack
41 
42 #endif
The core includes that mlpack expects; standard C++ includes and Armadillo.
std::string GetArmaType()
This is used for arma::Mat&lt;&gt; types; it will return &quot;mat&quot; for matrices, &quot;row&quot; for row vectors...
python
Definition: CMakeLists.txt:61
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