Skip to content

Commit d9b3b78

Browse files
committed
use CollectedListElementwiseListValuedFunction in CollectedSyzygyOfStrip
1 parent d47827b commit d9b3b78

File tree

1 file changed

+4
-30
lines changed

1 file changed

+4
-30
lines changed

lib/strips.gi

+4-30
Original file line numberDiff line numberDiff line change
@@ -880,35 +880,10 @@ InstallOtherMethod(
880880
TryNextMethod();
881881

882882
else
883-
# Tidy up <clist>
884-
clist := Recollected( clist );
885-
886-
list := [];
887-
888-
# Work entry-by-entry of <clist>
889-
for k in [ 1 .. Length( clist ) ] do
890-
entry := clist[k];
891-
892-
# Say each entry is
893-
# [ strip, mult ]
894-
# We calculate the collected syzygy of <strip> then multiply
895-
# all multiplicities by <mult>. That gives us the collected
896-
# syzygy of the entry.
897-
strip := entry[1];
898-
mult := entry[2];
899-
syz_clist := CollectedSyzygyOfStrip( strip );
900-
901-
for j in [ 1 .. Length( syz_clist ) ] do
902-
syz_clist[j][2] := syz_clist[j][2] * mult;
903-
od;
904-
905-
# We record this in collected list <syz_clist>
906-
Append( list, syz_clist );
907-
od;
908-
909-
# Once the collected syzygies for each entry of <clist> have been
910-
# calculated, we tidy up the answer
911-
return Recollected( list );
883+
return CollectedListElementwiseListValuedFunction(
884+
clist,
885+
SyzygyOfStrip
886+
);
912887
fi;
913888
end
914889
);
@@ -2575,4 +2550,3 @@ InstallOtherMethod(
25752550
fi;
25762551
end
25772552
);
2578-

0 commit comments

Comments
 (0)