mlpack_main.hpp
Go to the documentation of this file.
1 
9 #ifndef MLPACK_BINDINGS_JULIA_MLPACK_MAIN_HPP
10 #define MLPACK_BINDINGS_JULIA_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_JL
16  #error "BINDING_TYPE is not set to BINDING_TYPE_JL!"
17 #endif
18 
19 // Matrices are transposed on load/save.
20 #define BINDING_MATRIX_TRANSPOSED true
21 
24 
29 #define PRINT_PARAM_STRING mlpack::bindings::julia::ParamString
30 
35 #define PRINT_PARAM_VALUE mlpack::bindings::julia::PrintValue
36 
41 #define PRINT_DATASET mlpack::bindings::julia::PrintDataset
42 
47 #define PRINT_MODEL mlpack::bindings::julia::PrintModel
48 
56 #define PRINT_CALL mlpack::bindings::julia::ProgramCall
57 
62 #define BINDING_IGNORE_CHECK(...) mlpack::bindings::julia::IgnoreCheck( \
63  STRINGIFY(BINDING_NAME), __VA_ARGS__)
64 
71 #define BINDING_MIN_LABEL 1
72 
73 namespace mlpack {
74 namespace util {
75 
76 template<typename T>
78 
79 }
80 }
81 
83 
84 // In Julia, we want to call the binding function mlpack_<BINDING_NAME>()
85 // instead of just <BINDING_NAME>(), so we change the definition of
86 // BINDING_FUNCTION().
87 #undef BINDING_FUNCTION
88 #define BINDING_FUNCTION(...) JOIN(mlpack_, BINDING_NAME)(__VA_ARGS__)
89 
90 // Add default parameters that are included in every program.
91 PARAM_GLOBAL(bool, "verbose", "Display informational messages and the full "
92  "list of parameters and timers at the end of execution.", "v", "bool",
93  false, true, false, false);
94 
95 #endif
Linear algebra utility functions, generally performed on matrices or vectors.
mlpack::bindings::cli::CLIOption< T > Option
Definition: mlpack_main.hpp:77
PARAM_GLOBAL(bool, "help", "Default help info.", "h", "bool", false, true, false, false)