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

Add sparse scalar mul and sub #259

Merged
merged 10 commits into from
May 26, 2021

Conversation

ryanleh
Copy link
Contributor

@ryanleh ryanleh commented Apr 4, 2021

Same thing as #258 for SparsePolynomial<F>. Also adds impls for adding and subtracting SparsePolynomials from DensePolynomials.


Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.

  • Targeted PR against correct branch (master)
  • Linked to Github issue with discussion and accepted design OR have an explanation in the PR that describes this work.
  • Wrote unit tests
  • Updated relevant documentation in the code
  • Added a relevant changelog entry to the Pending section in CHANGELOG.md
  • Re-reviewed Files changed in the Github PR explorer

Copy link
Member

@weikengchen weikengchen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

@weikengchen
Copy link
Member

I do a pass and it is ready for a follow-up review.

@weikengchen weikengchen merged commit 846c90b into arkworks-rs:master May 26, 2021
@weikengchen weikengchen mentioned this pull request May 28, 2021
6 tasks
weikengchen added a commit that referenced this pull request May 28, 2021
* parallelize miller loops

* completed bls12 miller_loop parallelization

* restores logic for when parallel feature is off

* cargo cleanups

* cleanups

* cargo fmt

* adds changelog entry

* fixed changelog

* moved to cfg_iter, cleanups

* formatting

* minor fixes

* minor fixes

* Bump the version of super-linter (#283)

* Fix the panicking `subgroup_fft_in_place` benchmark for MNT6-753's Fr (#284)

* fix the bench test failure

* update the CHANGELOG

* lint

* lint

* Implement `Into<BigUint>` and `From<BigUint>` for `BigInteger` and `PrimeField` (#280)

* add into and from BigUint for BigInteger

* update changelog, cargo fmt

* linter

* update changelog, cargo fmt

* change the algorithm; implement for PrimeField as well

* less confusing variable name

* for BigInteger, do TryFrom instead of From; for PrimeField, do a mod

* handle the error of TryFrom; add a test for Fr into/from BigUint

* fmt, clippy

* Add sparse scalar mul and sub (#259)

* Add/Sub impl for Sparse and Dense polys, Mul<F> for SparsePolynomial

* Add test and update changelog

* Fmt

* Update CHANGELOG.md

* add add_assign and sub_assign

* fmt

Co-authored-by: Weikeng Chen <w.k@berkeley.edu>

* parallelize miller loops

* completed bls12 miller_loop parallelization

* restores logic for when parallel feature is off

* cargo cleanups

* cleanups

* cargo fmt

* adds changelog entry

* fixed changelog

* moved to cfg_iter, cleanups

* formatting

* minor fixes

* minor fixes

Co-authored-by: Weikeng Chen <w.k@berkeley.edu>
Co-authored-by: Ryan Lehmkuhl <ryanleh.ob@gmail.com>
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.

None yet

3 participants