![]() |
Stan Math Library
5.0.0
Automatic Differentiation
|
|
inline |
Return a positive valued, increasing positive ordered vector derived from the specified free vector and increment the specified log probability reference with the log absolute Jacobian determinant of the transform.
Return a positive valued, increasing positive ordered vector derived from the specified free vector.
The returned constrained vector will have the same dimensionality as the specified free vector.
Vec | type of the vector |
Lp | A scalar type for the lp argument. The scalar type of Vec should be convertable to this. |
x | Free vector of scalars. |
lp | Log probability reference. |
The returned constrained vector will have the same dimensionality as the specified free vector. 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 |
Vec | A type inheriting from Eigen::EigenBase , a var_value with inner type inheriting from Eigen::EigenBase , or a vector thereof |
Lp | A scalar type for the lp argument. The scalar type of Vec should be convertable to this. |
x | Free vector of scalars | |
[in,out] | lp | log density accumulato |
Definition at line 56 of file positive_ordered_constrain.hpp.