Skip to content

Conversation

nHackel
Copy link

@nHackel nHackel commented Sep 3, 2025

This PR adds a backend token api as discussed in this AbstractFFTs PR. It would be great if we could keep the main discussion on the general design in the AbstractFFT PR.

An additional FFTW specific consideration is the question if the AbstractFFTs PR is accepted, do we want to extend it to the plan_x functions which are not defined in AbstractFFTs, such as the r2r or the dct.

Also currently the @infered tests fail for the high-level interface, because the infered return type is a union of two plans. I haven't quite found a solution to that yet. In the setting that multiple FFT backends are loaded, this would be even "worse"/instable.

Inference is currently broken for plan_x without a provided backend. Loading multiple FFT backends will also break this. However, function calls with a provided backend should be type-stable
@nHackel
Copy link
Author

nHackel commented Sep 4, 2025

Here is a version of the backend variant which solely relies on the backend token and thus results in a breaking change. To not spam PRs, I created a PR in my fork for now

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

Successfully merging this pull request may close these issues.

1 participant