pyriemann.utils.test.is_real

pyriemann.utils.test.is_real(X)

Check if all matrices are strictly real.

Better management of numerical imprecisions than np.all(np.isreal()).

Parameters:
Xndarray, shape (…, n, m)

The set of matrices.

Returns:
retbool

True if all matrices are strictly real.