Stan Math Library
5.0.0
Automatic Differentiation
|
|
inline |
Specialization of ub_constrain
to apply a container of upper bounds elementwise to each input element.
If the Jacobian
parameter is true
, the log density accumulator is incremented with the log absolute Jacobian determinant of the transform. All of the transforms are specified with their Jacobians in the Stan Reference Manual chapter Constraint Transforms.
Jacobian | if true , increment log density accumulator with log absolute Jacobian determinant of constraining transform |
T | A type inheriting from Eigen::EigenBase , a var_value with inner type inheriting from Eigen::EigenBase , a standard vector, or a scalar |
U | A type inheriting from Eigen::EigenBase , a var_value with inner type inheriting from Eigen::EigenBase , a standard vector, or a scalar |
[in] | x | unconstrained input |
[in] | ub | upper bound on output |
[in,out] | lp | log density accumulator |
Definition at line 253 of file ub_constrain.hpp.