We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4bcf0dd commit 126fca0Copy full SHA for 126fca0
array_api_compat/numpy/_aliases.py
@@ -159,11 +159,11 @@ def floor(x: Array, /) -> Array:
159
160
161
# https://github.com/numpy/numpy/issues/29124
162
-def round(x: Array, /) -> Array:
+def trunc(x: Array, /) -> Array:
163
if np.issubdtype(x.dtype, np.integer):
164
if np.__version__ < '2':
165
return x
166
- return np.round(x)
+ return np.trunc(x)
167
168
169
# These functions are completely new here. If the library already has them
@@ -196,7 +196,7 @@ def round(x: Array, /) -> Array:
196
"atanh",
197
"ceil",
198
"floor",
199
- "round",
+ "trunc",
200
"bitwise_left_shift",
201
"bitwise_invert",
202
"bitwise_right_shift",
0 commit comments