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

◆ promote_scalar() [2/4]

template<typename PromotionScalar , typename UnPromotedType , require_same_t< PromotionScalar, scalar_type_t< UnPromotedType > > * = nullptr>
constexpr auto stan::math::promote_scalar ( UnPromotedType &&  x)
inlineconstexprnoexcept

No-op overload when promoting a type's scalar to the type it already has.

Template Parameters
PromotionScalarscalar type of output.
UnPromotedTypeinput type. UnPromotedType's scalar_type must be equal to PromotionScalar
Parameters
xinput

Definition at line 40 of file promote_scalar.hpp.