From a92a5e7b0158c32b2bfac67ec00dbeb5057d9de6 Mon Sep 17 00:00:00 2001 From: Rin204 <0204rinsaiki@gmail.com> Date: Tue, 27 Feb 2024 22:30:18 +0900 Subject: [PATCH] bugfix: xor_convolution --- src/convolution/xor_convolution.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/convolution/xor_convolution.py b/src/convolution/xor_convolution.py index 682f725..86dbf00 100644 --- a/src/convolution/xor_convolution.py +++ b/src/convolution/xor_convolution.py @@ -19,6 +19,9 @@ def f(A): if MOD != -1: A[j] = (x + y) % MOD A[j + h] = (x - y) % MOD + else: + A[j] = x + y + A[j + h] = x - y h *= 2 f(A)