Open jgdumas opened 6 years ago
The answer is yes, MatrixPermutation from matrix/matrix-permutation.h and Permutation from blackbox/permutation.h make the same representation. Meanwhile BlasPermutation is the Lapack style rep used in fflas/ffpack.
Five points:
I propose to do the following; please comment.
Evolve the current blackbox/permutation.h to a weighted-permutation.h using that representation (having an array P where the permutation sends i to P[i] ). (In part this is a compromise to not throw away this representation altogether.)
Move matrix/matrix-permutation.h to blackbox/permutation.h, holding the lapack style representation and wrapping the fflas/pack perms.
Sounds good to me !
blackbox/permutation.h matrix/ BlasPermutation & MatrixPermutation
Is MatrixPermutation then same as blackbox/permutation.h ?