-
Notifications
You must be signed in to change notification settings - Fork 14
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
WIP: Classical groups. Express elements in LGO (nice) generators. #293
Draft
danielrademacher
wants to merge
4
commits into
gap-packages:master
Choose a base branch
from
danielrademacher:ClassicalGroupsExpressWordsInLGOGens
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 2 commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
############################################################################# | ||
# BruhatDecomposition.gd | ||
############################################################################# | ||
############################################################################# | ||
## | ||
## BruhatDecomposition package | ||
## | ||
## Daniel Rademacher, RWTH Aachen University | ||
## Alice Niemeyer, RWTH Aachen University | ||
## | ||
## Licensed under the GPL 3 or later. | ||
## | ||
############################################################################# | ||
# | ||
#! @Chapter Foreword | ||
#! | ||
#! Let <M>G</M> be one of the classical groups SL, Sp, SU or SO over a finite field of size <M>q</M> and dimension <M>d</M>. Let g be an element in G. | ||
#! We want to write <M>g = u_1 \cdot w \cdot u_2</M> with <M>u_1</M> and <M>u_2</M> lower unitriangular matrices and <M>w</M> a monomial matrix. <P/> | ||
#! This is already implemented for: | ||
#! <List> | ||
#! <Item> | ||
#! Special linear group (SL) (see Chapter <Ref Sect="Chapter_SpecialLinearGroup"/>) | ||
#! </Item> | ||
#! <Item> | ||
#! Symplectic group (Sp) (see Chapter <Ref Sect="Chapter_SymplecticGroup"/>) | ||
#! </Item> | ||
#! <Item> | ||
#! Special unitary group (SU) (see Chapter <Ref Sect="Chapter_SpecialUnitaryGroup"/>) | ||
#! </Item> | ||
#! <Item> | ||
#! Special orthogonal group (SO) (see Chapter <Ref Sect="Chapter_SpecialOrthogonalGroup"/>) | ||
#! </Item> | ||
#! </List> | ||
|
||
|
||
|
||
#! @Section Main Function | ||
#! @SectionLabel MainFunction | ||
|
||
##### | ||
# BruhatDecomposition() | ||
##### | ||
|
||
#! @Arguments g | ||
#! @Returns pgr (A SLP to compute <M>u_1,u_2,p_{sign}</M> and <M>diag</M> and the matrices <M>u_1, u_2, p_{sign}</M> and <M>diag</M> itself.) | ||
#! @Description | ||
#! Checks whether <M>g</M> is an element of one of the classical groups in their natural representation. If yes, the corresponding Bruhat decomposition of the group and the element <M>g</M> is calculated. Otherwise the function prints a warning. | ||
DeclareGlobalFunction( "BruhatDecomposition" ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
###################################### | ||
# BruhatDecomposition.gi | ||
###################################### | ||
|
||
##### | ||
# BruhatDecomposition() | ||
##### | ||
|
||
InstallGlobalFunction( BruhatDecomposition, | ||
function(g) | ||
|
||
local d, fld, q; | ||
|
||
d := Length( g ); | ||
fld := FieldOfMatrixList( [g] ); | ||
q := Size(fld); | ||
|
||
if g in Sp(d,q) then | ||
return BruhatDecompositionSp(LGOStandardGensSp(d,q),g); | ||
elif g in SU(d,q) then | ||
return BruhatDecompositionSU(LGOStandardGensSU(d,q),g); | ||
elif g in SO(1,d,q) then | ||
return BruhatDecompositionSO(LGOStandardGensSO(1,d,q),g); | ||
elif g in SO(0,d,q) then | ||
return BruhatDecompositionSO(LGOStandardGensSO(0,d,q),g); | ||
elif g in SO(-1,d,q) then | ||
return BruhatDecompositionSO(LGOStandardGensSO(-1,d,q),g); | ||
elif g in SL(d,q) then | ||
return BruhatDecompositionSL(LGOStandardGensSL(d,q),g); | ||
else | ||
Print("The element g is not an element of one of the classical groups in their natural representation. \n"); | ||
Print("Abort."); | ||
fi; | ||
|
||
end | ||
); |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Hmm, why not an error?