mlpack  git-master
CheckGradient< FunctionType > Struct Template Reference

Check if a suitable overload of Gradient() is available. More...

Static Public Attributes

static const bool value
 

Detailed Description


template
<
typename
FunctionType
>

struct mlpack::optimization::traits::CheckGradient< FunctionType >

Check if a suitable overload of Gradient() is available.

This is required by the FunctionType API.

Definition at line 45 of file static_checks.hpp.

Member Data Documentation

◆ value

const bool value
static
Initial value:
=
HasGradient<FunctionType, GradientForm>::value ||
HasGradient<FunctionType, GradientConstForm>::value ||
HasGradient<FunctionType, GradientStaticForm>::value

Definition at line 47 of file static_checks.hpp.


The documentation for this struct was generated from the following file:
  • /var/www/www.mlpack.org/mlpack-git/src/mlpack/core/optimizers/function/static_checks.hpp