<A NAME=swap_columns>
<TITLE>swap_columns</TITLE></A>
<b><a href=r37_idx.html>INDEX</a></b><p><p>
<B>SWAP_COLUMNS</B> _ _ _ _ _ _ _ _ _ _ _ _ <B>operator</B><P>
<P>
Swap columns, swap rows:
<P>
<P>
<P> <H3>
syntax: </H3>
<em>swap_columns</em>(<matrix>,<c1>,<c2>)
<P>
<P>
<P>
<matrix> :- a
<A HREF=r37_0345.html>matrix</A>.
<P>
<P>
<c1>,<c1> :- positive integers.
<P>
<P>
<em>swap_columns</em>swaps column <c1> of <matrix> with
column <c2>.
<P>
<P>
<em>swap_rows</em>performs the same task on two rows of <matrix>.
<P>
<P>
<P> <H3>
examples: </H3>
<P><PRE><TT>
swap_columns(A,2,3);
[1 3 2]
[ ]
[4 6 5]
[ ]
[7 9 8]
swap_rows(A,1,3);
[7 8 9]
[ ]
[4 5 6]
[ ]
[1 2 3]
</TT></PRE><P>Related functions:
<A HREF=r37_0618.html>swap_entries</A>.
<P>
<P>