Fix unexpected errors in recog
and genss
by improving GroupWithMemory
when given compressed matrices over small fields
#5907
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
... at least if the wrapped matrixobj had it set (which really should always be the case).
This fixes a nasty long-standing issue in genss / orb / recog where
DefaultScalarDomainOfMatrixList
returned to small a field when called on a list of matrixobj-with-memory. This then causedGroupWithGenerators
to rewrite the generators over a smaller field, which then leadgenss
to produce (compressed) vectors for use as base points in the orbit algorithm over the smaller field; and a matching hash function. When later generators got added that really needed the larger field, everything exploded in confusing ways.This issue has been a thorn in my side for years, but today after several hours of debugging I finally tracked it down.