-
Notifications
You must be signed in to change notification settings - Fork 165
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Confusing behaviour in repeated calls of the same code #4656
Comments
(This commit covers just the obvious fixes, not the difference mentioned in issue gap-system#4656.)
The issue is basically the function The factor group itself is the same both times -- GAP caches these small cyclic groups (in CYCLICACHE), since they (and associated families) tend to fill up memory in longer calculations otherwise. But the second time the group needs to be created anew from its generators (at this point parent is not set, thus the discrepancy), so that different data can be stored for My solution would be to remove this compatibility kludge of first creating the factor group and then asking for its NaturalHomomorphism. |
@hulpke I agree that it is a good idea to get rid of the hack around If it is not necessary to create a group anew from the generators of a cached group, this will solve the inconsistency. |
@ThomasBreuer I suspect it is documented, but to my knowledge it has not been used in code (and all examples I'm aware of have emphasized I think the reason for the stored Parent has been that at some point in the past every PC group was supposed to have a Parent so that |
Subsequent demotion of `FactorGroup` and related library/manual changes This resolves gap-system#4656
(Moved the method into obsolete) Subsequent demotion of `FactorGroup` and related library/manual changes This resolves gap-system#4656
(Moved the method into obsolete) Subsequent demotion of `FactorGroup` and related library/manual changes This resolves gap-system#4656
(Moved the method into obsolete) Subsequent demotion of `FactorGroup` and related library/manual changes This resolves gap-system#4656
(Moved the method into obsolete) Subsequent demotion of `FactorGroup` and related library/manual changes This resolves gap-system#4656
(Moved the method into obsolete) Subsequent demotion of `FactorGroup` and related library/manual changes This resolves #4656
The following happens in the current master branch as well as in GAP 4.11.1.
I execute some code (essentially from a manual example) in a new GAP session.
When I enter the same lines again in the same session, the result looks different.
(I observed this difference because it appears as a difference in manual tests after the changes from pull request #4653.)
Does it make sense at all to set
F
as its ownParent
value in the first case? And if yes then why is the parent not set in the second case (and in all subsequent calls during the session)?The text was updated successfully, but these errors were encountered: