Skip to content

Commit 1765933

Browse files
authored
docs: add missing subscripts in sign definition
PR-URL: #844 Reviewed-by: Athan Reines <[email protected]> Reviewed-by: Oleksandr Pavlyk <[email protected]>
1 parent 390e9cc commit 1765933

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/array_api_stubs/_2022_12/elementwise_functions.py

+1-1
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`.

src/array_api_stubs/_2023_12/elementwise_functions.py

+1-1
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`.

src/array_api_stubs/_draft/elementwise_functions.py

+1-1
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)