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).
This overload handles looping over the elements of a standard vector.
- Template Parameters
-
T | A standard vector with inner type inheriting from Eigen::DenseBase or a var_value with inner type inheriting from Eigen::DenseBase with compile time dynamic rows and 1 column |
- Parameters
-
x | The vector to convert to a covariance matrix |
K | The dimensions of the resulting covariance matrix |
- Exceptions
-
std::domain_error | if (x.size() != K + (K choose 2)). |
Definition at line 105 of file cov_matrix_constrain.hpp.