Skip to content

Commit

Permalink
Skip second cartan matrix computation
Browse files Browse the repository at this point in the history
  • Loading branch information
lgoettgens committed Sep 18, 2024
1 parent 8e0f354 commit b46fb11
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions experimental/LieAlgebras/src/LieAlgebra.jl
Original file line number Diff line number Diff line change
Expand Up @@ -701,14 +701,10 @@ function _root_system_and_chevalley_basis(
)
_, ordering = cartan_type_with_ordering(cm)
permute!(roots_simple, ordering)
cm = matrix(
ZZ,
[
CartanInt(roots, alpha_i, alpha_j) for alpha_i in roots_simple,
alpha_j in roots_simple
],
)
R = root_system(cm; check=true) # TODO: disable check
p = inv(Perm(ordering))
cm = p * cm * p
R = root_system(cm; check=false)
@assert root_system_type_with_ordering(R)[2] == 1:rank(R)

# compute a Chevalley basis of L
root_vectors = [
Expand Down

0 comments on commit b46fb11

Please sign in to comment.