Loading [MathJax]/extensions/TeX/AMSsymbols.js
Automatic Differentiation
 
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Loading...
Searching...
No Matches

◆ lb_constrain() [6/16]

template<typename T , typename L , typename Lp , require_all_stan_scalar_t< T, L > * = nullptr, require_all_not_st_var< T, L > * = nullptr, require_convertible_t< return_type_t< T, L >, Lp > * = nullptr>
auto stan::math::lb_constrain ( const T &  x,
const L &  lb,
Lp &  lp 
)
inline

Return the lower-bounded value for the specified unconstrained input and specified lower bound, incrementing the specified reference with the log absolute Jacobian determinant of the transform.

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

Template Parameters
TScalar.
LScalar.
Lpscalar, T and L should be convertible to this.
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.
LA type inheriting from EigenBase.
LpScalar, the scalar type of T and L should be convertible to this.
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 63 of file lb_constrain.hpp.