1 #ifndef STAN_MATH_PRIM_SCAL_FUN_LB_CONSTRAIN_HPP 2 #define STAN_MATH_PRIM_SCAL_FUN_LB_CONSTRAIN_HPP 5 #include <boost/math/tools/promotion.hpp> 32 template <
typename T,
typename L>
33 inline typename boost::math::tools::promote_args<T, L>::type
lb_constrain(
34 const T& x,
const L& lb) {
57 template <
typename T,
typename L>
58 inline typename boost::math::tools::promote_args<T, L>::type
lb_constrain(
59 const T& x,
const L& lb, T& lp) {
T identity_constrain(const T &x)
Returns the result of applying the identity constraint transform to the input.
boost::math::tools::promote_args< T, L >::type lb_constrain(const T &x, const L &lb)
Return the lower-bounded value for the specified unconstrained input and specified lower bound...
fvar< T > exp(const fvar< T > &x)
const double NEGATIVE_INFTY
Negative infinity.