Author: Maciej Fijalkowski <[email protected]>
Branch: numpy-back-to-applevel
Changeset: r51579:ac6129336b42
Date: 2012-01-21 15:51 +0200
http://bitbucket.org/pypy/pypy/changeset/ac6129336b42/
Log: change rebindings, nonsense
diff --git a/lib_pypy/numpypy/core/_methods.py
b/lib_pypy/numpypy/core/_methods.py
--- a/lib_pypy/numpypy/core/_methods.py
+++ b/lib_pypy/numpypy/core/_methods.py
@@ -55,22 +55,22 @@
rcount = mu.count_reduce_items(arr, axis=axis,
skipna=skipna, keepdims=True)
if isinstance(arrmean, mu.ndarray):
- arrmean2 = um.true_divide(arrmean, rcount,
+ arrmean = um.true_divide(arrmean, rcount,
casting='unsafe', subok=False)
else:
- arrmean2 = arrmean / float(rcount)
+ arrmean = arrmean / float(rcount)
# arr - arrmean
- x = arr - arrmean2
+ x = arr - arrmean
# (arr - arrmean) ** 2
if arr.dtype.kind == 'c':
- y = um.multiply(x, um.conjugate(x)).real
+ x = um.multiply(x, um.conjugate(x)).real
else:
- y = um.multiply(x, x)
+ x = um.multiply(x, x)
# add.reduce((arr - arrmean) ** 2, axis)
- ret = um.add.reduce(y, axis=axis, dtype=dtype, out=out,
+ ret = um.add.reduce(x, axis=axis, dtype=dtype, out=out,
skipna=skipna, keepdims=keepdims)
# add.reduce((arr - arrmean) ** 2, axis) / (n - ddof)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit