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

rowPermute -- permute some rows

Description

i1 : m = mutableMatrix map(ZZ^5,ZZ^6, (i,j) -> 100*i+j)

o1 = | 0   1   2   3   4   5   |
     | 100 101 102 103 104 105 |
     | 200 201 202 203 204 205 |
     | 300 301 302 303 304 305 |
     | 400 401 402 403 404 405 |

o1 : MutableMatrix
i2 : rowPermute(m,1,{2,0,1})

o2 = | 0   1   2   3   4   5   |
     | 300 301 302 303 304 305 |
     | 100 101 102 103 104 105 |
     | 200 201 202 203 204 205 |
     | 400 401 402 403 404 405 |

o2 : MutableMatrix

See also

Ways to use rowPermute:

  • rowPermute(MutableMatrix,ZZ,List)

For the programmer

The object rowPermute is a method function.


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