Stan Math Library
5.0.0
Automatic Differentiation
|
|
inline |
Return the upper-bounded value for the specified unconstrained matrix and upper bound.
Specialization of ub_constrain
to apply a matrix of upper bounds elementwise to each input element.
The transform is
\(f(x) = U - \exp(x)\)
where \(U\) is the upper bound.
T | type of Matrix |
U | type of upper bound |
[in] | x | free Matrix. |
[in] | ub | upper bound |
T | A type inheriting from EigenBase . |
U | A type inheriting from EigenBase . |
[in] | x | unconstrained input |
[in] | ub | upper bound on output |
The transform is
\(f(x) = U - \exp(x)\)
where \(U\) is the upper bound.
T | Scalar |
U | Scalar |
[in] | x | free Matrix. |
[in] | ub | upper bound |
T | A type inheriting from EigenBase or a var_value with inner type inheriting from EigenBase . |
U | A type inheriting from EigenBase or a var_value with inner type inheriting from EigenBase . |
[in] | x | unconstrained input |
[in] | ub | upper bound on output |
Definition at line 36 of file ub_constrain.hpp.