Skip to content

Commit

Permalink
docs: add missing subscripts in sign definition
Browse files Browse the repository at this point in the history
PR-URL: #844
Reviewed-by: Athan Reines <[email protected]>
Reviewed-by: Oleksandr Pavlyk <[email protected]>
  • Loading branch information
mdhaber authored Oct 31, 2024
1 parent 390e9cc commit 1765933
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/array_api_stubs/_2022_12/elementwise_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -2065,7 +2065,7 @@ def sign(x: array, /) -> array:
.. math::
\operatorname{sign}(x_i) = \begin{cases}
0 & \textrm{if } x_i = 0 \\
\frac{x}{|x|} & \textrm{otherwise}
\frac{x_i}{|x_i|} & \textrm{otherwise}
\end{cases}
where :math:`|x_i|` is the absolute value of :math:`x_i`.
Expand Down
2 changes: 1 addition & 1 deletion src/array_api_stubs/_2023_12/elementwise_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -2335,7 +2335,7 @@ def sign(x: array, /) -> array:
.. math::
\operatorname{sign}(x_i) = \begin{cases}
0 & \textrm{if } x_i = 0 \\
\frac{x}{|x|} & \textrm{otherwise}
\frac{x_i}{|x_i|} & \textrm{otherwise}
\end{cases}
where :math:`|x_i|` is the absolute value of :math:`x_i`.
Expand Down
2 changes: 1 addition & 1 deletion src/array_api_stubs/_draft/elementwise_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -2389,7 +2389,7 @@ def sign(x: array, /) -> array:
.. math::
\operatorname{sign}(x_i) = \begin{cases}
0 & \textrm{if } x_i = 0 \\
\frac{x}{|x|} & \textrm{otherwise}
\frac{x_i}{|x_i|} & \textrm{otherwise}
\end{cases}
where :math:`|x_i|` is the absolute value of :math:`x_i`.
Expand Down

0 comments on commit 1765933

Please sign in to comment.