Macaulay2 » Documentation
Packages » Macaulay2Doc :: rowSwap
next | previous | forward | backward | up | index | toc

rowSwap -- interchange rows

Synopsis

Description

i1 : m = mutableMatrix matrix{{1,2,3},{4,5,6}}

o1 = | 1 2 3 |
     | 4 5 6 |

o1 : MutableMatrix
i2 : rowSwap(m,0,1)

o2 = | 4 5 6 |
     | 1 2 3 |

o2 : MutableMatrix
i3 : m

o3 = | 4 5 6 |
     | 1 2 3 |

o3 : MutableMatrix

See also

Ways to use rowSwap:

For the programmer

The object rowSwap is a method function.