1
0
mirror of https://github.com/kalmarek/PropertyT.jl.git synced 2024-11-14 06:10:28 +01:00

remove unused (old) constraints function

This commit is contained in:
Marek Kaluba 2022-11-08 09:59:26 +01:00
parent 6e9cc8e0f6
commit 903c1683ff
No known key found for this signature in database
GPG Key ID: 8BF1A3855328FC15

View File

@ -37,19 +37,6 @@ function sos_problem_dual(
return model
end
function constraints(
mstr::AbstractMatrix{<:Integer},
total_length=maximum(mstr),
)
cnstrs = [Vector{eltype(mstr)}() for _ = 1:total_length]
li = LinearIndices(mstr)
for (idx, val) in pairs(mstr)
push!(cnstrs[val], li[idx])
end
return cnstrs
end
function constraints(
basis::StarAlgebras.AbstractBasis,
mstr::AbstractMatrix{<:Integer};