<a id="skfolio-utils-stats-assert-is-square"></a>

# skfolio.utils.stats.assert_is_square

<a id="skfolio.utils.stats.assert_is_square"></a>

### skfolio.utils.stats.assert_is_square(x)

Raises an error if the matrix is not square.

* **Parameters:**
  **x** *ndarray of shape (n, n)*
  : The matrix.
* **Raises:**
  ValueError: if the matrix is not square.

