-
Notifications
You must be signed in to change notification settings - Fork 162
Refactor + use existing functions #886
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
base: main
Are you sure you want to change the base?
Conversation
99a5ee0 to
415eab2
Compare
|
|
||
| let lagrange_coefficients = Self::get_lagrange_coefficients_for( | ||
| index.get() as u128, | ||
| points.len() as u16, |
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.
what if we have more than t points?
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.
It's up to the caller to only give t points - same as for recover_c0. I'm not sure I understand the need for the t parameter in those function since all it's doing is check that the given number of points is t?
get_lagrange_coefficientsfunction forinterpolate_at_indexand rename torecover_at. This gives a significant speed-up (~65%).