The rowSwap( command swaps two rows of a matrix and returns the result. It is an elementary row operation used in Gaussian Elimination.
[[1,2][3,4]] [[1 2] [3 4]] rowSwap(Ans,1,2) [[3 4] [1 2]]
You can swap columns instead of rows with the aid of the T (transpose) command.
- ERR:INVALID DIM is thrown if one of the row arguments isn't a valid row (larger than the matrix size, or otherwise bad)