-
Notifications
You must be signed in to change notification settings - Fork 36
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
Complex-valued resampling #14
Comments
FYI the fused types with complex values gets a bit wonky. You can read a long discussion (struggle) I recently had with it here or better, just look at what the solution ended up being. Maybe there is something helpful in there for you. |
...now it's coming back to me a bit -- the workaround was to make it so that whatever fused type |
Aha, I kinda suspected it night be something like that. Thanks for confirming! It does seem like the kind of thing that ought to be fixed in a future cython release though, so maybe we can just wait it out? |
I thought I opened an issue for it somewhere, but looking back I don't have any record of it. I should probably do that... In any case, even once the request is opened, there's no telling how long it would take them to implement it. Maybe it's something that wouldn't be so hard to contribute ourselves. I'll try to find time to look into it. In the case of my code, the extra overhead of casting both to the biggest type was assumed to be small, so it didn't seem like too bad a compromise (a bit of extra casting and mem use) to gain proper support for complex types. So my feeling is that it would depends on how much you'd have to compromise your code to implement the workaround. |
Sure.. alternately, it wouldn't be terrible to just resample the imaginary and real components independently and then recombine them.
That would be easy, but I think it would invoke another data copy, so i'd like to avoid it if possible. |
FWIW: #57 gives us complex-valued resampling for free, so we can close this out after merging. |
Cython's fused types should make this trivial, but for whatever reason, it didn't work out of the box.
We may have to handle complex-valued data explicitly.
The text was updated successfully, but these errors were encountered: