Automatic Differentiation
 
Loading...
Searching...
No Matches
disjunction.hpp
Go to the documentation of this file.
1#ifndef STAN_MATH_PRIM_META_DISJUNCTION_HPP
2#define STAN_MATH_PRIM_META_DISJUNCTION_HPP
3
4#include <type_traits>
5
6namespace stan {
7namespace math {
13template <typename... Conds>
14struct disjunction : std::false_type {};
15
16template <typename Cond, typename... Conds>
17struct disjunction<Cond, Conds...>
18 : std::conditional_t<Cond::value, std::true_type, disjunction<Conds...>> {};
19
20} // namespace math
21} // namespace stan
22#endif
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...
Extends std::false_type when instantiated with zero or more template parameters, all of which extend ...