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

What would be the best way to implement support differentiation of a SubSpace #4

Open
vincentcp opened this issue May 2, 2019 · 1 comment

Comments

@vincentcp
Copy link

At this moment

julia> S = ApproxFunBase.SubSpace(Fourier(), 1:10);

julia> Derivative(S)
DerivativeWrapper : Fourier(【0.0,6.283185307179586❫)|1:10  SinSpace(【0.0,6.283185307179586❫)CosSpace(【0.0,6.283185307179586❫)
 0.0  0.0  -1.0  0.0   0.0  0.0   0.0  0.0   0.0  0.0
 0.0  0.0   0.0  0.0   0.0  0.0   0.0  0.0   0.0  0.0
 0.0  0.0   0.0  0.0  -2.0  0.0   0.0  0.0   0.0  0.0
 0.0  1.0   0.0  0.0   0.0  0.0   0.0  0.0   0.0  0.0
 0.0  0.0   0.0  0.0   0.0  0.0  -3.0  0.0   0.0  0.0
 0.0  0.0   0.0  2.0   0.0  0.0   0.0  0.0   0.0  0.0
 0.0  0.0   0.0  0.0   0.0  0.0   0.0  0.0  -4.0  0.0
 0.0  0.0   0.0  0.0   0.0  3.0   0.0  0.0   0.0  0.0
 0.0  0.0   0.0  0.0   0.0  0.0   0.0  0.0   0.0  0.0
 0.0  0.0   0.0  0.0   0.0  0.0   0.0  4.0   0.0  0.0

while the first dimension could be finite.

Where would be the best place to interrupt the ApproxFunBase flow to create an Operator that is finite in both dimensions?

@dlfivefifty
Copy link
Member

You would want to override Derivative(::SubSpace). You can infer the finite-ness from the bandwidths of the full operator.

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