mlpack_main.hpp
Go to the documentation of this file.
1 
9 #ifndef MLPACK_BINDINGS_TESTS_MLPACK_MAIN_HPP
10 #define MLPACK_BINDINGS_TESTS_MLPACK_MAIN_HPP
11 
12 #ifndef BINDING_TYPE
13  #error "BINDING_TYPE not defined! Don't include this file directly!"
14 #endif
15 #if BINDING_TYPE != BINDING_TYPE_TEST
16  #error "BINDING_TYPE is not set to BINDING_TYPE_TEST!"
17 #endif
18 
19 // Matrices are not transposed on load/save.
20 #define BINDING_MATRIX_TRANSPOSED false
21 
25 
26 // These functions will do nothing.
27 #define PRINT_PARAM_STRING(A) std::string(" ")
28 #define PRINT_PARAM_VALUE(A, B) std::string(" ")
29 #define PRINT_DATASET(A) std::string(" ")
30 #define PRINT_MODEL(A) std::string(" ")
31 #define PRINT_CALL(...) std::string(" ")
32 #define BINDING_IGNORE_CHECK mlpack::bindings::tests::IgnoreCheck
33 #define IMPORT_EXT_LIB(...) std::string(" ")
34 #define IMPORT_SPLIT(...) std::string(" ")
35 #define IMPORT_THIS(...) std::string(" ")
36 #define GET_DATASET(...) std::string(" ")
37 #define SPLIT_TRAIN_TEST(...) std::string(" ")
38 #define CREATE_OBJECT(...) std::string(" ")
39 #define CALL_METHOD(...) std::string(" ")
40 
41 namespace mlpack {
42 namespace util {
43 
44 template<typename T>
46 
47 }
48 }
49 
51 
52 // For the tests, we want to call the binding function
53 // mlpack_test_<BINDING_NAME>() instead of just <BINDING_NAME>(), so we change
54 // the definition of BINDING_FUNCTION(). This is to avoid namespace/function
55 // ambiguities.
56 #undef BINDING_FUNCTION
57 #define BINDING_FUNCTION(...) JOIN(mlpack_test_, BINDING_NAME)(__VA_ARGS__)
58 
59 #endif
Linear algebra utility functions, generally performed on matrices or vectors.
mlpack::bindings::cli::CLIOption< T > Option
Definition: mlpack_main.hpp:70
A static object whose constructor registers a parameter with the IO class.
Definition: test_option.hpp:41