Skip to content

Commit

Permalink
rm useless generics for DensePolynomial (#903)
Browse files Browse the repository at this point in the history
Co-authored-by: Pratyush Mishra <[email protected]>
  • Loading branch information
tcoratger and Pratyush authored Mar 5, 2025
1 parent 13d3ab9 commit 67cf7d1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions poly/benches/dense_uv_polynomial.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ fn bench_sparse_poly_evaluate<F: Field>(b: &mut Bencher<'_>, non_zero_entries: &
fn bench_poly_evaluate<F: Field>(b: &mut Bencher<'_>, degree: &usize) {
// Per benchmark setup
let mut rng = &mut ark_std::test_rng();
let poly = DensePolynomial::<F>::rand(*degree, &mut rng);
let poly = DensePolynomial::rand(*degree, &mut rng);
b.iter(|| {
// Per benchmark iteration
let pt = F::rand(&mut rng);
Expand All @@ -70,7 +70,7 @@ fn bench_poly_add<F: Field>(b: &mut Bencher<'_>, degree: &usize) {
// Per benchmark setup
let mut rng = &mut ark_std::test_rng();
let poly_one = DensePolynomial::<F>::rand(*degree, &mut rng);
let poly_two = DensePolynomial::<F>::rand(*degree, &mut rng);
let poly_two = DensePolynomial::rand(*degree, &mut rng);
b.iter(|| {
// Per benchmark iteration
let _poly_three = &poly_one + &poly_two;
Expand Down
2 changes: 1 addition & 1 deletion poly/benches/fft.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ fn fft_setup_with_domain_size<F: FftField, D: EvaluationDomain<F>>(
) -> (D, Vec<F>) {
let mut rng = &mut ark_std::test_rng();
let domain = D::new(domain_size).unwrap();
let a = DensePolynomial::<F>::rand(degree - 1, &mut rng)
let a = DensePolynomial::rand(degree - 1, &mut rng)
.coeffs()
.to_vec();
(domain, a)
Expand Down

0 comments on commit 67cf7d1

Please sign in to comment.