Automatic Differentiation
 
Loading...
Searching...
No Matches
is_fvar.hpp
Go to the documentation of this file.
1#ifndef STAN_MATH_FWD_META_IS_FVAR_HPP
2#define STAN_MATH_FWD_META_IS_FVAR_HPP
3
6#include <type_traits>
7
8namespace stan {
9
10namespace internal {
11template <typename T>
12struct is_fvar_impl : std::false_type {};
13
14template <typename T>
15struct is_fvar_impl<math::fvar<T>> : std::true_type {};
16
17} // namespace internal
18
19template <typename T>
20struct is_fvar<T,
21 std::enable_if_t<internal::is_fvar_impl<std::decay_t<T>>::value>>
22 : std::true_type {};
23
24} // namespace stan
25#endif
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...
Definition fvar.hpp:9
STL namespace.
Defines a static member function type which is defined to be false as the primitive scalar types cann...
Definition is_fvar.hpp:15