Skip to content

Commit

Permalink
Merge pull request #4037 from jtraglia/delete-unused-neg_polynomialcoeff
Browse files Browse the repository at this point in the history
Remove unused `neg_polynomialcoeff` function
  • Loading branch information
jtraglia authored Dec 3, 2024
2 parents a8b509d + 42588ce commit 4dfd346
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions specs/_features/eip7594/polynomial-commitments-sampling.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
- [Polynomials in coefficient form](#polynomials-in-coefficient-form)
- [`polynomial_eval_to_coeff`](#polynomial_eval_to_coeff)
- [`add_polynomialcoeff`](#add_polynomialcoeff)
- [`neg_polynomialcoeff`](#neg_polynomialcoeff)
- [`multiply_polynomialcoeff`](#multiply_polynomialcoeff)
- [`divide_polynomialcoeff`](#divide_polynomialcoeff)
- [`interpolate_polynomialcoeff`](#interpolate_polynomialcoeff)
Expand Down Expand Up @@ -252,16 +251,6 @@ def add_polynomialcoeff(a: PolynomialCoeff, b: PolynomialCoeff) -> PolynomialCoe
return PolynomialCoeff([a[i] + (b[i] if i < length_b else BLSFieldElement(0)) for i in range(length_a)])
```

#### `neg_polynomialcoeff`

```python
def neg_polynomialcoeff(a: PolynomialCoeff) -> PolynomialCoeff:
"""
Negative of coefficient form polynomial ``a``.
"""
return PolynomialCoeff([-x for x in a])
```

#### `multiply_polynomialcoeff`

```python
Expand Down

0 comments on commit 4dfd346

Please sign in to comment.