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

◆ lb_constrain() [14/14]

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

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

Template Parameters
TA type inheriting from EigenBase or a var_value with inner 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 135 of file lb_constrain.hpp.