1 #ifndef STAN_MATH_PRIM_SCAL_FUN_UB_FREE_HPP 2 #define STAN_MATH_PRIM_SCAL_FUN_UB_FREE_HPP 6 #include <boost/math/tools/promotion.hpp> 35 template <
typename T,
typename TU>
37 typename boost::math::tools::promote_args<T, TU>::type
40 if (ub == std::numeric_limits<double>::infinity())
43 "Upper bounded variable", y, ub);
void check_less_or_equal(const char *function, const char *name, const T_y &y, const T_high &high)
Check if y is less or equal to high.
fvar< T > log(const fvar< T > &x)
boost::math::tools::promote_args< T, TU >::type ub_free(const T y, const TU ub)
Return the free scalar that corresponds to the specified upper-bounded value with respect to the spec...
T identity_free(const T y)
Returns the result of applying the inverse of the identity constraint transform to the input...