Skip to content

Commit 7efb3f1

Browse files
authored
Add subscript in sign definition
1 parent 390e9cc commit 7efb3f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/array_api_stubs/_draft/elementwise_functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2389,7 +2389,7 @@ def sign(x: array, /) -> array:
23892389
.. math::
23902390
\operatorname{sign}(x_i) = \begin{cases}
23912391
0 & \textrm{if } x_i = 0 \\
2392-
\frac{x}{|x|} & \textrm{otherwise}
2392+
\frac{x_i}{|x_i|} & \textrm{otherwise}
23932393
\end{cases}
23942394
23952395
where :math:`|x_i|` is the absolute value of :math:`x_i`.

0 commit comments

Comments
 (0)