A logical value. TRUE if the matrix is deemed positive semidefinite.
Negative otherwise (including if X is not symmetric).
Arguments
X
A matrix with no missing or infinite values.
tolerance
Tolerance for controlling whether
a tiny computed eigenvalue will actually be considered negative.
Computed negative eigenvalues will be considered
negative if they are less than which are less than
-abs(tolerance * max(eigen(X)$values)).
A small nonzero tolerance is recommended
since eigenvalues are nearly always computed with some floating-point error.
See Also
The function get_nearest_psd_matrix()
can be used to approximate a symmetric matrix which is not positive semidefinite,
by a similar positive semidefinite matrix.