Stan Math Library  2.20.0
reverse mode automatic differentiation
Namespaces | Functions
ub_constrain.hpp File Reference
#include <stan/math/prim/meta.hpp>
#include <boost/math/tools/promotion.hpp>
#include <stan/math/prim/scal/fun/identity_constrain.hpp>
#include <stan/math/prim/scal/fun/constants.hpp>
#include <cmath>

Go to the source code of this file.

Namespaces

 stan
 
 stan::math
 Matrices and templated mathematical functions.
 

Functions

template<typename T , typename U >
boost::math::tools::promote_args< T, U >::type stan::math::ub_constrain (const T &x, const U &ub)
 Return the upper-bounded value for the specified unconstrained scalar and upper bound. More...
 
template<typename T , typename U >
boost::math::tools::promote_args< T, U >::type stan::math::ub_constrain (const T &x, const U &ub, T &lp)
 Return the upper-bounded value for the specified unconstrained scalar and upper bound and increment the specified log probability reference with the log absolute Jacobian determinant of the transform. More...
 

     [ Stan Home Page ] © 2011–2018, Stan Development Team.