next
|
previous
|
forward
|
backward
| up |
top
|
index
|
toc
|
Macaulay2 web site
Macaulay2Doc
::
rowPermute
rowPermute -- permute some rows
Synopsis
Usage:
rowPermute(m,i,{...})
Inputs:
m
,
a
mutable matrix
i
,
an
integer
, starting row
a list of integers, denoting a permutation of
0..d
, for some number
d
Consequences:
If the permutation is
{p0,p1,...,pd}
, then
m
is modified so that the
i+j
row becomes the
i+pj
row of the original matrix, for
j=0..d
Description
m = mutableMatrix map(ZZ^5,ZZ^6, (i,j) -> 100*i+j)
rowPermute(m,1,{2,0,1})
See also
mutable matrices
row and column operations
Ways to use
rowPermute
:
rowPermute(MutableMatrix,ZZ,List)