Skip to content
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

Unused functions in ctbl.gi #2646

Closed
fingolfin opened this issue Jul 13, 2018 · 3 comments
Closed

Unused functions in ctbl.gi #2646

fingolfin opened this issue Jul 13, 2018 · 3 comments
Assignees
Labels
kind: discussion discussions, questions, requests for comments, and so on

Comments

@fingolfin
Copy link
Member

fingolfin commented Jul 13, 2018

The following functions are unused (found by looking at https://codecov.io/gh/gap-system/gap/src/master/lib/ctbl.gi), nor do they seem to be documented.

  • CharacterTable_IsNilpotentNormalSubgroup
  • ColumnCharacterTable
  • ClassPositionsOfSolvableRadical
  • CharacterTableOfNormalSubgroup

Should they be used somewhere? Documented for users? Removed? Maybe @ThomasBreuer knows more?

I also noticed that there are two methods installed for CorrespondingPermutations in lib/ctblfuns.gi, one with 2 and one with 3 args. But except for one else if clause, plus some tiny (accidental??) differences, they are identical. Perhaps it would be better to merge the two into one?

@ThomasBreuer
Copy link
Contributor

  • CharacterTable_IsNilpotentNormalSubgroup:
    I would tend to remove this function.
    If one is interested in the information it computes
    then one can use ClassPositionsOfFittingSubgroup and a subset check.

  • ColumnCharacterTable:
    I do not think that I have introduced this function.
    Can perhaps @hulpke say something about it?

  • ClassPositionsOfSolvableRadical:
    I think this should be documented, in the same section as the other ClassPositionsOf... functions
    for character tables.
    Probably the reason why I did not document this one was
    that the name of the corresponding function for groups (to which the documentation should point)
    is a bad name --RadicalGroup should better be called SolvableRadical or SolvableRadicalOfGroup.
    What do others think?

  • CharacterTableOfNormalSubgroup:
    This function can be useful for character tables of central products with abelian groups.
    However, it can create a complete character table only in such situations,
    and there is no suitable GAP object representing an incomplete ordinary character table without group
    --this concept had turned out to be of no interest in GAP (or at least it would not be worth the efforts).
    Thus I would propose to change the code to return fail instead of calling Error
    when the result is not a complete character table, and to document this behavior.

  • CorrespondingPermutations:
    The code related to this should better be rewritten, but I do not regard this as urgent.

I can provide a pull request that addresses the above comments if there are no objections.

ThomasBreuer added a commit to ThomasBreuer/gap that referenced this issue Aug 2, 2018
- 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.
fingolfin added a commit to ThomasBreuer/gap that referenced this issue Aug 9, 2018
fingolfin pushed a commit to ThomasBreuer/gap that referenced this issue Aug 10, 2018
- 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.
fingolfin pushed a commit to ThomasBreuer/gap that referenced this issue Aug 11, 2018
- 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.
fingolfin pushed a commit that referenced this issue Aug 14, 2018
- 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.
@olexandr-konovalov
Copy link
Member

@fingolfin @ThomasBreuer #2681 has been merged - just to check, is this issue fully addressed now and may be closed?

@fingolfin fingolfin added the kind: discussion discussions, questions, requests for comments, and so on label Mar 21, 2019
@fingolfin
Copy link
Member Author

I think so

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: discussion discussions, questions, requests for comments, and so on
Projects
None yet
Development

No branches or pull requests

3 participants