Author: mattip <[email protected]>
Branch: missing-ndarray-attributes
Changeset: r60322:d2e7ae35c850
Date: 2013-01-21 23:58 +0200
http://bitbucket.org/pypy/pypy/changeset/d2e7ae35c850/
Log: use reds=auto to avoid hack
diff --git a/pypy/module/micronumpy/loop.py b/pypy/module/micronumpy/loop.py
--- a/pypy/module/micronumpy/loop.py
+++ b/pypy/module/micronumpy/loop.py
@@ -174,12 +174,10 @@
return out
axis_reduce__driver = jit.JitDriver(name='numpy_axis_reduce',
- greens=['shapelen', 'cumultative',
+ greens=['shapelen',
'func', 'dtype',
'identity'],
- reds=['axis', 'arr', 'out', 'shape',
- 'out_iter', 'arr_iter',
- 'temp_iter'])
+ reds='auto')
def do_axis_reduce(shape, func, arr, dtype, axis, out, identity, cumultative,
temp):
@@ -195,11 +193,7 @@
while not out_iter.done():
axis_reduce__driver.jit_merge_point(shapelen=shapelen, func=func,
dtype=dtype, identity=identity,
- axis=axis, arr=arr, out=out,
- shape=shape, out_iter=out_iter,
- arr_iter=arr_iter,
- cumultative=cumultative,
- temp_iter=temp_iter)
+ )
w_val = arr_iter.getitem().convert_to(dtype)
if out_iter.first_line:
if identity is not None:
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit