-
Notifications
You must be signed in to change notification settings - Fork 109
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
Cleanup roots of unity in KZGSettings #467
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, that's a very important change.
I left some minor comments.
Also, I totally agree with removing domain_size
/ max_width
.
* It is the reversed version of `expanded_roots_of_unity`. Essentially: | ||
* `reverse_roots_of_unity = reverse(expanded_roots_of_unity)` | ||
* | ||
* This array is primarily used in FFTs. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't feel that this remark adds all that much.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added the python pseudocode in an attempt to highlight the difference between this and brp_roots_of_unity
(both in terms of "reverse" vs "reverse-bit order" and in terms of excluding the last element).
With regards to "This array is primarily used in FFTs.", I was confused on why we need the reverse roots in the first place, so this would be useful to me, but I understand that it might be superfluous.
Co-authored-by: Justin Traglia <95511699+jtraglia@users.noreply.github.com>
834bf8a
to
d065133
Compare
Thanks a lot for the help @jtraglia ! |
This PR makes some steps towards #439
Leftover things to do:
Completely removemax_width
. This is not a variable field so it doesn't need to be inKZGSettings
. It's a parameter of the system, and by having it as a variable it makes things more confusing. IMO we should just useFIELD_ELEMENTS_PER_EXT_BLOB
directly where it's appropriate, andFIELD_ELEMENTS_PER_BLOB
in FK20.domain_size + 1
artifact stemming fromexpand_root_of_unity()
since it's needless and confusing. I decided to not do it because it would also change the 4844 code and I would ideally like it to remain as it was.