Add interchange/swap function to Matrix class
Add interchange/swap function to Matrix class which would allow swapping two rows or columns in the matrix (i.e. m.swapRows(2,3)).
2
votes
anonymous
shared this idea
-
Gregor commented
You can use permuteColumns and/or matrix.PermuteRows.
the method is : virtual void PermuteColumns(Permutation p)
and is available for any Matrix and you can have any Permutation.