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() [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 using the inverse of the isometric log ratio (ILR) transform

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 73 of file stochastic_row_constrain.hpp.