Commits

Maciej Fijalkowski committed f080950

fixes

Comments (0)

Files changed (2)

pypy/module/micronumpy/interp_numarray.py

             if self.get_size() == 0:
                 raise OperationError(space.w_ValueError,
                     space.wrap("Can't call %s on zero-size arrays" % op_name))
-            return space.wrap(getattr(loop, op_name)(self))
+            return space.wrap(getattr(loop, 'arg' + op_name)(self))
         return func_with_new_name(impl, "reduce_arg%s_impl" % op_name)
 
     descr_argmax = _reduce_argmax_argmin_impl("max")

pypy/module/micronumpy/loop.py

             idx += 1
         return result
     return argmin_argmax
-argmin = _new_argmin_argmax('argmin')
-argmax = _new_argmin_argmax('argmax')
+argmin = _new_argmin_argmax('min')
+argmax = _new_argmin_argmax('max')
 
 # note that shapelen == 2 always
 dot_driver = jit.JitDriver(name = 'numpy_dot',
 
 fromstring_driver = jit.JitDriver(name = 'numpy_fromstring',
                                   greens = ['dtype'],
-                                  reds = ['s', 'ai', 'i'])
+                                  reds = ['i', 's', 'ai'])
 
 def fromstring_loop(a, dtype, itemsize, s):
     i = 0