![]() |
Stan Math Library
5.0.0
Automatic Differentiation
|
|
inline |
Return the simplex corresponding to the specified free vector and increment the specified log probability reference with the log absolute Jacobian determinant of the transform.
The simplex transform is defined using the inverse of the isometric log ratio (ILR) transform. This code is equivalent to softmax(sum_to_zero_constrain(y))
, but is more efficient and stable if computed this way thanks to the use of the online softmax algorithm courtesy of https://arxiv.org/abs/1805.02867.
Vec | type of the vector |
Lp | A scalar type for the lp argument. The scalar type of Vec should be convertable to this. |
y | Free vector input of dimensionality K - 1. |
lp | Log probability reference to increment. |
Definition at line 94 of file simplex_constrain.hpp.