![]() |
Stan Math Library
5.4.0
Automatic Differentiation
|
|
inline |
Return the covariance matrix as cov_matrix_constrain_lkj(x, k) and add the log absolute Jacobian determinant to lp.
The Jacobian is the one of corr_matrix_constrain plus k log 2 + (k + 1) sum(x.tail(k)).
| T | type of the vector (must be derived from Eigen::MatrixBase and have one compile-time column) |
| x | Input vector of unconstrained partial correlations and standard deviations. |
| k | Dimensionality of returned covariance matrix. |
| lp | Log probability reference to increment. |
Definition at line 65 of file cov_matrix_constrain_lkj.hpp.