Loading [MathJax]/extensions/TeX/AMSsymbols.js
Automatic Differentiation
 
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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
27template <typename... Args>
28struct scalar_type<std::tuple<Args...>, void> {
29 using type = std::tuple<scalar_type_t<Args>...>;
30};
31
32} // namespace stan
33#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 ...
STL namespace.
std::tuple< scalar_type_t< Args >... > type
std::decay_t< T > type
Metaprogram structure to determine the base scalar type of a template argument.