mlpack 3.4.2
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
19namespace mlpack {
20namespace bindings {
21namespace python {
22
27template<typename T>
28inline 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
python
Definition: CMakeLists.txt:6
std::string GetArmaType()
This is used for arma::Mat<> types; it will return "mat" for matrices, "row" for row vectors,...
Linear algebra utility functions, generally performed on matrices or vectors.
Definition: cv.hpp:1
The core includes that mlpack expects; standard C++ includes and Armadillo.