Lgr = matchingFieldFromPermutation(k, n, S)
Lfl = matchingFieldFromPermutation(kList, n, S)
Let $M_0 \in \RR^{k \times n}$ be a matrix that induced the diagonal matching field. Usually, we take this matrix to be $(m_{i,j})$ with $m_{i,j} = (n-j)n^(i-2)$ if $i > 1$ and $m_{i,j} = 0$ if $i = 1$. Note that this matrix is different to the weight matrix of the matching field produced by the function diagonalMatchingField, however the matching fields are the same. Given a permutation $\sigma \in S_n$, the matching field associated to $\sigma$ has weight matrix $M_\sigma$, which is the same as $M_0$ except in the second row, which is given by $\sigma(1), \sigma(2), \dots, \sigma(n)$. If $\sigma = (n, n-1, \dots, 1) \in S_n$ is the permutation written in single-line notation, then the matching field induced by $M_\sigma$ is the diagonal matching field.
|
|
|
|
|
|
|
|
|
The optional argument RowNum is used to change which row of $M_0$ is permuted.
|
|
The optional argument UsePrimePowers is used to modify the original diagonal weight matrix $M_0$. If the option is set to true then we use the matrix with entries $m_{i,j} = (n-j) p^(i-2)$ if $i>1$ and $m_{i,j} = 0$ if $i = 1$, where $p \ge n$ is the smallest prime number greater than or equal to $n$.
|
|
The optional argument PowerValue is used to give a specific value to $p$ in the diagonal weight matrix as described above. If the value is not positive, then the argument is ignored. This option should be used carefully. If the power value is set incorrectly (typically by setting a value that is too low) then the weight matrix may not be generic, i.e., it does not define a matching field. However, in such a case, the function produces a matching field without error, as shown in the example $L7$ below. Working with such matching fields may lead to unexpected behaviours.
|
|
|
|
Any positive integer supplied to the argument PowerValue takes precedence over UsePrimePowers. The optional argument ScalingCoefficient is used to scale the entries of the row that is permuted by the permutation. If UsePrimePowers is set to true, and $p \ge n$ is the smallest prime number less than $n$, then the scaling coefficient can be set to any $c \in \{1, 2, \dots, p-1\}$ and the resulting weight matrix is guaranteed to be generic.
|
|
|
The above is an example of a hexagonal matching field, which does not give rise to a toric degeneration of the Grassmannian Gr$(3, 6)$.
The object matchingFieldFromPermutation is a method function with options.