I tried using the built-in swap function and also tried to do this manually by saving the value of a given column, then copying the other column to it, and copying back the saved value into the other column. Both worked fine for square matrices, but gave me errors for any non-square matrix. I could not understand the reason, why it only works for square matrices.
Help on this would be really appreciated. Roy Joshua. E-mail: joshua.1@osu.edu