Skip to content

Commit

Permalink
Use fill for vector initialisation
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 cad4863 commit f6b733f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion experimental/LieAlgebras/src/WeylGroup.jl
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ function parabolic_subgroup_with_projection(
factor, emb = parabolic_subgroup(W, vec)
# Generators of W are mapped to the corresponding generators of factor,
# or to 1 if there is no corresponding generator
proj_gen_imgs = [one(factor) for _ in 1:number_of_generators(W)]
proj_gen_imgs = fill(one(factor), ngens(W))
for i in 1:length(vec)
proj_gen_imgs[vec[i]] = gen(factor, i)
end
Expand Down

0 comments on commit f6b733f

Please sign in to comment.