Automatic Differentiation
 
Loading...
Searching...
No Matches
is_double_or_int.hpp
Go to the documentation of this file.
1#ifndef STAN_MATH_PRIM_META_IS_DOUBLE_OR_INT_HPP
2#define STAN_MATH_PRIM_META_IS_DOUBLE_OR_INT_HPP
3
7#include <type_traits>
8
9namespace stan {
15template <typename T>
18 math::disjunction<std::is_same<double, std::decay_t<T>>,
19 std::is_same<int, std::decay_t<T>>>::value> {};
20
28template <typename T>
30
33template <typename T>
36
39template <typename... Types>
42
45template <typename... Types>
48
51template <typename... Types>
54
58template <typename... Types>
63} // namespace stan
64#endif
require_any_not_t< is_double_or_int< std::decay_t< Types > >... > require_any_not_double_or_int_t
Require at least one of the types do not satisfy is_double_or_int.
require_all_not_t< is_double_or_int< std::decay_t< Types > >... > require_all_not_double_or_int_t
Require none of the types satisfy is_double_or_int.
require_t< is_double_or_int< std::decay_t< T > > > require_double_or_int_t
Require type satisfies is_double_or_int.
require_not_t< is_double_or_int< std::decay_t< T > > > require_not_double_or_int_t
Require type does not satisfy is_double_or_int.
require_any_t< is_double_or_int< std::decay_t< Types > >... > require_any_double_or_int_t
Require any of the types satisfy is_double_or_int.
require_all_t< is_double_or_int< std::decay_t< Types > >... > require_all_double_or_int_t
Require all of the types satisfy is_double_or_int.
std::enable_if_t<!Check::value > require_not_t
If condition is false, template is disabled.
std::enable_if_t< math::disjunction< Checks... >::value > require_any_t
If any condition is true, template is enabled.
std::enable_if_t<!math::disjunction< Checks... >::value > require_all_not_t
If all conditions are false, template is enabled.
std::enable_if_t<!math::conjunction< Checks... >::value > require_any_not_t
If any condition is false, template is enabled.
std::enable_if_t< Check::value > require_t
If condition is true, template is enabled.
std::enable_if_t< math::conjunction< Checks... >::value > require_all_t
If all conditions are true, template is enabled Returns a type void if all conditions are true and ot...
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...
Checks if decayed type is a double or integer.