skfolio.utils.stats.assert_is_square#

skfolio.utils.stats.assert_is_square(x)[source]#

Raises an error if the matrix is not square.

Parameters:
xndarray of shape (n, n)

The matrix.

Raises:
ValueError: if the matrix is not square.