Description Usage Arguments Value Examples
This function is used to exchange two columns and rows of a matrix.
1 | swap(mat, i, j)
|
mat |
matrix - The matrix you want to modify |
i |
integer - The first column and row to be exchanged. |
j |
integer - The column and row to switch with the ith column and ith row. |
The matrix mat where the columns i and j are switched and the rows i and j are switched.
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.