-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: group algebras with sparse representation (#1655)
- Loading branch information
Showing
10 changed files
with
362 additions
and
90 deletions.
There are no files selected for viewing
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
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,49 @@ | ||
# Group algebras | ||
|
||
```@meta | ||
CurrentModule = Hecke | ||
DocTestSetup = quote | ||
using Hecke | ||
end | ||
``` | ||
|
||
As is natural, the basis of a group algebra $K[G]$ correspond to the elements of $G$ with respect | ||
to some arbitrary ordering. | ||
|
||
## Creation | ||
|
||
```@docs | ||
group_algebra(::Field, ::Group) | ||
``` | ||
|
||
## Elements | ||
|
||
Given a group algebra `A` and an element of a group `g`, the corresponding group algebra element | ||
can be constructed using the syntax `A(g)`. | ||
|
||
```jldoctest grpalgex1 | ||
julia> G = abelian_group([2, 2]); a = G([0, 1]); | ||
julia> QG = group_algebra(QQ, G); | ||
julia> x = QG(a) | ||
[0, 0, 1, 0] | ||
``` | ||
|
||
Vice versa, one can obtain the coordinate of a group algebra element `x` with respect to a group | ||
element `a` using the syntax `x[a]`. | ||
|
||
```jldoctest grpalgex1 | ||
julia> x[a] | ||
1 | ||
``` | ||
|
||
It is also possible to create elements by specifying for each group element the corresponding coordinate either by a list of pairs or a dictionary: | ||
|
||
```jldoctest grpalgex1 | ||
julia> QG(a => 2, zero(G) => 1) == 2 * QG(a) + 1 * QG(zero(G)) | ||
true | ||
julia> QG(Dict(a => 2, zero(G) => 1)) == 2 * QG(a) + 1 * QG(zero(G)) | ||
true | ||
``` |
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
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
Oops, something went wrong.