skfolio.utils.stats.commutation_matrix#

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

Compute the commutation matrix.

Parameters:
xndarray of shape (n, m)

The matrix.

Returns:
Kndarray of shape (m * n, m * n)

The commutation matrix.