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<!data::HasSerialize<T>::value>::type* = 0,
30  const typename std::enable_if<!std::is_same<T,
31  std::tuple<data::DatasetInfo, arma::mat>>::value>::type* = 0);
32 
36 template<typename T>
38  util::ParamData& d,
39  const std::string& functionName,
40  const typename std::enable_if<arma::is_arma_type<T>::value>::type* = 0,
41  const typename std::enable_if<!std::is_same<T,
42  std::tuple<data::DatasetInfo, arma::mat>>::value>::type* = 0);
43 
47 template<typename T>
49  util::ParamData& d,
50  const std::string& functionName,
51  const typename std::enable_if<!arma::is_arma_type<T>::value>::type* = 0,
52  const typename std::enable_if<data::HasSerialize<T>::value>::type* = 0,
53  const typename std::enable_if<!std::is_same<T,
54  std::tuple<data::DatasetInfo, arma::mat>>::value>::type* = 0);
55 
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  PrintOutputProcessing<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_output_processing_impl.hpp"
84 
85 #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:52
void PrintOutputProcessing(util::ParamData &d, const std::string &functionName, 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 IO::GetParam<>()) for a non-serializable type...