Macaulay2 » Documentation
Packages » Macaulay2Doc » matrices » mutable matrices » row and column operations » columnSwap
next | previous | forward | backward | up | index | toc

columnSwap -- interchange columns

Description

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

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

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

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

o2 : MutableMatrix
i3 : m

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

o3 : MutableMatrix

See also

Ways to use columnSwap:

  • columnSwap(MutableMatrix,ZZ,ZZ)

For the programmer

The object columnSwap is a method function.


The source of this document is in Macaulay2Doc/doc_mutablematrices.m2:210:0.