Skip to content

Commit

Permalink
Ensure proper subfield ufunc modes are used
Browse files Browse the repository at this point in the history
  • Loading branch information
mhostetter committed Jun 22, 2024
1 parent 0ae8b87 commit 5132ed8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/galois/_domains/_calculate.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 5132ed8

Please sign in to comment.