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

◆ lb_constrain() [7/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 ( const T &  x,
const L &  lb,
return_type_t< T, L > &  lp 
)
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
[in,out]lpreference to log probability to increment
Returns
lower-bound constrained value corresponding to inputs
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
[in,out]lpreference to log probability to increment
Returns
lower-bound constrained value corresponding to inputs

Definition at line 100 of file lb_constrain.hpp.