Automatic Differentiation
 
Loading...
Searching...
No Matches
conjunction.hpp
Go to the documentation of this file.
1#ifndef STAN_MATH_PRIM_META_CONJUNCTION_HPP
2#define STAN_MATH_PRIM_META_CONJUNCTION_HPP
3
4#include <type_traits>
5
6namespace stan {
7namespace math {
13template <typename... T>
14struct conjunction : std::true_type {};
15
16template <typename T, typename... Ts>
17struct conjunction<T, Ts...>
18 : std::conditional_t<T::value, conjunction<Ts...>, std::false_type> {};
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 ...
Definition fvar.hpp:9
Extends std::true_type when instantiated with zero or more template parameters, all of which extend t...