From 01814f4d115c4bb57b9aad5ae257bd815d883952 Mon Sep 17 00:00:00 2001 From: sf Date: Tue, 17 Dec 2024 21:18:17 +0800 Subject: [PATCH] fix(finite-field): m31 comment --- src/finite-field/mersenne31.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/finite-field/mersenne31.py b/src/finite-field/mersenne31.py index b721efe..7c0bb55 100644 --- a/src/finite-field/mersenne31.py +++ b/src/finite-field/mersenne31.py @@ -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 @@ -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 的系数