-
Notifications
You must be signed in to change notification settings - Fork 4
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
added irrchars
and classes
methods for tables
#40
added irrchars
and classes
methods for tables
#40
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #40 +/- ##
=========================================
+ Coverage 7.03% 7.07% +0.04%
=========================================
Files 60 60
Lines 8870 8874 +4
=========================================
+ Hits 624 628 +4
Misses 8246 8246 ☔ View full report in Codecov by Sentry. |
The names are not ideal, see #41. But I don't know better names right now. |
``` | ||
""" | ||
function irrchars(t::Table) | ||
return sum(nrchars.(Ref(t), 1:irrchartypes(t))) |
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.
TIL one can use Ref
like that in a broadcast, nice :-)
src/Show.jl
Outdated
@@ -49,6 +49,26 @@ function irrchartypes(t::Table) | |||
return t.table.original_m | |||
end | |||
|
|||
""" | |||
irrchars(t::Table) |
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 would just call this nrchars
as well.
And irrchartypes
should be nirrchartypes(or rather in OSCAR style:
n_irrchartypes-- or even
number_of_irreducible_character_types` or whatever... )
src/Show.jl
Outdated
@@ -67,6 +87,24 @@ function classtypes(t::Table) | |||
size(t.table, 2) | |||
end | |||
|
|||
""" | |||
classes(t::Table) |
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.
As above I'd just call this nrclasses
as well
And eventually rename both to n_classes
, and classtypes
to n_classtypes
-- but please not in this PR, this needs to be carefully coordinated.
be9ae4d
to
c850841
Compare
I've resolved the conflicts and updated this to look like I meant. But I am now not so sure this is a good idea. Isn't it true that some of the character/class types may not be disjoint? At least that's how I read the CHEVIE paper from 1996. ... Anyway I don't need this right now, I can try to talk with e.g. Gunter Malle about this (I want to do that anyway for a bunch of things in this code) |
I don't know, I thought that this is not the case if we consider the parameter exceptions which is done here. |
c850841
to
fd1bcf4
Compare
Should we wait with the merge until it is clear if we are counting some characters twice? |
I've talked to Gunter Malle today and he thinks this should be fine, so now characters/classes are be counted multiple times. |
@fingolfin Is this what you meant in #16?