From d1d46d13ef2fa9445d4a2a698072ab1d839f442d Mon Sep 17 00:00:00 2001 From: Marek Kaluba Date: Wed, 16 Nov 2022 00:14:06 +0100 Subject: [PATCH] use spzeros constructor compatible with julia-1.6 --- src/sos_sdps.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sos_sdps.jl b/src/sos_sdps.jl index f6135db..2f6faea 100644 --- a/src/sos_sdps.jl +++ b/src/sos_sdps.jl @@ -226,7 +226,7 @@ function sos_problem_primal( begin # preallocating T = eltype(wedderburn) - Ms = spzeros.(T, size.(P)) + Ms = [spzeros.(T, size(p)...) for p in P] M_orb = zeros(T, size(parent(elt).mstructure)...) end