Skip to content

Commit

Permalink
redo hack
Browse files Browse the repository at this point in the history
  • Loading branch information
araujoms committed May 7, 2024
1 parent 010061b commit 31c1273
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Cones/arrayutilities.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -272,7 +272,7 @@ function _svec_to_smat_complex!(mat, vec, rt2)
mat[i, j] = vec[k]
k += 1
else
mat[i, j] = complex(vec[k], -vec[k + 1]) / rt2
mat[i, j] = (vec[k] - im * vec[k + 1]) / rt2
k += 2
end
end
Expand Down

0 comments on commit 31c1273

Please sign in to comment.