-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't store substitutions in
Parameters
(#220)
- Loading branch information
1 parent
33a518d
commit 133a57e
Showing
7 changed files
with
20 additions
and
61 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 |
---|---|---|
@@ -1,35 +1 @@ | ||
@doc raw""" | ||
specclassparam!(t::CharTable, class::Int64, var::UPoly, expr::RingElement) | ||
Replace the parameter `var` with `expr` in the class type `class`. | ||
# Examples | ||
```jldoctest | ||
julia> g=generic_character_table("GL2"); | ||
julia> [c[1] for c in g] | ||
4-element Vector{GenericCharacterTables.GenericCyclo}: | ||
exp(2π𝑖((2*i*k)//(q - 1))) | ||
q*exp(2π𝑖((2*i*k)//(q - 1))) | ||
(q + 1)*exp(2π𝑖((i*l + i*k)//(q - 1))) | ||
(q - 1)*exp(2π𝑖((i*k)//(q - 1))) | ||
julia> q,(i,j,l,k) = parameters(g); | ||
julia> specclassparam!(g, 1, k, 3) | ||
julia> [c[1] for c in g] | ||
4-element Vector{GenericCharacterTables.GenericCyclo}: | ||
exp(2π𝑖((6*i)//(q - 1))) | ||
q*exp(2π𝑖((6*i)//(q - 1))) | ||
(q + 1)*exp(2π𝑖((i*l + 3*i)//(q - 1))) | ||
(q - 1)*exp(2π𝑖((3*i)//(q - 1))) | ||
``` | ||
""" | ||
function specclassparam!(t::CharTable, class::Int64, var::UPoly, expr::RingElement) | ||
for char in 1:length(t) | ||
t[char].values[class]=evaluate(t[char,class], [var_index(var)], [expr]) | ||
end | ||
push!(t.classparams[class].substitutions, ParameterSubstitution(var, base_ring(t.ring)(expr))) | ||
return nothing | ||
end | ||
# nothing right now |
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
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
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