Transform a set of matrices
Returns matrices D’ such that D’[i] = M x D[i] x M.T
The transform matrix
The set of covariance matrices
Whether to return the diagonal of the dataset only
Array of shape (n_samples, n_features, n_features) if diag_only is False, else (n_samples, n_features) The transformed set of covariances