Skip to content

Commit d1e1f2d

Browse files
authored
Update elementwise_functions.py
1 parent 7efb3f1 commit d1e1f2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/array_api_stubs/_2023_12/elementwise_functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2335,7 +2335,7 @@ def sign(x: array, /) -> array:
23352335
.. math::
23362336
\operatorname{sign}(x_i) = \begin{cases}
23372337
0 & \textrm{if } x_i = 0 \\
2338-
\frac{x}{|x|} & \textrm{otherwise}
2338+
\frac{x_i}{|x_i|} & \textrm{otherwise}
23392339
\end{cases}
23402340
23412341
where :math:`|x_i|` is the absolute value of :math:`x_i`.

0 commit comments

Comments
 (0)