Skip to content

Admit the syntax SymplecticGroup( IsPlistMatrixRep, 4, GF(4) )#6299

Merged
fingolfin merged 5 commits intogap-system:masterfrom
ThomasBreuer:TB_CFFMGE
Apr 10, 2026
Merged

Admit the syntax SymplecticGroup( IsPlistMatrixRep, 4, GF(4) )#6299
fingolfin merged 5 commits intogap-system:masterfrom
ThomasBreuer:TB_CFFMGE

Conversation

@ThomasBreuer
Copy link
Copy Markdown
Contributor

@ThomasBreuer ThomasBreuer commented Apr 1, 2026

Up to now, we had to say
SymplecticGroup( IsMatrixGroup, 4, GF(4) : ConstructingFilter:= IsPlistMatrixRep ).

For the new syntax, introduce the global list ConstructingFiltersForMatrixGroupElements
and add the current MatrixObj filters to it.
That is, we derive from the fact that IsPlistMatrixRep is contained in ConstructingFiltersForMatrixGroupElements that SymplecticGroup( IsPlistMatrixRep, 4, GF(4) ) asks for a matrix group.

If this approach is o.k. then I can document it, and change the code for more group constructions to use it.

(Three separate commits fix two NewMatrix methods, the situation that the matrix is given by a flat list was not handled before.)

Up to now, we had to say
`SymplecticGroup( IsMatrixGroup, 4, GF(4) : ConstructingFilter:= IsPlistMatrixRep )`.

For the new syntax, introduce the global list
`ConstructingFiltersForMatrixGroupElements`
and add the current MatrixObj filters to it.
That is, we derive from the fact that `IsPlistMatrixRep` is contained in
`ConstructingFiltersForMatrixGroupElements` that
`SymplecticGroup( IsPlistMatrixRep, 4, GF(4) )` asks for a matrix group.

If this approach is o.k. then I can document it,
and change the code for more group constructions to use it.
@ThomasBreuer ThomasBreuer added kind: new feature topic: library release notes: not needed PRs introducing changes that are wholly irrelevant to the release notes labels Apr 1, 2026
Copy link
Copy Markdown
Member

@fingolfin fingolfin left a comment

Choose a reason for hiding this comment

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

Sounds good to me

@ThomasBreuer
Copy link
Copy Markdown
Contributor Author

Sounds good to me

O.k., then I will add some documentation.

@fingolfin fingolfin changed the title Admit the syntax SymplecticGroup( IsPlistMatrixRep, 4, GF(4) ) Admit the syntax SymplecticGroup( IsPlistMatrixRep, 4, GF(4) ) Apr 10, 2026
@fingolfin fingolfin merged commit 4186f1d into gap-system:master Apr 10, 2026
39 of 40 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind: new feature release notes: not needed PRs introducing changes that are wholly irrelevant to the release notes topic: library

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants