chiark / gitweb /
gf: New methods for various modular operations.
[catacomb-python] / catacomb / __init__.py
index 105e0438918d8ec95820aeb32d5d81ae26b572c7..6f80254ee75bfdf6fb83ad68a94d86def1d2ae58 100644 (file)
@@ -117,7 +117,12 @@ class _tmp:
 _augment(MP, _tmp)
 
 class _tmp:
+  def zerop(x): return x == 0
   def reduce(x): return GFReduce(x)
+  def trace(x, y): return x.reduce().trace(y)
+  def halftrace(x, y): return x.reduce().halftrace(y)
+  def modsqrt(x, y): return x.reduce().sqrt(y)
+  def quadsolve(x, y): return x.reduce().quadsolve(y)
 _augment(GF, _tmp)
 
 class _tmp: