Stan Math Library
5.0.0
Automatic Differentiation
|
var_value< Eigen::MatrixXd > stan::math::cov_matrix_constrain | ( | const T & | x, |
Eigen::Index | K | ||
) |
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).
See cov_matrix_free()
for the inverse transform.
T | type of input vector (must be a var_value<S> where S inherits from EigenBase) |
x | The vector to convert to a covariance matrix. |
K | The number of rows and columns of the resulting covariance matrix. |
std::invalid_argument | if (x.size() != K + (K choose 2)). |
Definition at line 32 of file cov_matrix_constrain.hpp.