From df11e1eb381cdac726223359935d3c59511960af Mon Sep 17 00:00:00 2001 From: Marek Kaluba Date: Tue, 28 Nov 2023 14:01:48 +0100 Subject: [PATCH] multithread the normalization of CharacterTable --- src/Characters/character_tables.jl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Characters/character_tables.jl b/src/Characters/character_tables.jl index 17cea83..7d422ad 100644 --- a/src/Characters/character_tables.jl +++ b/src/Characters/character_tables.jl @@ -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)