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

◆ stochastic_column_constrain() [6/6]

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

Return a column 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 of stochastic columns of dimensionality (N + 1, K).

Definition at line 83 of file stochastic_column_constrain.hpp.