Loading [MathJax]/extensions/TeX/AMSsymbols.js
Automatic Differentiation
 
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Loading...
Searching...
No Matches

◆ stochastic_row_constrain() [2/6]

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

Return a row stochastic matrix.

The simplex transform is defined using the inverse of the isometric log ratio (ILR) transform

Template Parameters
Mattype of the matrix
LpA scalar type for the lp argument. The scalar type of Mat should be convertable to this.
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 50 of file stochastic_row_constrain.hpp.