From 5132ed831ff40dc2c699547df6f3dd292130adc6 Mon Sep 17 00:00:00 2001 From: mhostetter Date: Sat, 22 Jun 2024 12:05:01 -0400 Subject: [PATCH] Ensure proper subfield ufunc modes are used --- src/galois/_domains/_calculate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/galois/_domains/_calculate.py b/src/galois/_domains/_calculate.py index 708a72234..c93cd68cd 100644 --- a/src/galois/_domains/_calculate.py +++ b/src/galois/_domains/_calculate.py @@ -464,7 +464,7 @@ def set_calculate_globals(self): ORDER = self.field.order MULTIPLY = self.field._multiply.ufunc POSITIVE_POWER = self.field._positive_power.ufunc - SUBFIELD_RECIPROCAL = self.field.prime_subfield._reciprocal.ufunc + SUBFIELD_RECIPROCAL = getattr(self.field.prime_subfield._reciprocal, self.field.ufunc_mode.replace("-", "_")) @staticmethod def calculate(a: int) -> int: