Return the symmetric, positive-definite matrix of dimensions K by K resulting from transforming the specified finite vector of size K plus (K choose 2).
- Template Parameters
-
T | type of the vector (must be derived from Eigen::MatrixBase and have one compile-time dimension equal to 1) |
- Parameters
-
x | The vector to convert to a covariance matrix. |
K | The dimensions of the resulting covariance matrix. |
lp | Reference |
- Exceptions
-
std::domain_error | if (x.size() != K + (K choose 2)). |
Definition at line 65 of file cov_matrix_constrain.hpp.