Automatic Differentiation
 
Loading...
Searching...
No Matches

◆ promote_scalar() [4/4]

template<typename PromotionScalars , typename UnPromotedTypes , require_all_tuple_t< PromotionScalars, UnPromotedTypes > * = nullptr, require_not_same_t< PromotionScalars, UnPromotedTypes > * = nullptr>
constexpr promote_scalar_t< PromotionScalars, UnPromotedTypes > stan::math::promote_scalar ( UnPromotedTypes &&  x)
inlineconstexpr

Promote the scalar type of a tuples elements to the requested types.

Template Parameters
PromotionScalarsA tuple of scalar types that is the same size as the tuple of UnPromotedTypes.
UnPromotedTypestuple input. Each PromotionScalars element must be constructible from it's associated element of UnPromotedTypes scalar_type
Parameters
xinput

Definition at line 101 of file promote_scalar.hpp.