Skip to content

Commit

Permalink
fix(finite-field): m31 comment
Browse files Browse the repository at this point in the history
  • Loading branch information
dynm committed Dec 17, 2024
1 parent 3907d49 commit 01814f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/finite-field/mersenne31.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def square(self):
return self * self

class Complex:
""" 复数扩张 i^2 + 1 = 0 """
""" Irriducible polynomial: i^2 + 1 = 0 """
def __init__(self, real: Mersenne31, imag: Mersenne31):
self.real: Mersenne31 = real
self.imag: Mersenne31 = imag
Expand Down Expand Up @@ -120,7 +120,7 @@ def norm(self):
return self.real.square() + self.imag.square()

class Mersenne31QuadExtension:
"""第二次复数扩张: w^2 + 1 + 2i = 0"""
""" Irriducible polynomial: w^2 + 1 + 2i = 0"""
def __init__(self, c0: Complex, c1: Complex):
self.c0: Complex = c0 # 常数项
self.c1: Complex = c1 # w 的系数
Expand Down

0 comments on commit 01814f4

Please sign in to comment.