Skip to content

Commit

Permalink
rename e argument to other_polynomial
Browse files Browse the repository at this point in the history
  • Loading branch information
FoamyGuy committed Dec 2, 2024
1 parent 1ca131f commit 32ca2f3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions adafruit_miniqr.py
Original file line number Diff line number Diff line change
Expand Up @@ -473,14 +473,14 @@ def get_length(self) -> int:
return len(self.num)

def multiply(
self, e: "QRPolynomial"
self, other_polynomial: "QRPolynomial"
) -> "QRPolynomial": # pylint: disable=invalid-name
"""Multiply two polynomials, returns a new one"""
num = [0 for x in range(self.get_length() + e.get_length() - 1)]
num = [0 for x in range(self.get_length() + other_polynomial.get_length() - 1)]

for i in range(self.get_length()):
for j in range(e.get_length()):
num[i + j] ^= _gexp(_glog(self.get(i)) + _glog(e.get(j)))
for j in range(other_polynomial.get_length()):
num[i + j] ^= _gexp(_glog(self.get(i)) + _glog(other_polynomial.get(j)))

return QRPolynomial(num, 0)

Expand Down

0 comments on commit 32ca2f3

Please sign in to comment.