![]() |
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 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. |
| lp | Log probability reference to increment. |
Definition at line 63 of file cov_matrix_constrain_lkj.hpp.