Automatic Differentiation
 
Loading...
Searching...
No Matches
stan::is_constant< T, typename > Struct Template Reference

Detailed Description

template<typename T, typename = void>
struct stan::is_constant< T, typename >

Metaprogramming struct to detect whether a given type is constant in the mathematical sense (not the C++ const sense).

If the parameter type is constant, value will be equal to true.

The baseline implementation in this abstract base class is to classify a type T as constant if it can be converted (i.e., assigned) to a double. This baseline should be overridden for any type that should be treated as a variable.

Template Parameters
TType being tested.

Definition at line 30 of file is_constant.hpp.

#include <is_constant.hpp>

+ Inheritance diagram for stan::is_constant< T, typename >:

The documentation for this struct was generated from the following file: