Automatic Differentiation
 
Loading...
Searching...
No Matches
scalar_type.hpp
Go to the documentation of this file.
1#ifndef STAN_MATH_PRIM_META_SCALAR_TYPE_HPP
2#define STAN_MATH_PRIM_META_SCALAR_TYPE_HPP
3
6#include <type_traits>
7#include <vector>
8
9namespace stan {
10
19template <typename T, typename = void>
21 using type = std::decay_t<T>;
22};
23
24template <typename T>
26
27} // namespace stan
28#endif
typename scalar_type< T >::type scalar_type_t
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...
Definition fvar.hpp:9
std::decay_t< T > type
Metaprogram structure to determine the base scalar type of a template argument.