mlpack 3.4.2
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
17namespace mlpack {
18namespace bindings {
19namespace julia {
20
25template<typename T>
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
36template<typename T>
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
47template<typename T>
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
59template<typename T>
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
69template<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
julia
Definition: CMakeLists.txt:6
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.
Linear algebra utility functions, generally performed on matrices or vectors.
Definition: cv.hpp:1
The core includes that mlpack expects; standard C++ includes and Armadillo.
This structure holds all of the information about a single parameter, including its value (which is s...
Definition: param_data.hpp:53