![]() |
Stan Math Library
5.1.0
Automatic Differentiation
|
|
inline |
The covariance matrix derived from the symmetric view of the lower-triangular view of the K by K specified matrix is freed to return a vector of size K + (K choose 2).
This is the inverse of the cov_matrix_constrain() function so that for any finite vector x of size K
x == cov_matrix_free(cov_matrix_constrain(x, K)).
In order for this round-trip to work (and really for this function to work), the symmetric view of its lower-triangular view must be positive definite.
| T | type of the matrix (must be derived from Eigen::MatrixBase) |
| y | Matrix of dimensions K by K such that he symmetric view of the lower-triangular view is positive definite. |
| std::domain_error | if y is not square, has zero dimensionality, or has a non-positive diagonal element. |
Definition at line 38 of file cov_matrix_free.hpp.