Skip to content

Commit e3697b6

Browse files
authored
Update elementwise_functions.py
1 parent d1e1f2d commit e3697b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/array_api_stubs/_2022_12/elementwise_functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2065,7 +2065,7 @@ def sign(x: array, /) -> array:
20652065
.. math::
20662066
\operatorname{sign}(x_i) = \begin{cases}
20672067
0 & \textrm{if } x_i = 0 \\
2068-
\frac{x}{|x|} & \textrm{otherwise}
2068+
\frac{x_i}{|x_i|} & \textrm{otherwise}
20692069
\end{cases}
20702070
20712071
where :math:`|x_i|` is the absolute value of :math:`x_i`.

0 commit comments

Comments
 (0)