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

◆ stochastic_row_constrain() [1/6]

template<typename Mat , require_eigen_matrix_dynamic_t< Mat > * = nullptr, require_not_st_var< Mat > * = nullptr>
plain_type_t< Mat > stan::math::stochastic_row_constrain ( const Mat &  y)
inline

Return a row stochastic matrix.

The transform is based on a centered stick-breaking process.

Template Parameters
Mattype of the Matrix
Parameters
yFree Matrix input of dimensionality (N, K - 1).
Returns
Matrix with simplexes along the rows of dimensionality (N, K).

Definition at line 27 of file stochastic_row_constrain.hpp.