picard.permute

picard.permute(A, scale=True)

Get a permutation to diagonalize and scale a matrix

Parameters:
Andarray, shape (n_features, n_features)

A matrix close from a permutation and scale matrix.

scaleboolean, optional

If True, scales the matrix A wrt its diagonal

Returns
——-
Andarray, shape (n_features, n_features)

A permuted matrix.

Fork me on GitHub