pyriemann.utils.test.is_square

pyriemann.utils.test.is_square(X)

Check if matrices are square.

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

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

Returns:
retbool

True if matrices are square.