Stan Math Library
4.9.0
Automatic Differentiation
|
auto stan::math::ordered_constrain | ( | const VarVec & | x, |
scalar_type_t< VarVec > & | lp | ||
) |
Return a positive valued, increasing ordered vector derived from the specified free vector and increment the specified log probability reference with the log absolute Jacobian determinant of the transform.
The returned constrained vector will have the same dimensionality as the specified free vector.
T | type of the vector |
x | Free vector of scalars. |
lp | Log probability reference. |
Definition at line 73 of file ordered_constrain.hpp.