Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct EComplex
- coords::Vector{Complex{Float64}}
- end
- foo(z::Number) = EComplex([z, 0.0im])
- # trying foo(1.0) works.
- # trying foo(1.0im) gives:
- # ERROR: MethodError: no method matching Array{Complex{Float64},1}(::Array{Complex{Float64},2})
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement