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

◆ promote_scalar() [1/4]

template<typename PromotionScalar , typename UnPromotedType , require_constructible_t< PromotionScalar, UnPromotedType > * = nullptr, require_not_same_t< PromotionScalar, UnPromotedType > * = nullptr, require_all_not_tuple_t< PromotionScalar, UnPromotedType > * = nullptr>
constexpr auto stan::math::promote_scalar ( UnPromotedType &&  x)
inlineconstexpr

Promote a scalar to another scalar type.

Template Parameters
PromotionScalarscalar type of output.
UnPromotedTypeinput type. UnPromotedType must be constructible from PromotionScalar
Parameters
xinput scalar to be promoted to PromotionScalar type

Definition at line 25 of file promote_scalar.hpp.