![]() |
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).
Each element is L(row, col) = tanh(y_col) exp(-acc) with acc the sum of log(cosh(y)) over the earlier columns of the row, which has no cancellation.
| Order | order of the partial correlations in y |
| EigVec | type of the vector |
| LogCoshVec | type of the vector of log(cosh(y)) |
| y | unconstrained values, K (K - 1) / 2 of them |
| log_cosh_y | log_cosh(y), shared with the log Jacobian |
| K | number of rows |
Definition at line 117 of file cholesky_corr_constrain.hpp.