Automatic Differentiation
 
Loading...
Searching...
No Matches
common_return_scalar.hpp
Go to the documentation of this file.
1#ifndef STAN_MATH_OPENCL_KERNEL_GENERATOR_COMMON_RETURN_SCALAR_HPP
2#define STAN_MATH_OPENCL_KERNEL_GENERATOR_COMMON_RETURN_SCALAR_HPP
3#include <type_traits>
4
5namespace stan {
6namespace math {
11template <typename... Types>
12using common_scalar_t = typename std::common_type_t<
13 typename std::remove_reference_t<Types>::Scalar...>;
14} // namespace math
15} // namespace stan
16
17#endif
typename std::common_type_t< typename std::remove_reference_t< Types >::Scalar... > common_scalar_t
Wrapper for std::common_type_t
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...