![]() |
Stan Math Library
5.1.0
Automatic Differentiation
|
|
inline |
Specialization of ub_constrain to apply a scalar upper bound elementwise to each input.
| T | A type inheriting from EigenBase. |
| U | Scalar. |
| Lp | Scalar, should be convertable from U and the scalar type of T. |
| [in] | x | unconstrained input |
| [in] | ub | upper bound on output |
| [in,out] | lp | reference to log probability to increment |
Definition at line 111 of file ub_constrain.hpp.