Skip to content

Commit

Permalink
Fix root conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
lgoettgens committed Oct 18, 2023
1 parent 292494c commit 7032772
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions experimental/BasisLieHighestWeight/src/RootConversion.jl
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,14 @@ end

function w_to_alpha(type, rank, weight_w::Vector{QQFieldElem})::Vector{QQFieldElem}
C = get_inverse_CartanMatrix(type, rank)
return [i for i in C * weight_w]
return [i for i in weight_w * C]
end

function alpha_to_w(
type::String, rank::Int, weight_alpha::Vector{QQFieldElem}
)::Vector{QQFieldElem}
C_inv = get_CartanMatrix(type, rank)
return [i for i in C_inv * weight_alpha]
return [i for i in weight_alpha * C_inv]
end

function get_CartanMatrix(type::String, rank::Int)::Matrix{QQFieldElem}
Expand Down

0 comments on commit 7032772

Please sign in to comment.