From 903c1683ff0d592ee22e835dea77e153dfe00e66 Mon Sep 17 00:00:00 2001 From: Marek Kaluba Date: Tue, 8 Nov 2022 09:59:26 +0100 Subject: [PATCH] remove unused (old) constraints function --- src/sos_sdps.jl | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/sos_sdps.jl b/src/sos_sdps.jl index 250388c..d2387ed 100644 --- a/src/sos_sdps.jl +++ b/src/sos_sdps.jl @@ -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};