summaryrefslogtreecommitdiff
path: root/numpy/_array_api/_elementwise_functions.py
diff options
context:
space:
mode:
authorAaron Meurer <asmeurer@gmail.com>2021-01-20 18:25:20 -0700
committerAaron Meurer <asmeurer@gmail.com>2021-01-20 18:25:20 -0700
commit1efd55efa8cac9afd12d299dcf8912a7a7ac8a68 (patch)
treeff6111d9091b0a96cfebc15a3ae5bab5a96e27b4 /numpy/_array_api/_elementwise_functions.py
parentad19f7f7dfcfe33fd4591f1be3b4d9d30887899a (diff)
downloadnumpy-1efd55efa8cac9afd12d299dcf8912a7a7ac8a68.tar.gz
Use _implementation on all functions that have it in the array API submodule
That way they only work on actual ndarray inputs, not array-like, which is more inline with the spec.
Diffstat (limited to 'numpy/_array_api/_elementwise_functions.py')
-rw-r--r--numpy/_array_api/_elementwise_functions.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/_array_api/_elementwise_functions.py b/numpy/_array_api/_elementwise_functions.py
index 9c013d8b4..9de4261ac 100644
--- a/numpy/_array_api/_elementwise_functions.py
+++ b/numpy/_array_api/_elementwise_functions.py
@@ -381,7 +381,7 @@ def round(x: array, /) -> array:
See its docstring for more information.
"""
- return np.round(x)
+ return np.round._implementation(x)
def sign(x: array, /) -> array:
"""