-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0f84365
commit 1cfdc19
Showing
5 changed files
with
51 additions
and
58 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
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,14 +1,7 @@ | ||
function w_to_alpha(type::Symbol, rank::Int, weight_w::Vector{QQFieldElem}) | ||
return weight_w * inv(cartan_matrix(type, rank)) | ||
function w_to_alpha(L::LieAlgebraStructure, weight_w::Vector{QQFieldElem}) | ||
return weight_w * inv_cartan_matrix(L) | ||
end | ||
|
||
function alpha_to_w(type::Symbol, rank::Int, weight_alpha::Vector{QQFieldElem}) | ||
return weight_alpha * cartan_matrix(type, rank) | ||
end | ||
|
||
function cartan_matrix(type::Symbol, rank::Int) | ||
L = GAP.Globals.SimpleLieAlgebra(GAP.Obj(type), rank, GAP.Globals.Rationals) | ||
R = GAP.Globals.RootSystem(L) | ||
C = matrix(QQ, GAP.Globals.CartanMatrix(R)) | ||
return C | ||
function alpha_to_w(L::LieAlgebraStructure, weight_alpha::Vector{QQFieldElem}) | ||
return weight_alpha * cartan_matrix(L) | ||
end |
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