Home
Get Started
Documentation
Community
Google Summer of Code
FAQ
GitHub
Home
Get Started
Documentation
Community
Google Summer of Code
FAQ
GitHub
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>
28
inline
std::string
GetArmaType
()
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
mlpack
strip_type.hpp
Definition:
add_to_po.hpp:21
prereqs.hpp
The core includes that mlpack expects; standard C++ includes and Armadillo.
mlpack::bindings::python::GetArmaType
std::string GetArmaType()
This is used for arma::Mat<> types; it will return "mat" for matrices, "row" for row vectors...
Definition:
get_arma_type.hpp:28
python
python
Definition:
CMakeLists.txt:4