Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There are no Array{Segment{Complex{Float64}},1} method for "Space" function #121

Open
Jiaqi-knight opened this issue May 5, 2019 · 2 comments

Comments

@Jiaqi-knight
Copy link

Hello,sir.
When I run the example of Lapalace.jl:
cr = exp.(im(0:N-1)/N)
crl = (1-2imr)cr
crr = (1+2im
r)cr
dom = ∪(Segment.(crl,crr))
sp = Space(dom)

MethodError: no method matching Space(::Array{Segment{Complex{Float64}},1})
Closest candidates are:
Space(!Matched::Space) at /home/wjq/.julia/packages/ApproxFunBase/EjdxK/src/Space.jl:58
Space(!Matched::Number) at /home/wjq/.julia/packages/ApproxFunBase/EjdxK/src/Space.jl:497
Space(!Matched::DomainSets.ProductDomain) at /home/wjq/.julia/packages/ApproxFunBase/EjdxK/src/Multivariate/TensorSpace.jl:250
...

Stacktrace:
[1] top-level scope at show.jl:555
[2] top-level scope at In[117]:7

How can I fix it?
Thankyou!

@Jiaqi-knight
Copy link
Author

@show dom = ∪(Circle.([0.,-1.0im],[0.5,0.25]))∪(Segment.([-1.5,0.5-1.0im,-0.5+1.0im],[-0.5-1.0im,1.5,0.5+1.0im]))
dom1=dom[1]
for k=2:length(dom)
dom1=dom1 ∪(dom[k])
end
@show dom1
Space(dom) #!error!
Space(dom1) #!not error!

@dlfivefifty
Copy link
Member

Can you try dom = ∪(Segment.(crl,crr)...)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants