Commits

mattip committed a7610da

flesh out Bool

Comments (0)

Files changed (1)

pypy/module/micronumpy/types.py

     def invert(self, v):
         return ~v
 
+    @raw_unary_op
+    def isfinite(self, v):
+        return True
+
+    @raw_unary_op
+    def signbit(self, v):
+        return False
+
+    @simple_unary_op
+    def reciprocal(self, v):
+        if v:
+            return 1
+        return 0
+
 NonNativeBool = Bool
 
 class Integer(Primitive):