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

◆ lb_constrain() [9/14]

template<typename T , typename L , require_not_std_vector_t< L > * = nullptr>
auto stan::math::lb_constrain ( const std::vector< T > &  x,
const L &  lb,
return_type_t< T, L > &  lp 
)
inline

Specialization of lb_constrain to apply a container of lower bounds elementwise to each input element.

Template Parameters
TA Any type with a Scalar scalar_type.
LA type inheriting from EigenBase or a standard vector.
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 173 of file lb_constrain.hpp.