traits.hpp File Reference
Include dependency graph for traits.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  HasConstSignatures< ClassType, CheckerA, ConstSignatureA, StaticSignatureA, CheckerB, ConstSignatureB, StaticSignatureB >
 Utility struct: sometimes we want to know if we have two functions available, and that at least one of them is const and both of them are not non-const and non-static. More...

 
struct  HasNonConstSignatures< ClassType, CheckerA, SignatureA, ConstSignatureA, StaticSignatureA, CheckerB, SignatureB, ConstSignatureB, StaticSignatureB >
 Utility struct: sometimes we want to know if we have two functions available, and that at least one of them is non-const and non-static. More...

 
struct  UnconstructableType
 This is a utility type used to provide unusable overloads from each of the mixin classes. More...

 

Namespaces

 mlpack
 
.hpp
 
 mlpack::optimization
 
 mlpack::optimization::traits
 

Typedefs

template
<
typename
FunctionType
>
using DecomposableEvaluateConstForm = double(FunctionType::*)(const arma::mat &, const size_t, const size_t) const
 This is the form of a decomposable const Evaluate() method. More...

 
template
<
typename
FunctionType
>
using DecomposableEvaluateForm = double(FunctionType::*)(const arma::mat &, const size_t, const size_t)
 This is the form of a decomposable Evaluate() method. More...

 
template
<
typename
FunctionType
>
using DecomposableEvaluateStaticForm = double(*)(const arma::mat &, const size_t, const size_t)
 This is the form of a decomposable static Evaluate() method. More...

 
template
<
typename
FunctionType
>
using DecomposableEvaluateWithGradientConstForm = double(FunctionType::*)(const arma::mat &, const size_t, arma::mat &, const size_t) const
 This is the form of a decomposable const EvaluateWithGradient() method. More...

 
template
<
typename
FunctionType
>
using DecomposableEvaluateWithGradientForm = double(FunctionType::*)(const arma::mat &, const size_t, arma::mat &, const size_t)
 This is the form of a decomposable non-const EvaluateWithGradient() method. More...

 
template
<
typename
FunctionType
>
using DecomposableEvaluateWithGradientStaticForm = double(*)(const arma::mat &, const size_t, arma::mat &, const size_t)
 This is the form of a decomposable static EvaluateWithGradient() method. More...

 
template
<
typename
FunctionType
>
using DecomposableGradientConstForm = void(FunctionType::*)(const arma::mat &, const size_t, arma::mat &, const size_t) const
 This the form of a decomposable const Gradient() method. More...

 
template
<
typename
FunctionType
>
using DecomposableGradientForm = void(FunctionType::*)(const arma::mat &, const size_t, arma::mat &, const size_t)
 This is the form of a decomposable non-const Gradient() method. More...

 
template
<
typename
FunctionType
>
using DecomposableGradientStaticForm = void(*)(const arma::mat &, const size_t, arma::mat &, const size_t)
 This is the form of a decomposable static Gradient() method. More...

 
template
<
typename
FunctionType
>
using EvaluateConstForm = double(FunctionType::*)(const arma::mat &) const
 This is the form of a const Evaluate() method. More...

 
template
<
typename
FunctionType
>
using EvaluateConstraintConstForm = double(FunctionType::*)(const size_t, const arma::mat &) const
 This is the form of a const EvaluateConstraint() method. More...

 
template
<
typename
FunctionType
>
using EvaluateConstraintForm = double(FunctionType::*)(const size_t, const arma::mat &)
 This is the form of a non-const EvaluateConstraint() method. More...

 
template
<
typename
FunctionType
>
using EvaluateConstraintStaticForm = double(*)(const size_t, const arma::mat &)
 This is the form of a static EvaluateConstraint() method. More...

 
template
<
typename
FunctionType
>
using EvaluateForm = double(FunctionType::*)(const arma::mat &)
 This is the form of a non-const Evaluate() method. More...

 
template
<
typename
FunctionType
>
using EvaluateStaticForm = double(*)(const arma::mat &)
 This is the form of a static Evaluate() method. More...

 
template
<
typename
FunctionType
>
using EvaluateWithGradientConstForm = double(FunctionType::*)(const arma::mat &, arma::mat &) const
 This is the form of a const EvaluateWithGradient() method. More...

 
template
<
typename
FunctionType
>
using EvaluateWithGradientForm = double(FunctionType::*)(const arma::mat &, arma::mat &)
 This is the form of a non-const EvaluateWithGradient() method. More...

 
template
<
typename
FunctionType
>
using EvaluateWithGradientStaticForm = double(*)(const arma::mat &, arma::mat &)
 This is the form of a static EvaluateWithGradient() method. More...

 
template
<
typename
FunctionType
>
using GradientConstForm = void(FunctionType::*)(const arma::mat &, arma::mat &) const
 This is the form of a const Gradient() method. More...

 
template
<
typename
FunctionType
>
using GradientConstraintConstForm = void(FunctionType::*)(const size_t, const arma::mat &, arma::mat &) const
 This is the form of a const GradientConstraint() method. More...

 
template
<
typename
FunctionType
>
using GradientConstraintForm = void(FunctionType::*)(const size_t, const arma::mat &, arma::mat &)
 This is the form of a non-const GradientConstraint() method. More...

 
template<typename Class , typename... Ts>
using GradientConstraintStaticForm = void(*)(const size_t, const arma::mat &, arma::mat &)
 This is the form of a static GradientConstraint() method. More...

 
template
<
typename
FunctionType
>
using GradientForm = void(FunctionType::*)(const arma::mat &, arma::mat &)
 This is the form of a non-const Gradient() method. More...

 
template
<
typename
FunctionType
>
using GradientStaticForm = void(*)(const arma::mat &, arma::mat &)
 This is the form of a static Gradient() method. More...

 
template
<
typename
FunctionType
>
using NumConstraintsConstForm = size_t(FunctionType::*)() const
 This is the form of a const NumConstraints() method. More...

 
template
<
typename
FunctionType
>
using NumConstraintsForm = size_t(FunctionType::*)()
 This is the form of a non-const NumConstraints() method. More...

 
template
<
typename
FunctionType
>
using NumConstraintsStaticForm = size_t(*)()
 This is the form of a static NumConstraints() method. More...

 
template
<
typename
FunctionType
>
using NumFeaturesConstForm = size_t(FunctionType::*)() const
 This is the form of a const NumFeatures() method. More...

 
template
<
typename
FunctionType
>
using NumFeaturesForm = size_t(FunctionType::*)()
 This is the form of a non-const NumFeatures() method. More...

 
template
<
typename
FunctionType
>
using NumFeaturesStaticForm = size_t(*)()
 This is the form of a static NumFeatures() method. More...

 
template
<
typename
FunctionType
>
using NumFunctionsConstForm = size_t(FunctionType::*)() const
 This is the form of a const NumFunctions() method. More...

 
template
<
typename
FunctionType
>
using NumFunctionsForm = size_t(FunctionType::*)()
 This is the form of a non-const NumFunctions() method. More...

 
template
<
typename
FunctionType
>
using NumFunctionsStaticForm = size_t(*)()
 This is the form of a static NumFunctions() method. More...

 
template<typename FunctionType , typename... Ts>
using OtherConstForm = double(FunctionType::*)(Ts...) const
 This is a utility struct that will match any const form. More...

 
template<typename FunctionType , typename... Ts>
using OtherForm = double(FunctionType::*)(Ts...)
 This is a utility struct that will match any non-const form. More...

 
template<typename FunctionType , typename... Ts>
using OtherStaticForm = double(*)(Ts...)
 This is a utility struct that will match any static form. More...

 
template
<
typename
FunctionType
>
using PartialGradientConstForm = void(FunctionType::*)(const arma::mat &, const size_t, arma::sp_mat &) const
 This is the form of a const PartialGradient() method. More...

 
template
<
typename
FunctionType
>
using PartialGradientForm = void(FunctionType::*)(const arma::mat &, const size_t, arma::sp_mat &)
 This is the form of a non-const PartialGradient() method. More...

 
template
<
typename
FunctionType
>
using PartialGradientStaticForm = void(*)(const arma::mat &, const size_t, arma::sp_mat &)
 This is the form of a static PartialGradient() method. More...

 
template
<
typename
FunctionType
>
using ShuffleConstForm = void(FunctionType::*)() const
 This is the form of a const Shuffle() method. More...

 
template
<
typename
FunctionType
>
using ShuffleForm = void(FunctionType::*)()
 This is the form of a non-const Shuffle() method. More...

 
template
<
typename
FunctionType
>
using ShuffleStaticForm = void(*)()
 This is the form of a static Shuffle() method. More...

 
template
<
typename
FunctionType
>
using SparseGradientConstForm = void(FunctionType::*)(const arma::mat &, const size_t, arma::sp_mat &, const size_t) const
 This is the form of a const sparse Gradient() method. More...

 
template
<
typename
FunctionType
>
using SparseGradientForm = void(FunctionType::*)(const arma::mat &, const size_t, arma::sp_mat &, const size_t)
 This is the form of a non-const sparse Gradient() method. More...

 
template
<
typename
FunctionType
>
using SparseGradientStaticForm = void(*)(const arma::mat &, const size_t, arma::sp_mat &, const size_t)
 This is the form of a static sparse Gradient() method. More...

 

Functions

 HAS_EXACT_METHOD_FORM (Evaluate, HasEvaluate)
 Detect an Evaluate() method. More...

 
 HAS_EXACT_METHOD_FORM (Gradient, HasGradient)
 Detect a Gradient() method. More...

 
 HAS_EXACT_METHOD_FORM (EvaluateWithGradient, HasEvaluateWithGradient)
 Detect an EvaluateWithGradient() method. More...

 
 HAS_EXACT_METHOD_FORM (NumFunctions, HasNumFunctions)
 Detect a NumFunctions() method. More...

 
 HAS_EXACT_METHOD_FORM (Shuffle, HasShuffle)
 Detect a Shuffle() method. More...

 
 HAS_EXACT_METHOD_FORM (NumConstraints, HasNumConstraints)
 Detect a NumConstraints() method. More...

 
 HAS_EXACT_METHOD_FORM (EvaluateConstraint, HasEvaluateConstraint)
 Detect an EvaluateConstraint() method. More...

 
 HAS_EXACT_METHOD_FORM (GradientConstraint, HasGradientConstraint)
 Detect a GradientConstraint() method. More...

 
 HAS_EXACT_METHOD_FORM (NumFeatures, HasNumFeatures)
 Detect a NumFeatures() method. More...

 
 HAS_EXACT_METHOD_FORM (PartialGradient, HasPartialGradient)
 Detect a PartialGradient() method. More...