![]() |
Stan Math Library
5.4.0
Automatic Differentiation
|
|
inline |
Return the Cholesky factor of a correlation matrix from unconstrained values y, whose partial correlations are tanh(y), as the prim version does.
The reverse pass propagates each adjoint to its own y and, through the shared exp(-a), to every earlier y of the row.
| Order | order of the partial correlations in y |
| T | type of the var_value vector |
| y | unconstrained values, K (K - 1) / 2 of them |
| K | number of rows |
Definition at line 33 of file cholesky_corr_constrain.hpp.