1
0
mirror of https://github.com/kalmarek/PropertyT.jl.git synced 2024-12-25 10:20:30 +01:00

add selective constraint(pm, k)

This commit is contained in:
kalmarek 2018-08-20 03:50:16 +02:00
parent 33fc456879
commit 668d403171

View File

@ -9,9 +9,14 @@ function constraints(pm::Matrix{I}, total_length=maximum(pm)) where {I<:Integer}
return cnstrs
end
function constraint(pm::Matrix{I}, k) where {I<:Integer}
cnstr = Vector{I}()
for i in eachindex(pm)
if pm[i] == k
push!(cnstr, i)
end
end
return constraints
return cnstr
end
function spLaplacian(RG::GroupRing, S, T::Type=Float64)