Comments (6)
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.
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.
I just mean from a code clarity perspective
from algebra.
Had a discussion with @Pratyush regarding an API for this.
- Make Domain have two constructors,
new_subgroup(subgroup_size)
andnew_coset(coset_size, offset)
. - Remove cosetFFT / cosetIFFT methods
- Add a convenience method
domain.get_coset(offset)
, to make it easy to go from subgroup -> coset.
from algebra.
Are these changes still wanted? If so I'm happy to submit a pull request for this
from algebra.
Yes!
from algebra.
Related Issues (20)
- New release? HOT 4
- Final exponentiation in BLS12-381not producing `(p ^ k - 1) / r` HOT 1
- Support mapping to all Weierstrass curves (Shallue-van de Woestijne method) HOT 1
- why is `Validate::No` hardcoded in some `impl`s? HOT 3
- know if a serialized piece of Arkworks structure has been compressed HOT 3
- Support for ristretto255 / sr25519 curve HOT 4
- `Affine - Projective` produces incorrect results
- `SparseMultillinearExtension::evaluate` is slow HOT 1
- Constant time curve arithmetic HOT 1
- Release with #794 HOT 1
- Necessity to retire "derivative" crate HOT 1
- Deserialization of array can panic HOT 3
- Decoding `BigUInt` causes unbound allocation HOT 3
- Easily set the size of a polynomial coefficient
- Add Mul for DenseMultilinearExtension * Scalar
- GF(2^128) operations HOT 1
- `HashToField` does not follow RFC9380 depending on the curve modulus
- Off one in the doc?
- EvaluationDomain::reindex_by_subdomain ergonomics and doc improvements
- Properly using `msm_chunks`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from algebra.