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

◆ lb_constrain() [6/14]

template<typename T , typename L , require_eigen_t< T > * = nullptr, require_stan_scalar_t< L > * = nullptr, require_all_not_st_var< T, L > * = nullptr>
auto stan::math::lb_constrain ( T &&  x,
L &&  lb 
)
inline

Specialization of lb_constrain to apply a scalar lower bound elementwise to each input.

Template Parameters
TA type inheriting from EigenBase.
LScalar.
Parameters
[in]xunconstrained input
[in]lblower bound on output
Returns
lower-bound constrained value corresponding to inputs

Definition at line 82 of file lb_constrain.hpp.