Automatic Differentiation
 
Loading...
Searching...
No Matches
is_arena_matrix.hpp
Go to the documentation of this file.
1#ifndef STAN_MATH_REV_META_IS_ARENA_MATRIX_HPP
2#define STAN_MATH_REV_META_IS_ARENA_MATRIX_HPP
3
5#include <type_traits>
6
7namespace stan {
8namespace internal {
9template <typename T>
10struct is_arena_matrix_impl : std::false_type {};
11template <typename T>
12struct is_arena_matrix_impl<math::arena_matrix<T>> : std::true_type {};
13} // namespace internal
18template <typename T>
20 T, require_t<internal::is_arena_matrix_impl<std::decay_t<T>>>>
21 : std::true_type {};
22
23} // namespace stan
24#endif
std::enable_if_t< Check::value > require_t
If condition is true, template is enabled.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...
Defines a static member named value which is defined to be true if the type is arena_matrix<T>