swap_entries INDEX

SWAP_ENTRIES _ _ _ _ _ _ _ _ _ _ _ _ operator

syntax:

swap_entries(<matrix>,{<r1>,<c1>},{<r2>, <c2>})

<matrix> :- a matrix.

<r1>,<c1>,<r2>,<c2> :- positive integers.

swap_entriesswaps <matrix>(<r1>,<c1>) with <matrix>(<r2>,<c2>).

examples:



swap_entries(A,{1,1},{3,3}); 

  [9  2  3]
  [       ]
  [4  5  6]
  [       ]
  [7  8  1]

Related functions: swap_columns, swap_rows.