Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: fft #522

Closed
ThomasPiellard opened this issue Jul 21, 2024 · 0 comments · Fixed by #523
Closed

bug: fft #522

ThomasPiellard opened this issue Jul 21, 2024 · 0 comments · Fixed by #523

Comments

@ThomasPiellard
Copy link
Contributor

ThomasPiellard commented Jul 21, 2024

Description

This sample causes a panic:

a := make([]fr.Element, 4)
f := fft.NewDomain(4, fft.WithoutPrecompute())
f.FFTInverse(a, fft.DIF)

Possible Fix

twiddlesInv = make([][]fr.Element, nbStages-twiddlesStartStage) -> nbStages=2, twiddlesStartStage=3 here, the indices should be adjusted

Your Environment

  • gnark-crypto version used: 0.13.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant