From 70327726b7b1235f6100f5d72e3edcbf699e8565 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Lars=20G=C3=B6ttgens?= <lars.goettgens@rwth-aachen.de>
Date: Wed, 18 Oct 2023 17:52:39 +0200
Subject: [PATCH] Fix root conversion

---
 experimental/BasisLieHighestWeight/src/RootConversion.jl | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/experimental/BasisLieHighestWeight/src/RootConversion.jl b/experimental/BasisLieHighestWeight/src/RootConversion.jl
index 5d952213519f..2da89bb227e8 100644
--- a/experimental/BasisLieHighestWeight/src/RootConversion.jl
+++ b/experimental/BasisLieHighestWeight/src/RootConversion.jl
@@ -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}