print_input_processing.hpp
Go to the documentation of this file.
1 
12 #ifndef MLPACK_BINDINGS_JULIA_PRINT_INPUT_PROCESSING_HPP
13 #define MLPACK_BINDINGS_JULIA_PRINT_INPUT_PROCESSING_HPP
14 
15 namespace mlpack {
16 namespace bindings {
17 namespace julia {
18 
23 template<typename T>
25  util::ParamData& d,
26  const std::string& functionName,
27  const typename std::enable_if<!arma::is_arma_type<T>::value>::type* = 0,
28  const typename std::enable_if<!data::HasSerialize<T>::value>::type* = 0,
29  const typename std::enable_if<!std::is_same<T,
30  std::tuple<data::DatasetInfo, arma::mat>>::value>::type* = 0);
31 
35 template<typename T>
37  util::ParamData& d,
38  const std::string& functionName,
39  const typename std::enable_if<arma::is_arma_type<T>::value>::type* = 0,
40  const typename std::enable_if<!std::is_same<T,
41  std::tuple<data::DatasetInfo, arma::mat>>::value>::type* = 0);
42 
46 template<typename T>
48  util::ParamData& d,
49  const std::string& functionName,
50  const typename std::enable_if<!arma::is_arma_type<T>::value>::type* = 0,
51  const typename std::enable_if<data::HasSerialize<T>::value>::type* = 0,
52  const typename std::enable_if<!std::is_same<T,
53  std::tuple<data::DatasetInfo, arma::mat>>::value>::type* = 0);
54 
59 template<typename T>
61  util::ParamData& d,
62  const std::string& functionName,
63  const typename std::enable_if<std::is_same<T,
64  std::tuple<data::DatasetInfo, arma::mat>>::value>::type* = 0);
65 
69 template<typename T>
71  const void* input,
72  void* /* output */)
73 {
74  // Call out to the right overload.
75  PrintInputProcessing<typename std::remove_pointer<T>::type>(d,
76  *((std::string*) input));
77 }
78 
79 } // namespace julia
80 } // namespace bindings
81 } // namespace mlpack
82 
83 #include "print_input_processing_impl.hpp"
84 
85 #endif
void PrintInputProcessing(util::ParamData &d, const std::string &functionName, const typename std::enable_if<!arma::is_arma_type< T >::value >::type *=0, const typename std::enable_if<!data::HasSerialize< T >::value >::type *=0, const typename std::enable_if<!std::is_same< T, std::tuple< data::DatasetInfo, arma::mat >>::value >::type *=0)
Print the input processing (basically calling params.Get<>()) for a non-serializable type...
Linear algebra utility functions, generally performed on matrices or vectors.
julia
Definition: CMakeLists.txt:7
This structure holds all of the information about a single parameter, including its value (which is s...
Definition: param_data.hpp:52