Automatic Differentiation
 
Loading...
Searching...
No Matches

◆ lub_constrain() [3/19]

template<typename T_x , typename T_lb , typename T_ub , require_all_prim_or_rev_kernel_expression_t< T_x, T_lb, T_ub > * = nullptr, require_any_var_t< T_x, T_lb, T_ub > * = nullptr, require_any_not_stan_scalar_t< T_x, T_lb, T_ub > * = nullptr>
var_value< matrix_cl< double > > stan::math::lub_constrain ( T_x &&  x,
T_lb &&  lb,
T_ub &&  ub 
)
inline

Return the bounded value for the specified unconstrained input and specified bounds.

The transform applied is

\(f(x) = \exp(x) + L\)

where \(L\) is the constant lower bound.

Template Parameters
T_xtype of the unconstrained input
T_lbtype of lower bound
T_ubtype of upper bound
Parameters
[in]xunconstrained input
[in]lblower bound
[in]ubupper bound
Returns
constrained matrix

Definition at line 42 of file lub_constrain.hpp.