mirror of
https://github.com/kalmarek/PropertyT.jl.git
synced 2024-11-29 09:45:27 +01:00
use spzeros constructor compatible with julia-1.6
This commit is contained in:
parent
b92f12107f
commit
d1d46d13ef
@ -226,7 +226,7 @@ function sos_problem_primal(
|
|||||||
|
|
||||||
begin # preallocating
|
begin # preallocating
|
||||||
T = eltype(wedderburn)
|
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)...)
|
M_orb = zeros(T, size(parent(elt).mstructure)...)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user