|
5 | 5 | ## |
6 | 6 | ## functions to work with tables (in the sense of ModIsom) which correspond to quotients of the augmentation ideal I of a group algebra of a finite p-group over a field of characteristic p modulo a power of I. In particular, to generate the table for this quotient |
7 | 7 |
|
8 | | -# Input: A list |
9 | | -# Output: The nonzero positions of the list |
10 | | -BindGlobal("PosNonzero", function(list) |
11 | | - return PositionsProperty(list, x -> not IsZero(x)); |
12 | | -end); |
13 | | - |
14 | | - |
15 | 8 | # Input: Linear combination of words. A word is a list of pairs of natural numbers. We think e.g. g1^2*g3 = [[1,2],[3,1]] |
16 | 9 | # Output: Same linear combination (in the math sense) where each word |
17 | 10 | # appears at most once |
@@ -198,7 +191,7 @@ local w, sw, pos, p; |
198 | 191 |
|
199 | 192 | sw := 0; |
200 | 193 | w := [ ]; |
201 | | - pos := PosNonzero(exp); |
| 194 | + pos := PositionNonZero(exp); |
202 | 195 |
|
203 | 196 | for p in pos do |
204 | 197 | sw := sw + 1; |
@@ -443,7 +436,7 @@ local F, p, exp, pos1, i, j, pows, pos, combs, v, c, w, s, m, tup, coefprod, exp |
443 | 436 | # Check if weight of p-th power exceeds level |
444 | 437 | if p*T.pre.weights[i] <= lvl then |
445 | 438 | pows := StructuralCopy(T.pre.jen.pows[pos1]); |
446 | | - pos := PosNonzero(pows); |
| 439 | + pos := PositionNonZero(pows); |
447 | 440 | pows := pows{pos}; |
448 | 441 | combs := Combinations([1..Length(pos)]); |
449 | 442 | Remove(combs, 1); |
@@ -523,7 +516,7 @@ local F, p, exp, pos1, i, j, pows, pos, combs, v, c, w, s, m, tup, coefprod, exp |
523 | 516 | pows := StructuralCopy(T.pre.jen.coms[poscom][2]); |
524 | 517 | pows[pos1] := 1; |
525 | 518 | pows[pos2] := 1; |
526 | | - pos := PosNonzero(pows); |
| 519 | + pos := PositionNonZero(pows); |
527 | 520 | pows := pows{pos}; |
528 | 521 | combs := Combinations([1..Length(pos)]); |
529 | 522 | v := [ ]; |
@@ -591,7 +584,7 @@ end); |
591 | 584 | # Input: Table and maximal weight we want. Typically output from PreSet |
592 | 585 | # Output: None. T.powwords, T.commwords, T.dim, T.wgs are set |
593 | 586 | BindGlobal("WordFillTable", function(T, lvl) |
594 | | -local F, p, s1, l, i, pos1, expw1, w1, sortweights1, sortexpw1, f1, posf1, s2, post2, expw2, w2, sortweights2, sortexpw2, f2, posf2, dep, mm, vec, posvec, fac1, posnonzero, v; |
| 587 | +local F, p, s1, l, i, pos1, expw1, w1, sortweights1, sortexpw1, f1, posf1, s2, post2, expw2, w2, sortweights2, sortexpw2, f2, posf2, dep, mm, vec, posvec, fac1, v; |
595 | 588 |
|
596 | 589 | F := T.fld; |
597 | 590 | p := Characteristic(F); |
|
0 commit comments