summaryrefslogtreecommitdiff
path: root/numpy/core/_methods.py
diff options
context:
space:
mode:
authorMarten van Kerkwijk <mhvk@astro.utoronto.ca>2018-12-20 09:23:30 -0500
committerGitHub <noreply@github.com>2018-12-20 09:23:30 -0500
commitf4c497c768e0646df740b647782df463825bfd27 (patch)
tree2effea18d0f94f0d010d2bdb33317a1010e637d4 /numpy/core/_methods.py
parent6b8441665fb877ab65ec067de7be776ff4f5ac54 (diff)
parent7104a3e9fe989f43f20765d740cf22dabae563d4 (diff)
downloadnumpy-f4c497c768e0646df740b647782df463825bfd27.tar.gz
Merge pull request #12317 from shoyer/array-function-c
ENH: port np.core.overrides to C for speed
Diffstat (limited to 'numpy/core/_methods.py')
-rw-r--r--numpy/core/_methods.py12
1 files changed, 0 insertions, 12 deletions
diff --git a/numpy/core/_methods.py b/numpy/core/_methods.py
index baeab6383..33f6d01a8 100644
--- a/numpy/core/_methods.py
+++ b/numpy/core/_methods.py
@@ -154,15 +154,3 @@ def _ptp(a, axis=None, out=None, keepdims=False):
umr_minimum(a, axis, None, None, keepdims),
out
)
-
-_NDARRAY_ARRAY_FUNCTION = mu.ndarray.__array_function__
-
-def _array_function(self, func, types, args, kwargs):
- # TODO: rewrite this in C
- # Cannot handle items that have __array_function__ other than our own.
- for t in types:
- if not issubclass(t, mu.ndarray) and hasattr(t, '__array_function__'):
- return NotImplemented
-
- # The regular implementation can handle this, so we call it directly.
- return func.__wrapped__(*args, **kwargs)