-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
next iteration:
_needs_tracking_julia_to_gap
- add `_needs_tracking_julia_to_gap(T)`, with default value `true` - change `GAP.@install` to install a `_needs_tracking_julia_to_gap` method - change the tracking logic: - Do not *create* a dictionary for tracking identical objects only if `_needs_tracking_julia_to_gap` for the subobject type returns `false`. - Let each object decide whether it is searched in the dictionary (in the beginning of its conversion method) or whether it gets added to the dictionary (as soon as the return value is available). For the current conversion methods for integers, rationals, etc., this means that these objects are *not* added to the dictionary, that is, identical large Julia integers are converted to nonidentical large integers in GAP; if we want to change this, we have to change their `GapObj` methods. - add a method for converting `Set{T}`: This had been added to Oscar.jl but should better be in GAP.jl. (There are tests for the return value whether the result is regarded as a set by GAP; perhaps we should restrict the allowed values of `T`.) - changed `GAP.Wrappers.Add(x::GapObj, y::GapObj, z::Int)` to `GAP.Wrappers.Add(x::GapObj, y::Any, z::Int)`, in order to avoid the automatic conversion `GapObj(y)` (Once the relevant code in Oscar.jl is changed to use `GAP.@install`, the current changes in GAP.jl do not need further changes in Oscar.jl.)
- Loading branch information
1 parent
ef1a21a
commit 91c345c
Showing
5 changed files
with
169 additions
and
46 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
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
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