[pypy-commit] pypy numpypy-out: dot does not accept out on new numpy
fijal
noreply at buildbot.pypy.org
Mon Mar 26 18:59:11 CEST 2012
Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: numpypy-out
Changeset: r53998:473b4e25f4c1
Date: 2012-03-26 18:58 +0200
http://bitbucket.org/pypy/pypy/changeset/473b4e25f4c1/
Log: dot does not accept out on new numpy
diff --git a/pypy/module/micronumpy/interp_numarray.py b/pypy/module/micronumpy/interp_numarray.py
--- a/pypy/module/micronumpy/interp_numarray.py
+++ b/pypy/module/micronumpy/interp_numarray.py
@@ -167,7 +167,8 @@
else:
out = w_out
return getattr(interp_ufuncs.get(space), ufunc_name).reduce(space,
- self, True, promote_to_largest, axis, False, out)
+ self, True, promote_to_largest, axis,
+ False, out)
return func_with_new_name(impl, "reduce_%s_impl" % ufunc_name)
descr_sum = _reduce_ufunc_impl("add")
@@ -219,15 +220,15 @@
descr_argmax = _reduce_argmax_argmin_impl("max")
descr_argmin = _reduce_argmax_argmin_impl("min")
- def descr_dot(self, space, w_other, w_out=None):
+ def descr_dot(self, space, w_other):
other = convert_to_array(space, w_other)
if isinstance(other, Scalar):
#Note: w_out is not modified, this is numpy compliant.
return self.descr_mul(space, other)
elif len(self.shape) < 2 and len(other.shape) < 2:
- w_res = self.descr_mul(space, other, w_out)
+ w_res = self.descr_mul(space, other)
assert isinstance(w_res, BaseArray)
- return w_res.descr_sum(space, space.wrap(-1), w_out)
+ return w_res.descr_sum(space, space.wrap(-1))
dtype = interp_ufuncs.find_binop_result_dtype(space,
self.find_dtype(), other.find_dtype())
if self.size < 1 and other.size < 1:
More information about the pypy-commit
mailing list