Stan Math Library  2.20.0
reverse mode automatic differentiation
is_var_or_arithmetic.hpp
Go to the documentation of this file.
1 #ifndef STAN_MATH_PRIM_SCAL_META_IS_VAR_OR_ARITHMETIC_HPP
2 #define STAN_MATH_PRIM_SCAL_META_IS_VAR_OR_ARITHMETIC_HPP
3 
7 #include <type_traits>
8 
9 namespace stan {
10 
16 template <typename T>
18  enum {
20  || std::is_arithmetic<typename scalar_type<T>::type>::value)
21  };
22 };
23 
28 template <typename... T>
30 
31 } // namespace stan
32 #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
Extends std::true_type when instantiated with zero or more template parameters, all of which extend t...
Definition: conjunction.hpp:14
Defines a public enum named value which is defined to be true (1) if the type is either var or an ari...

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