This function checks if the input is a proper covariance matrix, i.e. a symmetric, numeric matrix with non-negative eigenvalues.
Examples
x <- diag(2)
RprobitB:::is_covariance_matrix(x)
#> [1] TRUE
This function checks if the input is a proper covariance matrix, i.e. a symmetric, numeric matrix with non-negative eigenvalues.
x <- diag(2)
RprobitB:::is_covariance_matrix(x)
#> [1] TRUE