Skip to content
Open
Prev Previous commit
Resolve merge conflicts
  • Loading branch information
woojucy committed Mar 12, 2025
commit 06bfae557d563f22aef898dae3d1ef34e97737d5
3 changes: 1 addition & 2 deletions poly/src/polynomial/univariate/sparse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,6 @@ pub enum CoeffVecError {
}

impl<F: Field> SparsePolynomial<F> {

// Function to validate that the input coefficient vector is simplified
pub fn is_valid_coefficients_vec(coeffs: &mut [(usize, F)]) -> Result<(), CoeffVecError> {
coeffs.sort_by(|a, b| a.0.cmp(&b.0));
Expand All @@ -257,7 +256,7 @@ impl<F: Field> SparsePolynomial<F> {
}
Ok(())
}

/// Constructs a new polynomial from a list of coefficients.
pub fn from_coefficients_slice(coeffs: &[(usize, F)]) -> Self {
Self::from_coefficients_vec(coeffs.to_vec())
Expand Down
Loading