Automatic Differentiation
 
Loading...
Searching...
No Matches

◆ stochastic_row_constrain() [6/6]

template<typename T , require_rev_matrix_t< T > * = nullptr>
plain_type_t< T > stan::math::stochastic_row_constrain ( const T &  y,
scalar_type_t< T > &  lp 
)
inline

Return a row stochastic matrix and increment the specified log probability reference with the log absolute Jacobian determinant of the transform.

The simplex transform is defined through a centered stick-breaking process.

Template Parameters
Ttype of the matrix to constrain
Parameters
yFree matrix input of dimensionality (N, K).
lpLog probability reference to increment.
Returns
Matrix with simplexes along the rows of dimensionality (N, K + 1).

Definition at line 79 of file stochastic_row_constrain.hpp.