Macaulay2 » Documentation
Packages » MatchingFields > matchingFieldFromPermutation > RowNum
next | previous | forward | backward | up | index | toc

RowNum -- the row of the diagonal weight matrix to permute

Synopsis

Description

The option RowNum chooses the row of the diagonal matching field weight matrix to permute. By default the value is $2$.

i1 : getWeightMatrix matchingFieldFromPermutation(3, 6, {4,5,6,1,2,3}, RowNum => 1)

o1 = | 0  0  0  0  0 0 |
     | 5  4  3  2  1 0 |
     | 30 24 18 12 6 0 |

              3       6
o1 : Matrix ZZ  <-- ZZ
i2 : getWeightMatrix matchingFieldFromPermutation(3, 6, {4,5,6,1,2,3}, RowNum => 2)

o2 = | 0  0  0  0  0 0 |
     | 4  5  6  1  2 3 |
     | 30 24 18 12 6 0 |

              3       6
o2 : Matrix ZZ  <-- ZZ
i3 : getWeightMatrix matchingFieldFromPermutation(3, 6, {4,5,6,1,2,3}, RowNum => 3)

o3 = | 0  0  0  0 0  0  |
     | 5  4  3  2 1  0  |
     | 24 30 36 6 12 18 |

              3       6
o3 : Matrix ZZ  <-- ZZ

See also

Functions with optional argument named RowNum :

For the programmer

The object RowNum is a symbol.

Menu