-
Notifications
You must be signed in to change notification settings - Fork 66
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
- Loading branch information
Showing
10 changed files
with
370 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,61 @@ | ||
# 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) | ||
``` | ||
|
||
Note that by default, this construction requires enumerating all elements of | ||
the group and thus is inefficient for large groups. Using the optional argument `sparse = true`, | ||
the algebra can be constructed with a different internal model. This allows for much larger groups, | ||
but not all functionality is available in this case. | ||
|
||
```jldoctest | ||
julia> G = abelian_group([2 for i in 1:10]) # group of order 2^10 | ||
(Z/2)^10 | ||
julia> QG = group_algebra(QQ, G; sparse = true); | ||
``` | ||
|
||
## 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.