I suggest you ...

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
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    anonymous shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

    1 comment

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      Signed in as (Sign out)
      Submitting...
      • Gregor commented  ·   ·  Flag as inappropriate

        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.

      Feedback and Knowledge Base