Make permutation compatible with sparse matrices
10 files changed