13#ifndef MLPACK_BINDINGS_IO_GET_ALLOCATED_MEMORY_HPP
14#define MLPACK_BINDINGS_IO_GET_ALLOCATED_MEMORY_HPP
26 const typename boost::disable_if<arma::is_arma_type<T>>::type* = 0)
34 const typename boost::enable_if<arma::is_arma_type<T>>::type* = 0)
42 const typename boost::disable_if<arma::is_arma_type<T>>::type* = 0,
46 return *boost::any_cast<T*>(&d.
value);
55 GetAllocatedMemory<typename std::remove_pointer<T>::type>(d);
void * GetAllocatedMemory(util::ParamData &, const typename boost::disable_if< data::HasSerialize< T > >::type *=0, const typename boost::disable_if< arma::is_arma_type< T > >::type *=0)
Linear algebra utility functions, generally performed on matrices or vectors.
This structure holds all of the information about a single parameter, including its value (which is s...
boost::any value
The actual value that is held.