1 #ifndef STAN_MATH_PRIM_SCAL_FUN_UB_CONSTRAIN_HPP
2 #define STAN_MATH_PRIM_SCAL_FUN_UB_CONSTRAIN_HPP
4 #include <boost/math/tools/promotion.hpp>
34 template <
typename T,
typename TU>
36 typename boost::math::tools::promote_args<T, TU>::type
39 if (ub == std::numeric_limits<double>::infinity())
67 template <
typename T,
typename TU>
69 typename boost::math::tools::promote_args<T, TU>::type
72 if (ub == std::numeric_limits<double>::infinity())
fvar< T > exp(const fvar< T > &x)
boost::math::tools::promote_args< T, TU >::type ub_constrain(const T x, const TU ub)
Return the upper-bounded value for the specified unconstrained scalar and upper bound.
T identity_constrain(T x)
Returns the result of applying the identity constraint transform to the input.