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

◆ stochastic_row_constrain() [2/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,
value_type_t< Mat > &  lp 
)
inline

Return a row stochastic matrix.

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

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

Definition at line 55 of file stochastic_row_constrain.hpp.