Skip to content

Commit

Permalink
Switch for loops
Browse files Browse the repository at this point in the history
Co-authored-by: Max Horn <[email protected]>
  • Loading branch information
TWiedemann and fingolfin authored Feb 3, 2025
1 parent f6b733f commit 675603d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions experimental/LieAlgebras/src/WeylGroup.jl
Original file line number Diff line number Diff line change
Expand Up @@ -392,8 +392,8 @@ function parabolic_subgroup_with_projection(
# Check that every generator in gens(W)[vec] commutes with every other generator.
# In other words, vec describes a union of irreducible components of the Coxeter diagram.
cm = cartan_matrix(root_system(W))
for i in vec
for j in setdiff(1:number_of_generators(W), vec)
for i in setdiff(1:number_of_generators(W), vec)
for j in vec
@req is_zero_entry(cm, i, j) begin
"Input vector must describe a direct factor of the Weyl group"
end
Expand Down

0 comments on commit 675603d

Please sign in to comment.