From 423c1ab13afc9124359b09b2f8598c36cce38ffe Mon Sep 17 00:00:00 2001 From: araujoms Date: Thu, 18 Apr 2024 15:03:27 +0200 Subject: [PATCH 1/3] undo hack --- src/Cones/arrayutilities.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Cones/arrayutilities.jl b/src/Cones/arrayutilities.jl index 036951ddf..44aa289de 100644 --- a/src/Cones/arrayutilities.jl +++ b/src/Cones/arrayutilities.jl @@ -58,7 +58,7 @@ function vec_copyto!( @assert length(rvec) == 2 * length(cvec) k = 1 @inbounds for i in eachindex(cvec) - cvec[i] = Complex(rvec[k], rvec[k + 1]) + cvec[i] = complex(rvec[k], rvec[k + 1]) k += 2 end return cvec @@ -272,7 +272,7 @@ function _svec_to_smat_complex!(mat, vec, rt2) mat[i, j] = vec[k] k += 1 else - mat[i, j] = (vec[k] - im * vec[k + 1]) / rt2 + mat[i, j] = complex(vec[k], -vec[k + 1]) / rt2 k += 2 end end From 6cd4084b5a2f170f513a164fc905821ea4b1323a Mon Sep 17 00:00:00 2001 From: araujoms Date: Mon, 13 May 2024 08:52:16 +0200 Subject: [PATCH 2/3] add [compat] for examples --- examples/Project.toml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/examples/Project.toml b/examples/Project.toml index 9e9ea72cf..774fac727 100644 --- a/examples/Project.toml +++ b/examples/Project.toml @@ -19,3 +19,20 @@ SpecialFunctions = "276daf66-3868-5448-9aa4-cd146d93841b" SuiteSparse = "4607b0f0-06f3-5cda-b6b1-a6196a1729e9" SumOfSquares = "4b9e565b-77fc-50a5-a571-1244f986bda1" Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" + +[compat] +CSV = "0.10" +Combinatorics = "1" +DataFrames = "1.6" +DataStructures = "0.18" +DelimitedFiles = "1.9" +Distributions = "0.25" +DynamicPolynomials = "0.5" +MathOptInterface = "1" +PolyJuMP = "0.7" +SemialgebraicSets = "0.3" +SparseArrays = "1.10" +SpecialFunctions = "2" +SumOfSquares = "0.7" +JuMP = "1.22" +julia = "1.6" From b73d8e5850650ef675b01e3ddcf052ae0812c70c Mon Sep 17 00:00:00 2001 From: Oscar Dowson Date: Tue, 14 May 2024 07:57:56 +1200 Subject: [PATCH 3/3] Update Project.toml --- examples/Project.toml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/examples/Project.toml b/examples/Project.toml index 774fac727..8e9789ac1 100644 --- a/examples/Project.toml +++ b/examples/Project.toml @@ -28,11 +28,10 @@ DataStructures = "0.18" DelimitedFiles = "1.9" Distributions = "0.25" DynamicPolynomials = "0.5" +JuMP = "1.22" MathOptInterface = "1" PolyJuMP = "0.7" SemialgebraicSets = "0.3" -SparseArrays = "1.10" SpecialFunctions = "2" SumOfSquares = "0.7" -JuMP = "1.22" julia = "1.6"