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

Fix AbelianGroup to (better) handle empty order lists, and generators of order 1 #5432

Merged
merged 1 commit into from
Apr 5, 2023

Conversation

ThomasBreuer
Copy link
Contributor

@ThomasBreuer ThomasBreuer commented Apr 4, 2023

  • support AbelianGroup( IsPermGroup, [] ) and AbelianGroup( IsFpGroup, [] )
  • changed the output of AbelianGroup( IsPcGroup, ints ) such that also generators of order 1 appear

resolves #5430

- support `AbelianGroup( IsPermGroup, [] )` and `AbelianGroup( IsFpGroup, [] )`
- changed the output of `AbelianGroup( IsPcGroup, ints )` such that also
  generators of order 1 appear
@ThomasBreuer ThomasBreuer added kind: bug Issues describing general bugs, and PRs fixing them kind: bug: unexpected error Issues describing bugs in which computation unexpectedly encounters an error, and PRs fixing them topic: library release notes: use title For PRs: the title of this PR is suitable for direct use in the release notes labels Apr 4, 2023
@@ -32,7 +32,7 @@ InstallMethod( AbelianGroupCons, "fp group", true,
function( filter, ints )
local f,g,i,j,rels,gfam,fam;

if Length(ints)=0 or not ForAll( ints, x -> IsInfinity(x) or (IsInt(x) and x >= 0) ) then
if not ForAll( ints, x -> IsInfinity(x) or (IsInt(x) and x >= 0) ) then
Error( "<ints> must be a list of integers" );
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Off-topic (not a change request, but perhaps we can some day address it): I guess strictly speaking this error is not accurate (as we allow infinity these days).

@fingolfin fingolfin merged commit 47f077b into gap-system:master Apr 5, 2023
@ThomasBreuer ThomasBreuer deleted the TB_AbelianGroup branch April 7, 2023 16:07
@fingolfin fingolfin changed the title fix AbelianGroup w.r.t. generators of order 1 Fix AbelianGroup to support empty order lists, and better handle generators of order 1 Jan 28, 2024
@fingolfin fingolfin changed the title Fix AbelianGroup to support empty order lists, and better handle generators of order 1 Fix AbelianGroup to (better) handle empty order lists, and generators of order 1 Jan 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: bug: unexpected error Issues describing bugs in which computation unexpectedly encounters an error, and PRs fixing them kind: bug Issues describing general bugs, and PRs fixing them release notes: use title For PRs: the title of this PR is suitable for direct use in the release notes topic: library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

generators of groups created with AbelianGroup
2 participants