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

Naive number theoretic transform (NTT) example #256

Merged
merged 7 commits into from
Dec 6, 2020
Merged

Naive number theoretic transform (NTT) example #256

merged 7 commits into from
Dec 6, 2020

Conversation

sampsyo
Copy link
Contributor

@sampsyo sampsyo commented Oct 20, 2020

A successor to #247 where I started from scratch and used a very very naive quadratic NTT implementation. It is not a good NTT!! But at least I can understand what it's doing and check that the output is correct.

Speaking of which, the output is not currently correct. It produces 32 7s, which seems suspicious. So this is WIP until I figure out why.

See also nttstuff, where I have a couple of reference implementations and a data generator.

@rachitnigam
Copy link
Contributor

@sampsyo This branch produces the right answer (re: #277). Is it ready to merge?

@sampsyo
Copy link
Contributor Author

sampsyo commented Dec 6, 2020

Cool! I suppose I should hook this into the Runt tests before merging.

@sampsyo
Copy link
Contributor Author

sampsyo commented Dec 6, 2020

Never mind, looks like the examples aren't tested. (Maybe we should do that?)

Anyway, I reproduced the correct outputs on my machine! So yes, will merge now.

@sampsyo sampsyo marked this pull request as ready for review December 6, 2020 14:44
@sampsyo sampsyo merged commit b311ace into master Dec 6, 2020
@sampsyo sampsyo deleted the ntt-new branch December 6, 2020 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants