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

columnPermute -- permute some columns

Synopsis

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 : columnPermute(m,1,{2,0,1})

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

o2 : MutableMatrix

See also

Ways to use columnPermute :

For the programmer

The object columnPermute is a method function.