Stan Math Library
5.0.0
Automatic Differentiation
|
|
inline |
Return the lower and upper-bounded matrix derived by transforming the specified free matrix given the specified lower and upper bounds.
The transform is the transformed and scaled inverse logit,
\(f(x) = L + (U - L) \mbox{logit}^{-1}(x)\)
T | matrix expression type |
L | lower bound expression type |
U | upper bound expression type |
[in] | x | Free matrix to transform. |
[in] | lb | Lower bound |
[in] | ub | Upper bound |
std::domain_error | if ub <= lb |
Definition at line 35 of file lub_constrain.hpp.