is_positive_definite | R Documentation |
To do so, we compute the eigen values of the corresponding matrix with eigen
function,
and if all of them are positive above a given threshold, then we return true.
is_positive_definite(sigma, tol = 1e-06)
sigma |
a symmetric matrix with real values |
tol |
the numerical maximal tolerance threshold, to which an eigen value below it is considered negative |
a boolean, whether or not the matrix can be considered positive definite or not
Bastien CHASSAGNOL
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.