Automatic Differentiation
 
Loading...
Searching...
No Matches
is_var_or_arithmetic.hpp
Go to the documentation of this file.
1#ifndef STAN_MATH_PRIM_META_IS_VAR_OR_ARITHMETIC_HPP
2#define STAN_MATH_PRIM_META_IS_VAR_OR_ARITHMETIC_HPP
3
9
10#include <type_traits>
11
12namespace stan {
13
19template <typename T>
22 is_var<scalar_type_t<std::decay_t<T>>>::value
23 || std::is_arithmetic<scalar_type_t<std::decay_t<T>>>::value)> {};
24
29template <typename... T>
31
39template <typename T>
42
45template <typename T>
48
51template <typename... Types>
54
57template <typename... Types>
60
63template <typename... Types>
66
70template <typename... Types>
82template <typename... Types>
87} // namespace stan
88#endif
require_t< is_var_or_arithmetic< std::decay_t< T > > > require_var_or_arithmetic_t
Require type satisfies is_var_or_arithmetic.
require_all_t< is_var_or_arithmetic< scalar_type_t< std::decay_t< Types > > >... > require_all_st_var_or_arithmetic
Require all of the scalar types satisfy is_var_or_arithmetic.
require_any_not_t< is_var_or_arithmetic< std::decay_t< Types > >... > require_any_not_var_or_arithmetic_t
Require at least one of the types do not satisfy is_var_or_arithmetic.
require_all_t< is_var_or_arithmetic< std::decay_t< Types > >... > require_all_var_or_arithmetic_t
Require all of the types satisfy is_var_or_arithmetic.
require_all_not_t< is_var_or_arithmetic< std::decay_t< Types > >... > require_all_not_var_or_arithmetic_t
Require none of the types satisfy is_var_or_arithmetic.
require_any_t< is_var_or_arithmetic< std::decay_t< Types > >... > require_any_var_or_arithmetic_t
Require any of the types satisfy is_var_or_arithmetic.
require_not_t< is_var_or_arithmetic< std::decay_t< T > > > require_not_var_or_arithmetic_t
Require type does not satisfy is_var_or_arithmetic.
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 ...
Definition fvar.hpp:9
Defines a static member value which is defined to be true (1) if the unqualified cv of type T or its ...
Extends std::true_type when instantiated with zero or more template parameters, all of which extend t...