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

◆ lb_constrain() [5/17]

template<typename T , typename L , require_all_stan_scalar_t< T, L > * = nullptr, require_all_not_st_var< T, L > * = nullptr>
auto stan::math::lb_constrain ( T &&  x,
const L &  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
TScalar.
LScalar.
Parameters
[in]xUnconstrained input
[in]lbLower bound
Returns
Constrained matrix

Definition at line 37 of file lb_constrain.hpp.