wrapper_functions.hpp
Go to the documentation of this file.
1 
12 #ifndef MLPACK_BINDINGS_PYTHON_WRAPPER_FUNCTIONS_HPP
13 #define MLPACK_BINDINGS_PYTHON_WRAPPER_FUNCTIONS_HPP
14 
15 #include <mlpack/prereqs.hpp>
16 
17 namespace mlpack {
18 namespace bindings {
19 namespace python {
20 
21 // Get the name of python class using the group name.
22 inline std::string GetClassName(const std::string& groupName);
23 
24 // Get the valid name of a parameter (to avoid clashes with python)
25 // keywords.
26 inline std::string GetValidName(const std::string& paramName);
27 
28 // Get a std::vector of methods through a string seperated by ' '.
29 inline std::vector<std::string> GetMethods(const std::string& validMethods);
30 
31 // Get mapped name of an internal mlapck method.
32 inline std::string GetMappedName(const std::string& methodName);
33 
34 } // python.
35 } // bindings.
36 } // mlpack.
37 
38 // Include implementation.
39 #include "wrapper_functions_impl.hpp"
40 
41 #endif
Linear algebra utility functions, generally performed on matrices or vectors.
The core includes that mlpack expects; standard C++ includes and Armadillo.
std::string GetMappedName(const std::string &methodName)
std::string GetClassName(const std::string &groupName)
python
Definition: CMakeLists.txt:7
std::vector< std::string > GetMethods(const std::string &validMethods)
std::string GetValidName(const std::string &paramName)