13 #ifndef MLPACK_BINDINGS_CLI_IN_PLACE_COPY_HPP 14 #define MLPACK_BINDINGS_CLI_IN_PLACE_COPY_HPP 34 const typename std::enable_if<!arma::is_arma_type<T>::value>::type* = 0,
36 const typename std::enable_if<!std::is_same<T,
37 std::tuple<mlpack::data::DatasetInfo, arma::mat>>::value>::type* = 0)
53 const typename std::enable_if<
54 arma::is_arma_type<T>::value ||
56 std::tuple<mlpack::data::DatasetInfo, arma::mat>>::value
60 typedef std::tuple<T, typename ParameterType<T>::type> TupleType;
61 TupleType& tuple = *boost::any_cast<TupleType>(&d.
value);
62 std::string& value = std::get<0>(std::get<1>(tuple));
64 const TupleType& inputTuple = *boost::any_cast<TupleType>(&input.
value);
65 value = std::get<0>(std::get<1>(inputTuple));
79 const typename std::enable_if<
83 typedef std::tuple<T*, typename ParameterType<T>::type> TupleType;
84 TupleType& tuple = *boost::any_cast<TupleType>(&d.
value);
85 std::string& value = std::get<1>(tuple);
87 const TupleType& inputTuple = *boost::any_cast<TupleType>(&input.
value);
88 value = std::get<1>(inputTuple);
105 InPlaceCopyInternal<typename std::remove_pointer<T>::type>(
boost::any value
The actual value that is held.
Linear algebra utility functions, generally performed on matrices or vectors.
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...
void InPlaceCopyInternal(util::ParamData &, util::ParamData &, 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< mlpack::data::DatasetInfo, arma::mat >>::value >::type *=0)
This overload is called when nothing special needs to happen to make something an in-place copy...
void InPlaceCopy(util::ParamData &d, const void *input, void *)
Make the given ParamData be an in-place copy of the input.