Skip to content

Commit ffeba18

Browse files
committed
Add a link to python documentation of divmod function
1 parent 58b1a03 commit ffeba18

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

dpnp/dpnp_iface_mathematical.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1624,8 +1624,8 @@ def diff(a, n=1, axis=-1, prepend=None, append=None):
16241624
(which becomes the shape of the output).
16251625
16261626
Equivalent to :math:`(x1 // x2, x1 \% x2)`, but faster because it avoids
1627-
redundant work. It is used to implement the Python built-in function ``divmod``
1628-
on :class:`dpnp.ndarray`.
1627+
redundant work. It is used to implement the Python built-in function
1628+
:func:`python:divmod` on :class:`dpnp.ndarray`.
16291629
16301630
Complex dtypes are not supported, they will raise a ``TypeError``.
16311631
@@ -1642,8 +1642,8 @@ def diff(a, n=1, axis=-1, prepend=None, append=None):
16421642
>>> np.divmod(np.arange(5), 3)
16431643
(array([0, 0, 0, 1, 1]), array([0, 1, 2, 0, 1]))
16441644
1645-
The Python built-in function ``divmod`` function can be used as a shorthand for
1646-
``np.divmod`` on :class:`dpnp.ndarray`.
1645+
The Python built-in function :func:`python:divmod` can be used as a shorthand
1646+
for ``np.divmod`` on :class:`dpnp.ndarray`.
16471647
16481648
>>> x = np.arange(5)
16491649
>>> divmod(x, 3)

0 commit comments

Comments
 (0)