1
0
mirror of https://github.com/kalmarek/PropertyT.jl.git synced 2024-09-18 09:38:00 +02:00

Cstar_reprs are usually sparse

This commit is contained in:
kalmar 2017-07-31 12:13:45 +02:00
parent cda9538653
commit c86f46666a

View File

@ -132,7 +132,7 @@ function reconstruct_sol{T<:GroupElem, S<:AbstractArray}(mreps::Dict{T, S},
end end
function Cstar_repr{T}(x::GroupRingElem{T}, mreps::Dict) function Cstar_repr{T}(x::GroupRingElem{T}, mreps::Dict)
res = zeros(size(mreps[first(keys(mreps))])...) res = spzeros(size(mreps[first(keys(mreps))])...)
for g in parent(x).basis for g in parent(x).basis
if x[g] != zero(T) if x[g] != zero(T)