-
Notifications
You must be signed in to change notification settings - Fork 0
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
Refactor constraint system #29
Conversation
1d68af9
to
761b455
Compare
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.
Seems ok, just a minor comment
c9063c9
to
78371bf
Compare
src/ahp/constraint_systems.rs
Outdated
make_matrices_square(cs, num_variables); | ||
let nnz = num_non_zero(cs); | ||
let matrix_dim = padded_matrix_dim(num_variables, cs.num_constraints); | ||
make_matrices_square_helper(cs, num_variables); |
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.
Why another function ?
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 not really a new function. I did the following renaming:
make_matrices_square_for_indexer_and_prover
--->make_matrices_square
make_matrices_square
--->make_matrices_square_helper
Function 1. is just a wrapper around function 2. which computes the right number of variables and performs some checks on the matrix dimensions.
Do you think that make_matrices_square_helper
should be eliminated and its code copy-pasted inside make_matrices_square
?
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.
Yes why not
54a5ff6
to
b792d5b
Compare
Alignment with ConstraintSystem refactoring on GingerLib: