12 #ifndef MLPACK_CORE_HPT_FIXED_HPP 13 #define MLPACK_CORE_HPT_FIXED_HPP 15 #include <type_traits> 51 template<
typename T,
size_t I>
99 struct Implementation : std::false_type {};
101 template<
typename Type>
102 struct Implementation<PreFixedArg<Type>> : std::true_type {};
105 static const bool value = Implementation<typename std::decay<T>::type>
::value;
PreFixedArg< T > Fixed(T &&value)
Mark the given argument as one that should be fixed.
Linear algebra utility functions, generally performed on matrices or vectors.
Include all of the base components required to write mlpack methods, and the main mlpack Doxygen docu...
const T & value
The value of the fixed argument.
A struct for marking arguments as ones that should be fixed (it can be useful for the Optimize method...
A struct for storing information about a fixed argument.
A type function for checking whether the given type is PreFixedArg.
static const size_t index
The index of the fixed argument.