Skip to content

Commit b6ba66e

Browse files
antonwolfyvtavana
andauthored
Apply suggestions from code review
Co-authored-by: vtavana <[email protected]>
1 parent 7cabd1b commit b6ba66e

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
@@ -2432,7 +2432,7 @@ def gradient(f, *varargs, axis=None, edge_order=1):
24322432
_LDEXP_DOCSTRING = """
24332433
Returns x1 * 2**x2, element-wise.
24342434
2435-
The mantissas `x1` and twos exponents `x2` are used to construct floating point
2435+
The mantissas `x1` and exponents of two `x2` are used to construct floating point
24362436
numbers ``x1 * 2**x2``.
24372437
24382438
For full documentation refer to :obj:`numpy.ldexp`.
@@ -2443,7 +2443,7 @@ def gradient(f, *varargs, axis=None, edge_order=1):
24432443
Array of multipliers.
24442444
Both inputs `x1` and `x2` can not be scalars at the same time.
24452445
x2 : {dpnp.ndarray, usm_ndarray, scalar}
2446-
Array of twos exponents.
2446+
Array of exponents of two.
24472447
Both inputs `x1` and `x2` can not be scalars at the same time.
24482448
out : {None, dpnp.ndarray, usm_ndarray}, optional
24492449
Output array to populate. Array must have the correct shape and
@@ -2466,11 +2466,11 @@ def gradient(f, *varargs, axis=None, edge_order=1):
24662466
24672467
See Also
24682468
--------
2469-
:obj:`dpnp.frexp` : Return (y1, y2) from ``x = y1 * 2**y2``, inverse to `ldexp`.
2469+
:obj:`dpnp.frexp` : Return (y1, y2) from ``x = y1 * 2**y2``, inverse to :obj:`dpnp.ldexp`.
24702470
24712471
Notes
24722472
-----
2473-
Complex dtypes are not supported, they will raise a TypeError.
2473+
Complex dtypes are not supported, they will raise a ``TypeError``.
24742474
24752475
:obj:`dpnp.ldexp` is useful as the inverse of :obj:`dpnp.frexp`, if used by
24762476
itself it is more clear to simply use the expression ``x1 * 2**x2``.

0 commit comments

Comments
 (0)