mirror of
https://github.com/kalmarek/PropertyT.jl.git
synced 2024-12-25 02:15:29 +01:00
We need a group to construct group Laplacian
This commit is contained in:
parent
04ecbb4a53
commit
30aea5c043
@ -30,12 +30,16 @@ function λSDPfilenames(name::String)
|
|||||||
return λ_filename, SDP_filename
|
return λ_filename, SDP_filename
|
||||||
end
|
end
|
||||||
|
|
||||||
function ΔandSDPconstraints(name::String)
|
function ΔandSDPconstraints(name::String, G::Group)
|
||||||
info(logger, "Loading precomputed pm, Δ, sdp_constraints...")
|
info(logger, "Loading precomputed pm, Δ, sdp_constraints...")
|
||||||
|
pm_fname, Δ_fname = pmΔfilenames(name)
|
||||||
|
|
||||||
product_matrix = load(pm_fname, "pm")
|
product_matrix = load(pm_fname, "pm")
|
||||||
L = load(Δ_fname, "Δ")[:, 1]
|
|
||||||
Δ = GroupRingElem(L, Array{Int,2}(product_matrix))
|
|
||||||
sdp_constraints = constraints_from_pm(product_matrix)
|
sdp_constraints = constraints_from_pm(product_matrix)
|
||||||
|
|
||||||
|
RG = GroupRing(G, product_matrix)
|
||||||
|
Δ = GroupRingElem(load(Δ_fname, "Δ")[:, 1], RG)
|
||||||
|
|
||||||
return Δ, sdp_constraints
|
return Δ, sdp_constraints
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user