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