Skip to content

Add region(::Plan) for accessing transformed region#65

Merged
stevengj merged 8 commits intomasterfrom
dw/region
Jun 30, 2022
Merged

Add region(::Plan) for accessing transformed region#65
stevengj merged 8 commits intomasterfrom
dw/region

Conversation

@devmotion
Copy link
Member

Currently, there is no official and consistent way for accessing the transformed region of a FFT plan. For many plans, plan.region works but e.g. it fails for ScaledPlan. This is problematic when one tries to write generic implementations, e.g., of derivatives (see, e.g., JuliaMath/FFTW.jl#182).

This PR adds a function region(p::Plan) that can be used to access the region of a plan. It falls back to p.region but can be specialized, e.g., for ScaledPlan.

Loading
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.

3 participants