![]() |
Stan Math Library
5.4.0
Automatic Differentiation
|
|
inline |
Return the k x k covariance matrix (diag(sds) L) (diag(sds) L)^T, with L the Cholesky factor of the correlation matrix of the first k choose 2 unconstrained values and sds = exp(x.tail(k)).
See corr_matrix_constrain for the correlation transform.
| T | type of input vector (must be a var_value<S> where S inherits from EigenBase) |
| x | Input vector of unconstrained partial correlations and standard deviations. |
| k | Dimensionality of returned covariance matrix. |
Definition at line 37 of file cov_matrix_constrain_lkj.hpp.