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:
parent
6e9cc8e0f6
commit
903c1683ff
@ -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};
|
||||
|
Loading…
Reference in New Issue
Block a user