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

Initial commit #1

Merged
merged 24 commits into from
Sep 16, 2020
Merged

Initial commit #1

merged 24 commits into from
Sep 16, 2020

Conversation

tsunrise
Copy link
Member

This PR relocates code from my private repo.

for your convenience:
documentation
reference paper

use crate::data_structures::ml_extension::{GKRFunction, MLExtension, SparseMLExtension};

/// An implementation of multilinear extension, storing the data of underlying array.
pub struct MLExtensionArray<F: Field> {
Copy link
Member

Choose a reason for hiding this comment

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

There's a way to unify this with MLExtensionRefArray, by using Cow<'a, Vec<F>, like here: https://github.com/scipr-lab/poly-commit/blob/328c3df61ad433d3ba68a15958a516fc1953d627/src/data_structures.rs#L79

This should reduce the code duplication down the line.

Copy link
Member Author

Choose a reason for hiding this comment

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

make sense. I will combine these two impl into one later

Copy link
Member

@Pratyush Pratyush Sep 15, 2020

Choose a reason for hiding this comment

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

Ok, maybe we should file an issue for it, and then revisit in a later PR?

Copy link
Member Author

Choose a reason for hiding this comment

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

sounds good. I will do that

tsunrise and others added 5 commits September 14, 2020 22:12
Co-authored-by: Pratyush Mishra <pratyushmishra@berkeley.edu>
Co-authored-by: Pratyush Mishra <pratyushmishra@berkeley.edu>
Co-authored-by: Pratyush Mishra <pratyushmishra@berkeley.edu>
@Pratyush
Copy link
Member

Is the PR ready for another round of review?

@tsunrise
Copy link
Member Author

Is the PR ready for another round of review?

Yes. Thanks for reviewing the code! Really appreciate it

Cargo.toml Outdated Show resolved Hide resolved
@tsunrise
Copy link
Member Author

tsunrise commented Sep 16, 2020

resolved #3
I'm refactoring a lot of my code to support no_std mode. (no_std mode does not support implementations of multilinear extension representations, and most tests will not be compiled in this mode)

@Pratyush
Copy link
Member

For no_std mode, I recommend pulling in alloc as an external crate for Vec and String and so on

@Pratyush Pratyush changed the title Relocate Code Initial commit Sep 16, 2020
@Pratyush Pratyush merged commit 694666a into master Sep 16, 2020
@Pratyush Pratyush deleted the dev branch September 16, 2020 22:51
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

2 participants