mlpack 3.4.2
output_param.hpp
Go to the documentation of this file.
1
12#ifndef MLPACK_BINDINGS_CLI_OUTPUT_PARAM_HPP
13#define MLPACK_BINDINGS_CLI_OUTPUT_PARAM_HPP
14
15#include <mlpack/prereqs.hpp>
18
19namespace mlpack {
20namespace bindings {
21namespace cli {
22
26template<typename T>
28 util::ParamData& data,
29 const typename boost::disable_if<arma::is_arma_type<T>>::type* = 0,
30 const typename boost::disable_if<util::IsStdVector<T>>::type* = 0,
31 const typename boost::disable_if<data::HasSerialize<T>>::type* = 0,
32 const typename boost::disable_if<std::is_same<T,
33 std::tuple<data::DatasetInfo, arma::mat>>>::type* = 0);
34
38template<typename T>
40 util::ParamData& data,
41 const typename boost::enable_if<util::IsStdVector<T>>::type* = 0);
42
46template<typename T>
48 util::ParamData& data,
49 const typename boost::enable_if<arma::is_arma_type<T>>::type* = 0);
50
54template<typename T>
56 util::ParamData& data,
57 const typename boost::disable_if<arma::is_arma_type<T>>::type* = 0,
58 const typename boost::enable_if<data::HasSerialize<T>>::type* = 0);
59
63template<typename T>
65 util::ParamData& data,
66 const typename boost::enable_if<std::is_same<T,
67 std::tuple<data::DatasetInfo, arma::mat>>>::type* = 0);
68
73template<typename T>
75 const void* /* input */,
76 void* /* output */)
77{
78 OutputParamImpl<typename std::remove_pointer<T>::type>(data);
79}
80
81} // namespace cli
82} // namespace bindings
83} // namespace mlpack
84
85// Include implementation.
86#include "output_param_impl.hpp"
87
88#endif
void OutputParamImpl(util::ParamData &data, const typename boost::disable_if< arma::is_arma_type< T > >::type *=0, const typename boost::disable_if< util::IsStdVector< T > >::type *=0, const typename boost::disable_if< data::HasSerialize< T > >::type *=0, const typename boost::disable_if< std::is_same< T, std::tuple< data::DatasetInfo, arma::mat > > >::type *=0)
Output an option (print to stdout).
void OutputParam(util::ParamData &data, const void *, void *)
Output an option.
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.
Metaprogramming structure for vector detection.
This structure holds all of the information about a single parameter, including its value (which is s...
Definition: param_data.hpp:53