-
Notifications
You must be signed in to change notification settings - Fork 161
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix ExtendedVectors for trivial vector spaces
... in case of different method ranking
- Loading branch information
Showing
2 changed files
with
22 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# ExtendedVectors was relying on some specific internal behavior | ||
# of vector space enumerators; but that was brittle, as a change in | ||
# rank can lead to a different enumerator being installed. Make sure | ||
# this is not the case anymore | ||
|
||
# This is how you are "supposed" to call ExtendedVectors | ||
gap> V:=GF(3)^0;; | ||
gap> Enumerator(V); | ||
<enumerator of ( GF(3)^0 )> | ||
gap> ExtendedVectors(V); | ||
A( ( GF(3)^0 ) ) | ||
|
||
# This is what happens if somehow a different enumerator gets installed | ||
gap> V:=GF(3)^0;; | ||
gap> SetEnumerator(V, Immutable( [ Zero( V ) ] )); | ||
gap> Enumerator(V); | ||
[ [ ] ] | ||
gap> ExtendedVectors(V); | ||
A( ( GF(3)^0 ) ) |