Expand description
This module contains a list of property tests for the MVPoly
trait.
Any type that implements the MVPoly
trait should pass these tests.
For instance, one can call the test_mul_by_one
as follows:
use mvpoly::MVPoly;
use mvpoly::prime::Dense;
use mina_curves::pasta::Fp;
fn test_mul_by_one() {
mvpoly::pbt::test_mul_by_one::<Fp, 2, 2, Dense<Fp, 2, 2>>();
mvpoly::pbt::test_mul_by_one::<Fp, 4, 2, Dense<Fp, 4, 2>>();
}
Functionsยง
- test_
add_ monomial - test_
add_ zero - test_
can_ be_ printed_ with_ debug - test_
degree_ constant - test_
degree_ random_ degree - test_
double_ is_ add_ twice - test_
eval_ pbt_ add - test_
eval_ pbt_ mul_ by_ scalar - test_
eval_ pbt_ neg - test_
eval_ pbt_ sub - test_
evaluation_ constant_ polynomial - test_
evaluation_ zero_ polynomial - test_
homogeneous_ eval - test_
is_ constant - test_
is_ multilinear - test_
is_ zero - test_
mul_ by_ one - test_
mul_ by_ scalar - test_
mul_ by_ scalar_ with_ one - test_
mul_ by_ scalar_ with_ zero - test_
mul_ by_ zero - test_
mvpoly_ add_ degree_ pbt - test_
mvpoly_ mul_ by_ scalar_ degree_ pbt - test_
mvpoly_ mul_ degree_ pbt - test_
mvpoly_ mul_ eval_ pbt - test_
mvpoly_ mul_ pbt - test_
mvpoly_ neg_ degree_ pbt - test_
mvpoly_ sub_ degree_ pbt - test_
neg - test_
neg_ ref - test_
sub_ zero