-
Notifications
You must be signed in to change notification settings - Fork 136
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
Feat(poly): Add Dense and Sparse Multilinear Polynomials #726
Feat(poly): Add Dense and Sparse Multilinear Polynomials #726
Conversation
0cbce62
to
9c7c4a2
Compare
9c7c4a2
to
25339bf
Compare
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #726 +/- ##
==========================================
- Coverage 95.36% 95.31% -0.06%
==========================================
Files 140 143 +3
Lines 31393 31753 +360
==========================================
+ Hits 29938 30264 +326
- Misses 1455 1489 +34 ☔ View full report in Codecov by Sentry. |
} | ||
|
||
/// Evaluates `self` at the point `p` in O(n) time. | ||
#[allow(dead_code)] |
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.
Allow dead code in a public function shouldn't be needed
//TODO; remove asserts | ||
pub fn extend(&mut self, other: &DenseMultilinearPolynomial<F>) { |
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.
Add docs with ///
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.
Add panic section
assert_eq!(self.evals.len(), self.len); | ||
} | ||
|
||
pub fn merge( |
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.
Add docs with ///
91f2b83
45f0257
to
91f2b83
Compare
91f2b83
e6da920
to
91f2b83
Compare
} | ||
} | ||
|
||
fn get_bits(n: usize, num_bits: usize) -> Vec<bool> { |
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 would be nice to have some docs about this function
a5ce3b0
071e326
to
a5ce3b0
Compare
Dense Multilinear Polynomial
Description
Extends the polyomial module by adding a Dense representation of a multilinear polynomial in lagrange basis.
Type of change
Please delete options that are not relevant.
Checklist