print_output_processing.hpp
Go to the documentation of this file.
1 
12 #ifndef MLPACK_BINDINGS_JULIA_PRINT_OUTPUT_PROCESSING_HPP
13 #define MLPACK_BINDINGS_JULIA_PRINT_OUTPUT_PROCESSING_HPP
14 
15 #include <mlpack/prereqs.hpp>
16 
17 namespace mlpack {
18 namespace bindings {
19 namespace julia {
20 
25 template<typename T>
27  util::ParamData& d,
28  const std::string& functionName,
29  const typename std::enable_if<!arma::is_arma_type<T>::value>::type* = 0,
30  const typename std::enable_if<!data::HasSerialize<T>::value>::type* = 0,
31  const typename std::enable_if<!std::is_same<T,
32  std::tuple<data::DatasetInfo, arma::mat>>::value>::type* = 0);
33 
37 template<typename T>
39  util::ParamData& d,
40  const std::string& functionName,
41  const typename std::enable_if<arma::is_arma_type<T>::value>::type* = 0,
42  const typename std::enable_if<!std::is_same<T,
43  std::tuple<data::DatasetInfo, arma::mat>>::value>::type* = 0);
44 
48 template<typename T>
50  util::ParamData& d,
51  const std::string& functionName,
52  const typename std::enable_if<!arma::is_arma_type<T>::value>::type* = 0,
53  const typename std::enable_if<data::HasSerialize<T>::value>::type* = 0,
54  const typename std::enable_if<!std::is_same<T,
55  std::tuple<data::DatasetInfo, arma::mat>>::value>::type* = 0);
56 
60 template<typename T>
62  util::ParamData& d,
63  const std::string& functionName,
64  const typename std::enable_if<std::is_same<T,
65  std::tuple<data::DatasetInfo, arma::mat>>::value>::type* = 0);
66 
70 template<typename T>
72  const void* input,
73  void* /* output */)
74 {
75  // Call out to the right overload.
76  PrintOutputProcessing<typename std::remove_pointer<T>::type>(d,
77  *((std::string*) input));
78 }
79 
80 } // namespace julia
81 } // namespace bindings
82 } // namespace mlpack
83 
84 #include "print_output_processing_impl.hpp"
85 
86 #endif
Linear algebra utility functions, generally performed on matrices or vectors.
The core includes that mlpack expects; standard C++ includes and Armadillo.
julia
Definition: CMakeLists.txt:6
This structure holds all of the information about a single parameter, including its value (which is s...
Definition: param_data.hpp:51
void PrintOutputProcessing(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 output processing (basically calling params.Get<>()) for a non-serializable type...