mlpack 3.4.2
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
15namespace mlpack {
16namespace bindings {
17namespace julia {
18
23template<typename T>
26 const std::string& functionName,
27 const typename std::enable_if<!data::HasSerialize<T>::value>::type* = 0,
28 const typename std::enable_if<!std::is_same<T,
29 std::tuple<data::DatasetInfo, arma::mat>>::value>::type* = 0);
30
34template<typename T>
37 const std::string& functionName,
38 const typename std::enable_if<arma::is_arma_type<T>::value>::type* = 0,
39 const typename std::enable_if<!std::is_same<T,
40 std::tuple<data::DatasetInfo, arma::mat>>::value>::type* = 0);
41
45template<typename T>
48 const std::string& functionName,
49 const typename std::enable_if<!arma::is_arma_type<T>::value>::type* = 0,
50 const typename std::enable_if<data::HasSerialize<T>::value>::type* = 0,
51 const typename std::enable_if<!std::is_same<T,
52 std::tuple<data::DatasetInfo, arma::mat>>::value>::type* = 0);
53
58template<typename T>
61 const std::string& functionName,
62 const typename std::enable_if<std::is_same<T,
63 std::tuple<data::DatasetInfo, arma::mat>>::value>::type* = 0);
64
68template<typename T>
70 const void* input,
71 void* /* output */)
72{
73 // Call out to the right overload.
74 PrintInputProcessing<typename std::remove_pointer<T>::type>(d,
75 *((std::string*) input));
76}
77
78} // namespace julia
79} // namespace bindings
80} // namespace mlpack
81
82#include "print_input_processing_impl.hpp"
83
84#endif
julia
Definition: CMakeLists.txt:6
void PrintInputProcessing(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 input processing (basically calling IO::GetParam<>()) for a non-serializable type.
Linear algebra utility functions, generally performed on matrices or vectors.
Definition: cv.hpp:1
This structure holds all of the information about a single parameter, including its value (which is s...
Definition: param_data.hpp:53