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

◆ lb_constrain() [3/14]

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

Return the lower-bounded value for the specified unconstrained input and specified lower bound.

The transform applied is

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

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

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

Definition at line 39 of file lb_constrain.hpp.