1
0
mirror of https://github.com/kalmarek/PropertyT.jl.git synced 2024-12-24 18:10:29 +01:00

We need a group to construct group Laplacian

This commit is contained in:
kalmar 2017-06-05 13:48:02 +02:00
parent 04ecbb4a53
commit 30aea5c043

View File

@ -30,12 +30,16 @@ function λSDPfilenames(name::String)
return λ_filename, SDP_filename
end
function ΔandSDPconstraints(name::String)
function ΔandSDPconstraints(name::String, G::Group)
info(logger, "Loading precomputed pm, Δ, sdp_constraints...")
pm_fname, Δ_fname = pmΔfilenames(name)
product_matrix = load(pm_fname, "pm")
L = load(Δ_fname, "Δ")[:, 1]
Δ = GroupRingElem(L, Array{Int,2}(product_matrix))
sdp_constraints = constraints_from_pm(product_matrix)
RG = GroupRing(G, product_matrix)
Δ = GroupRingElem(load(Δ_fname, "Δ")[:, 1], RG)
return Δ, sdp_constraints
end