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

◆ sum_to_zero_constrain() [7/8]

template<typename T , require_rev_matrix_t< T > * = nullptr, require_not_t< is_rev_vector< T > > * = nullptr>
auto stan::math::sum_to_zero_constrain ( T &&  x)
inline

Return a matrix that sums to zero over both the rows and columns corresponding to the free matrix x.

This is a linear transform, with no Jacobian.

Template Parameters
Mattype of the matrix
Parameters
xFree matrix input of dimensionality (N - 1, M - 1).
Returns
Zero-sum matrix of dimensionality (N, M).

Definition at line 85 of file sum_to_zero_constrain.hpp.