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

◆ promote_scalar() [3/4]

template<typename PromotionScalar , typename UnPromotedType , require_eigen_t< UnPromotedType > * = nullptr, require_not_same_t< PromotionScalar, value_type_t< UnPromotedType > > * = nullptr>
auto stan::math::promote_scalar ( UnPromotedType &&  x)
inline

Promote the scalar type of an eigen matrix to the requested type.

Promote the scalar type of an standard vector to the requested type.

Template Parameters
PromotionScalarscalar type of output.
UnPromotedTypeinput type. The PromotionScalar type must be constructible from UnPromotedType's scalar_type
Parameters
xinput

Definition at line 56 of file promote_scalar.hpp.