Automatic Differentiation
 
Loading...
Searching...
No Matches
is_real.hpp
Go to the documentation of this file.
1#ifndef STAN_MATH_PRIM_META_IS_REAL_HPP
2#define STAN_MATH_PRIM_META_IS_REAL_HPP
3
13
14#include <type_traits>
15
16namespace stan {
17
24template <typename T>
25struct is_real : bool_constant<math::disjunction<
26 math::conjunction<is_var<std::decay_t<T>>,
27 std::is_arithmetic<value_type_t<T>>>,
28 is_fvar<std::decay_t<T>>,
29 std::is_arithmetic<std::decay_t<T>>>::value> {};
30
31template <typename T>
33
41template <typename T>
43
46template <typename T>
48
51template <typename... Types>
53
56template <typename... Types>
58
61template <typename... Types>
64
68template <typename... Types>
73} // namespace stan
74
75#endif
require_all_t< is_real< std::decay_t< Types > >... > require_all_real_t
Require all of the types satisfy is_real.
Definition is_real.hpp:52
require_any_t< is_real< std::decay_t< Types > >... > require_any_real_t
Require any of the types satisfy is_real.
Definition is_real.hpp:57
require_t< is_real< std::decay_t< T > > > require_real_t
Require type satisfies is_real.
Definition is_real.hpp:42
require_not_t< is_real< std::decay_t< T > > > require_not_real_t
Require type does not satisfy is_real.
Definition is_real.hpp:47
require_any_not_t< is_real< std::decay_t< Types > >... > require_any_not_real_t
Require at least one of the types do not satisfy is_real.
Definition is_real.hpp:70
require_all_not_t< is_real< std::decay_t< Types > >... > require_all_not_real_t
Require none of the types satisfy is_real.
Definition is_real.hpp:63
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...
constexpr bool is_real_v
Definition is_real.hpp:32
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...
Checks if decayed type is a var, fvar, or arithmetic.
Definition is_real.hpp:29