Skip to content

Commit 5a35f78

Browse files
committed
State expected dtypes for input arrays
1 parent 14f564c commit 5a35f78

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dpnp/dpnp_iface_mathematical.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2456,10 +2456,10 @@ def gradient(f, *varargs, axis=None, edge_order=1):
24562456
Parameters
24572457
----------
24582458
x1 : {dpnp.ndarray, usm_ndarray, scalar}
2459-
Array of multipliers.
2459+
Array of multipliers, expected to have floating-point data types.
24602460
Both inputs `x1` and `x2` can not be scalars at the same time.
24612461
x2 : {dpnp.ndarray, usm_ndarray, scalar}
2462-
Array of exponents of two.
2462+
Array of exponents of two, expected to have an integer data type.
24632463
Both inputs `x1` and `x2` can not be scalars at the same time.
24642464
out : {None, dpnp.ndarray, usm_ndarray}, optional
24652465
Output array to populate. Array must have the correct shape and

0 commit comments

Comments
 (0)