1
0
mirror of https://github.com/kalmarek/PropertyT.jl.git synced 2024-11-22 16:05:27 +01:00

separate non-zero indices

This commit is contained in:
kalmarek 2018-08-20 04:02:44 +02:00
parent db6fe7f2cf
commit 92d1d69177
2 changed files with 3 additions and 2 deletions

View File

@ -163,7 +163,7 @@ end
function save_preps(fname::String, preps)
autS = parent(first(keys(preps)))
JLD.save(fname, "perms_d", [preps[elt].d for elt in elements(autS)])
save(fname, "perms_d", [preps[elt].d for elt in elements(autS)])
end
function check_property_T(sett::Settings)

View File

@ -119,7 +119,8 @@ function reconstruct_sol(preps::Dict{T, S}, Us::Vector, Ps::Vector, dims::Vector
end
function Cstar_repr(x::GroupRingElem{T}, mreps::Dict) where {T}
return sum(x[i].*mreps[parent(x).basis[i]] for i in findn(x.coeffs))
nzeros = findn(x.coeffs)
return sum(x[i].*mreps[parent(x).basis[i]] for i in nzeros)
end
function orthSVD(M::AbstractMatrix{T}) where {T<:AbstractFloat}