Skip to content

Commit

Permalink
multithread the normalization of CharacterTable
Browse files Browse the repository at this point in the history
  • Loading branch information
kalmarek committed Nov 28, 2023
1 parent dc2d507 commit df11e1e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Characters/character_tables.jl
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,8 @@ end

function normalize!(chtbl::CharacterTable{<:Group,<:FiniteFields.GF})
id = one(parent(chtbl))
for (i, χ) in enumerate(irreducible_characters(chtbl))
Threads.@threads for i in axes(chtbl, 1)
χ = Character(chtbl, i)
k = χ(id)
if !isone(k)
chtbl.values[i, :] .*= inv(k)
Expand Down

0 comments on commit df11e1e

Please sign in to comment.