You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am working with Polynomial. As part of my work I am required to manipulate them in certain ways. Here are a few suggestions for new functions to add to Polynomial (If I will have more ideas as I continue working I will add them here):
polynomial multiplication : requires fft
generate a Polynomial of some degree N (provided as input) from a partial set of coefficients (the rest are zero) given at a specific locations
allow to define a polynomial from a vector of BigInts
The text was updated successfully, but these errors were encountered:
Would this allow to achieve what you want? Basically, you can sample a random polynomial Polynomial::sample_exact(), and then you can overwrite its coefficients, eg. : polynomial.coefficients_mut()[3] = Scalar::from(4)
That's a reasonable suggestion. To allow construction from bigints, I would change from_coefficients constructor to be:
So this method will work with both Vec<Scalar<E>> and Vec<Bigint>. But this changes public API and requires major version bump. For now, it may be sufficient to add constructor from_bigint_coefficients that takes Vec<Bigint>.
I am working with
Polynomial
. As part of my work I am required to manipulate them in certain ways. Here are a few suggestions for new functions to add to Polynomial (If I will have more ideas as I continue working I will add them here):The text was updated successfully, but these errors were encountered: