Stan Math Library
4.9.0
Automatic Differentiation
|
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.
T | Type being tested. |
Definition at line 30 of file is_constant.hpp.
#include <is_constant.hpp>