-
Notifications
You must be signed in to change notification settings - Fork 162
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
addressing issue #2646: Unused functions in ctbl.gi #2681
addressing issue #2646: Unused functions in ctbl.gi #2681
Conversation
This fails due to diffs in manual examples. From the travis log:
|
#T !! | ||
result:= Concatenation( "Rest(", Identifier( tbl ), ",", | ||
String( classes ), ")" ); | ||
ConvertToStringRep( result ); |
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.
I don't think calling ConvertToStringRep
here is needed (but I see that this was just copied from the existing code, so it's OK to leave it in)
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.
This looks good to me, except for the failing tests (and three minor, optional remarks)
@@ -4991,9 +4958,11 @@ BindGlobal( "CharacterTableDisplayDefault", function( tbl, options ) | |||
elif centralizers = true then | |||
Print( "\n" ); | |||
for i in [col..col+acol-1] do | |||
fak:= Factors(Integers, tbl_centralizers[classes[i]] ); | |||
fak:= Factors( Integers, tbl_centralizers[ classes[i] ] ); |
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.
Optional: This could also be changed to fak := PrimeDivisors( tbl_centralizers[ classes[i] ] );
, then the call to Set
in the next line and the check for prime <> 1
later would not be needed.
## gap> g:= SchurCoverOfSymmetricGroup( 5, 3, 1 );; | ||
## gap> c:= CyclicGroup( 4 );; | ||
## gap> dp:= DirectProduct( g, c );; | ||
## gap> diag:= First( Elements( Centre( dp ) ), |
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.
Optional: Using Elements
here is not needed, it's perfectly fine to do First( Centre( dp ), ...)
Codecov Report
@@ Coverage Diff @@
## master #2681 +/- ##
==========================================
+ Coverage 75.43% 75.47% +0.04%
==========================================
Files 478 478
Lines 241610 241604 -6
==========================================
+ Hits 182259 182352 +93
+ Misses 59351 59252 -99
|
f121b90
to
df2a247
Compare
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.
I took the liberty to address the diff in the manual examples, so the tests now seem to pass.
- changed the function `CharacterTableOfNormalSubgroup` such that either a full character table or `fail` is returned, and documented this function, - documented `ClassPositionsOfSolvableRadical`, - removed the unused and undocumented function `CharacterTable_IsNilpotentNormalSubgroup` (use `IsSubset` and `ClassPositionsOfFittingSubgroup` if you need what this function computes), - fixed an error when calling `Display` with the character table of a trivial group, and added a test example for that.
df2a247
to
a5e9c2f
Compare
changed the function
CharacterTableOfNormalSubgroup
such that eithera full character table or
fail
is returned,and documented this function,
documented
ClassPositionsOfSolvableRadical
,removed the unused and undocumented function
CharacterTable_IsNilpotentNormalSubgroup
(use
IsSubset
andClassPositionsOfFittingSubgroup
if you needwhat this function computes),
fixed an error when calling
Display
with the character tableof a trivial group, and added a test example for that.