Stan Math Library  2.20.0
reverse mode automatic differentiation
is_var.hpp
Go to the documentation of this file.
1 #ifndef STAN_MATH_REV_SCAL_META_IS_VAR_HPP
2 #define STAN_MATH_REV_SCAL_META_IS_VAR_HPP
3 
5 #include <stan/math/rev/core.hpp>
6 
7 namespace stan {
12 template <>
13 struct is_var<stan::math::var> {
14  enum { value = true };
15 };
16 
17 } // namespace stan
18 #endif
Defines a public enum named value which is defined to be false as the primitive scalar types cannot b...
Definition: is_var.hpp:10
Independent (input) and dependent (output) variables for gradients.
Definition: var.hpp:33

     [ Stan Home Page ] © 2011–2018, Stan Development Team.