Skip to content
Snippets Groups Projects
Commit fe98d00f authored by Sander Snoo's avatar Sander Snoo
Browse files

Added numpy reduce functions

parent 8378003b
No related branches found
No related tags found
No related merge requests found
......@@ -218,9 +218,10 @@ class loop_obj():
else:
cpy.data = ufunc(self.data, *args, **kwargs)
return cpy
if len(inputs) > 1 and inputs[1] is self and method == '__call__':
data = ufunc(inputs[0], self.data, *inputs[2:], **kwargs)
return data
elif inputs[0] is self:
return getattr(ufunc, method)(self.data, *inputs[1:], **kwargs)
elif len(inputs) > 1 and inputs[1] is self and method == '__call__':
return ufunc(inputs[0], self.data, *inputs[2:], **kwargs)
return NotImplemented
def __copy__(self):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment