Skip to content
Open
Prev Previous commit
Next Next commit
Update poly/src/polynomial/univariate/sparse.rs
Co-authored-by: Andrew Zitek-Estrada <1497456+z-tech@users.noreply.github.com>
  • Loading branch information
woojucy and z-tech authored Mar 1, 2025
commit 887dd95fde0ececb268c22069bf243ab6fa41b77
6 changes: 6 additions & 0 deletions poly/src/polynomial/univariate/sparse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,12 @@ impl<F: Field> Zero for SparsePolynomial<F> {
}
}

#[derive(Debug)]
pub enum CoeffVecError {
ZeroCoefficient,
DuplicateDegree,
}

impl<F: Field> SparsePolynomial<F> {

// Function to validate that the input coefficient vector is simplified
Expand Down
Loading