Skip to content

Commit

Permalink
add show on array of complex
Browse files Browse the repository at this point in the history
  • Loading branch information
baggepinnen committed Dec 27, 2021
1 parent 217ad99 commit ad4fa83
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -485,6 +485,7 @@ Random.seed!(0)
## Complex matrix ops
A = randn(ComplexF64, 2, 2)
B = complex.(Particles.(fill.(real.(A), 10)), Particles.(fill.(imag.(A), 10)))
show(B)
@test sum(pmean, abs.(exp(A) .- exp(B))) < 1e-9
@test sum(pmean, abs.(log(A) .- log(B))) < 1e-9
@test abs(det(A) - det(B)) < 1e-9
Expand Down

0 comments on commit ad4fa83

Please sign in to comment.