Skip to content

Commit

Permalink
Add subscript in sign definition
Browse files Browse the repository at this point in the history
  • Loading branch information
mdhaber authored Sep 21, 2024
1 parent 390e9cc commit 7efb3f1
Showing 1 changed file with 1 addition and 1 deletion.
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 7efb3f1

Please sign in to comment.