Automatic Differentiation
 
Loading...
Searching...
No Matches
ub_constrain.hpp File Reference

Go to the source code of this file.

Namespaces

namespace  stan
 The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation from C or the boost::math::lgamma implementation.
 
namespace  stan::math
 Matrices and templated mathematical functions.
 

Functions

template<typename T_x , typename T_ub , require_all_prim_or_rev_kernel_expression_t< T_x, T_ub > * = nullptr, require_any_var_t< T_x, T_ub > * = nullptr, require_any_not_stan_scalar_t< T_x, T_ub > * = nullptr>
var_value< matrix_cl< double > > stan::math::ub_constrain (T_x &&x, T_ub &&ub)
 Return the upper-bounded value for the specified unconstrained input and specified upper bound.
 
template<typename T_x , typename T_ub , require_all_prim_or_rev_kernel_expression_t< T_x, T_ub > * = nullptr, require_any_var_t< T_x, T_ub > * = nullptr, require_any_not_stan_scalar_t< T_x, T_ub > * = nullptr>
var_value< matrix_cl< double > > stan::math::ub_constrain (T_x &&x, T_ub &&ub, var &lp)
 Return the upper-bounded value for the specified unconstrained input and specified upper bound.