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>
31 template <
typename T,
typename TU>
33 typename boost::math::tools::promote_args<T, TU>::type
36 if (ub == std::numeric_limits<double>::infinity())
64 template <
typename T,
typename TU>
66 typename boost::math::tools::promote_args<T, TU>::type
69 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.