pyriemann.utils.test.is_sym_pos_def

pyriemann.utils.test.is_sym_pos_def(X, tol=0.0)

Check if all matrices are symmetric positive-definite (SPD).

Parameters
Xndarray, shape (…, n, n)

The set of square matrices, at least 2D ndarray.

tolfloat, default 0.0

Threshold below which eigen values are considered zero.

Returns
retboolean

True if all matrices are symmetric positive-definite.