Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Inverse plans

Open
#20 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
30/100
Issue type
Refactor
Clarity
Mostly clear
Activity status
Stale
Tech stack
julia

Research direction

Start by reviewing AbstractFFT's plan_inv and inv behavior, then compare the existing ScaledPlan API. Determine how inverse-plan computation and caching should avoid mutating the supplied plan, and consider the proposed wrapper with p and pinv fields. Done means the API design is settled and its effects on immutable, strictly typed plans are evaluated.

Written by the indexing model from the issue text.

Description

To me it seems a bit unintuitive that AbstractFFT assumes that plans have a field pinv which is populated when calling inv. When computing the inverse via inv I don't expect the provided element to be mutated.

I would suggest to replace plan_inv with inv such that calling inv returns the inverse plan but does not mutate the given plan. Similar to ScaledPlan a wrapper type could be provided that contains a plan and its inverse (e.g. as fields p and pinv). In my opinion, this would make computing and caching of inverse plans more transparent. Additionally, it would allow plans to be immutable and strictly typed (and hence maybe improve performance?).

What do you think?

Dominant language
Julia
Stars
135
Forks
40
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from JuliaMath/AbstractFFTs.jl

All issues in JuliaMath/AbstractFFTs.jl

Similar issues

More Julia issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.