Skip to content

Commit

Permalink
workaround for JuliaLang/julia#30739
Browse files Browse the repository at this point in the history
  • Loading branch information
kalmarek committed Jan 28, 2019
1 parent 5ef5b93 commit 1ce892d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/RGprojections.jl
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,14 @@ function rankOne_projections(RG::GroupRing{G}, T::Type=Rational{Int}) where G<:G
return min_projs
end

function ifelsetuple(a,b, k, n)
x = [repeat([a], k); repeat([b], n-k)]
return tuple(x...)
end

function orbit_selector(n::Integer, k::Integer,
chi::AbstractCharacter, psi::AbstractCharacter)
return Projections.DirectProdCharacter(ntuple(i -> (i <= k ? chi : psi), n))
return Projections.DirectProdCharacter(ifelsetuple(chi, psi, k, n))
end

function rankOne_projections(RBn::GroupRing{G}, T::Type=Rational{Int}) where {G<:WreathProduct}
Expand Down

0 comments on commit 1ce892d

Please sign in to comment.