diff options
author | Stephan Hoyer <shoyer@gmail.com> | 2018-10-25 12:46:24 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-25 12:46:24 -0700 |
commit | 2dfb68ef3de5d6fcb9451462d38352f411f055c0 (patch) | |
tree | a80dd8a65b6f796e7e00b678071e37d3bc8e293c /numpy/core/numeric.py | |
parent | ea7ff5fd7a3300a1d1c68c3f8d773f9ce4f17ca4 (diff) | |
parent | 872372bd56ccb5fe98faae8be7d14e4a8c69e037 (diff) | |
download | numpy-2dfb68ef3de5d6fcb9451462d38352f411f055c0.tar.gz |
Merge branch 'master' into einsum-dispatch
Diffstat (limited to 'numpy/core/numeric.py')
-rw-r--r-- | numpy/core/numeric.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/numpy/core/numeric.py b/numpy/core/numeric.py index 6e4e585c3..5d82bbd8d 100644 --- a/numpy/core/numeric.py +++ b/numpy/core/numeric.py @@ -6,6 +6,7 @@ try: import collections.abc as collections_abc except ImportError: import collections as collections_abc +import functools import itertools import operator import sys @@ -27,8 +28,8 @@ from .multiarray import ( if sys.version_info[0] < 3: from .multiarray import newbuffer, getbuffer +from . import overrides from . import umath -from .overrides import array_function_dispatch from .umath import (multiply, invert, sin, UFUNC_BUFSIZE_DEFAULT, ERR_IGNORE, ERR_WARN, ERR_RAISE, ERR_CALL, ERR_PRINT, ERR_LOG, ERR_DEFAULT, PINF, NAN) @@ -55,6 +56,10 @@ else: import __builtin__ as builtins +array_function_dispatch = functools.partial( + overrides.array_function_dispatch, module='numpy') + + def loads(*args, **kwargs): # NumPy 1.15.0, 2017-12-10 warnings.warn( |