1
0
mirror of https://github.com/kalmarek/PropertyT.jl.git synced 2024-11-14 22:20:28 +01:00

replace loop by array comprehension

This commit is contained in:
kalmarek 2018-08-15 19:20:28 +02:00
parent e33800cfa1
commit e6ad20cb23

View File

@ -148,11 +148,7 @@ function rankOne_projections(RG::GroupRing{G}, T::Type=Rational{Int}) where G<:G
RGidems = idempotents(RG, T)
min_projs = Vector{eltype(RGidems)}(length(AllParts(G.n)))
for (i,chi) in enumerate(characters(G))
min_projs[i] = rankOne_projection(chi,RGidems)*central_projection(RG,chi)
end
min_projs = [central_projection(RG,chi)*rankOne_projection(chi,RGidems) for chi in characters(RG.group)]
return min_projs
end