Swaps columns i and j of the argument matrix and returns the modified matrix, or swaps elements i and j of the argument vector and returns the modified vector.
| Level 3 | Level 2 | Level 1 | -> | Level 1 |
|---|---|---|---|---|
| [[ matrix ]]1 | ncolumn i | ncolumn j | -> | [[ matrix ]]2 |
| [ vector ]1 | nelement i | nelement j | -> | [ vector ]2 |