Repository navigation
Allow dims to be a single tuple when the transform is applied once - #279
Merged
Merged
Conversation
plan_disk2cxf(A, α, β, (1,3)) etc. is now the same as plan_disk2cxf(A, α, β, ((1,3),)), for all the 2D and 3D coefficient transforms and FFTW synthesis and analysis plans. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #279 +/- ##
==========================================
+ Coverage 78.19% 78.23% +0.04%
==========================================
Files 17 17
Lines 3315 3322 +7
==========================================
+ Hits 2592 2599 +7
Misses 723 723 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #277. In the
plan_*functions that acceptdims, a single tuple of dimensions can now be passed when the transform is applied once:This covers all the 2D and 3D coefficient transforms (
plan_sph2fourier,plan_disk2cxf,plan_tri2cheb,plan_tet2cheb, …) and FFTW synthesis and analysis plans, and through them the one-step functions such asdisk2cxfandcxf2disk.NDimsPlanitself is unchanged. There,NDimsPlan(F, szs, (1,3))still means applying a vector transform along dimensions 1 and 3. The wrapping is done in theplan_*methods by a new helper,_slicedims(dims, Val(M)), which only wraps a tuple of exactlyMintegers, whereMis the dimension of the slices the transform acts on. Tuples of the wrong length, such as(1,)or(1,2,3)for a 2D transform, still throwArgumentError, and the error message and docstrings mention the new form.Bumps the version to 0.17.7. This matches the Zernike plans in JuliaApproximation/MultivariateOrthogonalPolynomials.jl#250, which accept the same form of
dims; that PR does not depend on this one.🤖 Generated with Claude Code