Stan Math Library
4.9.0
Automatic Differentiation
|
|
inline |
Return the covariance matrix of the specified dimensionality derived from constraining the specified vector of unconstrained values.
The input vector must be of length \(k \choose 2 + k\). The first \(k \choose 2\) values in the input represent unconstrained (partial) correlations and the last \(k\) are unconstrained standard deviations of the dimensions.
The transform scales the correlation matrix transform defined in corr_matrix_constrain(Matrix, size_t)
with the constrained deviations.
T | type of the vector (must be derived from Eigen::MatrixBase and have one compile-time dimension equal to 1) |
x | Input vector of unconstrained partial correlations and standard deviations. |
k | Dimensionality of returned covariance matrix. |
Definition at line 35 of file cov_matrix_constrain_lkj.hpp.