-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add ifft helpers, basic tests #94
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good to go as is, but some questions about naming and defaults came to mind
import pytorch_finufft | ||
|
||
|
||
def check_t2_ifft_undoes_t1(N: int, dim: int, device: str) -> None: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it strikes me that maybe we need to name t1_ifft
to be the one that is actually type 2 ...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, happy to discuss naming. We could also be clearer in the docstring which function this inverts, not just which one it wraps
|
||
def check_t1_ifft_undoes_t2(N: int, dim: int, device: str) -> None: | ||
""" | ||
Tests that nuifft_type1 undoes nufft_type2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
similar Q: should we name the ifft by what type it actually is or what type it is undoing?
0256e83
to
a6cac23
Compare
I've made the suggested changes up to the point of a possible re-naming. I did have one question @eickenberg, which is that the finufft docs seem to go out of their way to state that they do not provide inverse transforms. See, e,g: https://finufft.readthedocs.io/en/latest/trouble.html#mathematical-issues-and-advice
Are we using 'inverse' in a different sense than they mean? |
Yep, treating the adjoint like the inverse would be bad. Closing this and the related issue |
Closes #87