Giter Club home page Giter Club logo

Comments (6)

Pratyush avatar Pratyush commented on September 27, 2024

Hmm these API changes do make the code more unified, but on the other hand it is nice to have a visual indicator that one is performing a coset FFT/IFFT. Do you have suggestions on how to get the best of both worlds?

from algebra.

ValarDragon avatar ValarDragon commented on September 27, 2024

I'm not really sure its useful to know if you're doing a coset FFT vs regular FFT. Are you worried about knowledge of the extra ~5% of runtime? If so, perhaps this difference can be made apparent in the traces.
(Also this overhead decreases with nlog(d) FFTs)

from algebra.

Pratyush avatar Pratyush commented on September 27, 2024

I just mean from a code clarity perspective

from algebra.

ValarDragon avatar ValarDragon commented on September 27, 2024

Had a discussion with @Pratyush regarding an API for this.

  1. Make Domain have two constructors, new_subgroup(subgroup_size) and new_coset(coset_size, offset).
  2. Remove cosetFFT / cosetIFFT methods
  3. Add a convenience method domain.get_coset(offset), to make it easy to go from subgroup -> coset.

from algebra.

andrewmilson avatar andrewmilson commented on September 27, 2024

Are these changes still wanted? If so I'm happy to submit a pull request for this

from algebra.

Pratyush avatar Pratyush commented on September 27, 2024

Yes!

from algebra.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.