-
Notifications
You must be signed in to change notification settings - Fork 126
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
fix too restrictive method installations #4149
fix too restrictive method installations #4149
Conversation
In many situations, we cannot expect that compatible groups have the same type.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #4149 +/- ##
==========================================
+ Coverage 84.65% 84.69% +0.04%
==========================================
Files 626 627 +1
Lines 84316 84300 -16
==========================================
+ Hits 71380 71401 +21
+ Misses 12936 12899 -37
|
- adjust reference in .md file - change more types in signatures - extend tests - fix `small_group` with given type: apply it to an Oscar group not a GAP group - fix `sub`: the type check was wrong, and the compatibility is checked anyhow
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good, just some minor comments
src/Groups/homomorphisms.jl
Outdated
@@ -1298,7 +1297,7 @@ end | |||
Base.:^(x::GAPGroupElem{T},f::GAPGroupElem{AutomorphismGroup{T}}) where T <: GAPGroup = apply_automorphism(f, x, true) | |||
#Base.:^(f::GAPGroupElem{AutomorphismGroup{T}},g::GAPGroupElem{AutomorphismGroup{T}}) where T <: GAPGroup = g^-1*f*g | |||
|
|||
function (A::AutomorphismGroup{T})(f::GAPGroupHomomorphism{T,T}) where T <: GAPGroup | |||
function (A::AutomorphismGroup{S})(f::GAPGroupHomomorphism{T,T}) where S <: GAPGroup where T <: GAPGroup |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
function (A::AutomorphismGroup{S})(f::GAPGroupHomomorphism{T,T}) where S <: GAPGroup where T <: GAPGroup | |
function (A::AutomorphismGroup{S})(f::GAPGroupHomomorphism{T,T}) where {S <: GAPGroup, T <: GAPGroup} |
a double where
is almost never necessary.
Alternatively, you could even do
function (A::AutomorphismGroup{S})(f::GAPGroupHomomorphism{T,T}) where S <: GAPGroup where T <: GAPGroup | |
function (A::AutomorphismGroup{<: GAPGroup})(f::GAPGroupHomomorphism{T,T}) where T <: GAPGroup |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
o.k.
Concerning the multiple where
, there are lots in many code files, this is perhaps something for a pull request of its own.
In many situations, we cannot expect that compatible groups have the same type.
In many situations,
we cannot expect that compatible groups have the same type.
resolves #4144