Skip to content

Commit 8906dc5

Browse files
committed
Replace real-valued with real-valued floating-point per array API spec
1 parent dd7182e commit 8906dc5

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

dpnp/dpnp_iface_mathematical.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ def _process_ediff1d_args(arg, arg_name, ary_dtype, ary_sycl_queue, usm_type):
372372
out : dpnp.ndarray
373373
An array containing the element-wise absolute values.
374374
For complex input, the absolute value is its magnitude.
375-
If `x` has a real-valued data type, the returned array has the
375+
If `x` has a real-valued floating-point data type, the returned array has the
376376
same data type as `x`. If `x` has a complex floating-point data type,
377377
the returned array has a real-valued floating-point data type whose
378378
precision matches the precision of `x`.
@@ -611,7 +611,7 @@ def around(x, /, decimals=0, out=None):
611611
Parameters
612612
----------
613613
x : {dpnp.ndarray, usm_ndarray}
614-
Input array, expected to have a real-valued data type.
614+
Input array, expected to have a real-valued floating-point data type.
615615
out : {None, dpnp.ndarray, usm_ndarray}, optional
616616
Output array to populate.
617617
Array must have the correct shape and the expected data type.
@@ -1719,7 +1719,7 @@ def ediff1d(ary, to_end=None, to_begin=None):
17191719
Parameters
17201720
----------
17211721
x : {dpnp.ndarray, usm_ndarray}
1722-
Input array, expected to have a real-valued data type.
1722+
Input array, expected to have a real-valued floating-point data type.
17231723
out : {None, dpnp.ndarray, usm_ndarray}, optional
17241724
Output array to populate.
17251725
Array must have the correct shape and the expected data type.
@@ -1880,7 +1880,7 @@ def ediff1d(ary, to_end=None, to_begin=None):
18801880
Parameters
18811881
----------
18821882
x : {dpnp.ndarray, usm_ndarray}
1883-
Input array, expected to have a real-valued data type.
1883+
Input array, expected to have a real-valued floating-point data type.
18841884
out : {None, dpnp.ndarray, usm_ndarray}, optional
18851885
Output array to populate.
18861886
Array must have the correct shape and the expected data type.
@@ -2197,10 +2197,10 @@ def ediff1d(ary, to_end=None, to_begin=None):
21972197
Parameters
21982198
----------
21992199
x1 : {dpnp.ndarray, usm_ndarray, scalar}
2200-
First input array, expected to have a real-valued data type.
2200+
First input array, expected to have a real-valued floating-point data type.
22012201
Both inputs `x1` and `x2` can not be scalars at the same time.
22022202
x2 : {dpnp.ndarray, usm_ndarray, scalar}
2203-
Second input array, also expected to have a real-valued data type.
2203+
Second input array, also expected to have a real-valued floating-point data type.
22042204
Both inputs `x1` and `x2` can not be scalars at the same time.
22052205
If ``x1.shape != x2.shape``, they must be broadcastable to a common shape
22062206
(which becomes the shape of the output).
@@ -2654,7 +2654,7 @@ def gradient(f, *varargs, axis=None, edge_order=1):
26542654
-------
26552655
out : dpnp.ndarray
26562656
An array containing the element-wise imaginary component of input.
2657-
If the input is a real-valued data type, the returned array has
2657+
If the input is a real-valued floating-point data type, the returned array has
26582658
the same data type. If the input is a complex floating-point
26592659
data type, the returned array has a floating-point data type
26602660
with the same floating-point precision as complex input.
@@ -3693,7 +3693,7 @@ def prod(
36933693
-------
36943694
out : dpnp.ndarray
36953695
An array containing the element-wise real component of input.
3696-
If the input is a real-valued data type, the returned array has
3696+
If the input is a real-valued floating-point data type, the returned array has
36973697
the same data type. If the input is a complex floating-point
36983698
data type, the returned array has a floating-point data type
36993699
with the same floating-point precision as complex input.
@@ -3804,10 +3804,10 @@ def real_if_close(a, tol=100):
38043804
Parameters
38053805
----------
38063806
x1 : {dpnp.ndarray, usm_ndarray, scalar}
3807-
First input array, expected to have a real-valued data type.
3807+
First input array, expected to have a real-valued floating-point data type.
38083808
Both inputs `x1` and `x2` can not be scalars at the same time.
38093809
x2 : {dpnp.ndarray, usm_ndarray, scalar}
3810-
Second input array, also expected to have a real-valued data type.
3810+
Second input array, also expected to have a real-valued floating-point data type.
38113811
Both inputs `x1` and `x2` can not be scalars at the same time.
38123812
If ``x1.shape != x2.shape``, they must be broadcastable to a common shape
38133813
(which becomes the shape of the output).
@@ -4553,7 +4553,7 @@ def trapezoid(y, x=None, dx=1.0, axis=-1):
45534553
Parameters
45544554
----------
45554555
x : {dpnp.ndarray, usm_ndarray}
4556-
Input array, expected to have a real-valued data type.
4556+
Input array, expected to have a real-valued floating-point data type.
45574557
out : {None, dpnp.ndarray, usm_ndarray}, optional
45584558
Output array to populate.
45594559
Array must have the correct shape and the expected data type.

dpnp/dpnp_iface_trigonometric.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -878,7 +878,7 @@ def cumlogsumexp(
878878
Parameters
879879
----------
880880
x : {dpnp.ndarray, usm_ndarray}
881-
Input array, expected to have a real-valued data type.
881+
Input array, expected to have a real-valued floating-point data type.
882882
axis : {None, int}, optional
883883
Axis or axes along which values must be computed. If a tuple of unique
884884
integers, values are computed over multiple axes. If ``None``, the
@@ -1266,10 +1266,10 @@ def cumlogsumexp(
12661266
Parameters
12671267
----------
12681268
x1 : {dpnp.ndarray, usm_ndarray, scalar}
1269-
First input array, expected to have a real-valued data type.
1269+
First input array, expected to have a real-valued floating-point data type.
12701270
Both inputs `x1` and `x2` can not be scalars at the same time.
12711271
x2 : {dpnp.ndarray, usm_ndarray, scalar}
1272-
Second input array, also expected to have a real-valued data type.
1272+
Second input array, also expected to have a real-valued floating-point data type.
12731273
Both inputs `x1` and `x2` can not be scalars at the same time.
12741274
If ``x1.shape != x2.shape``, they must be broadcastable to a common shape
12751275
(which becomes the shape of the output).
@@ -1730,7 +1730,7 @@ def logsumexp(x, /, *, axis=None, dtype=None, keepdims=False, out=None):
17301730
Parameters
17311731
----------
17321732
x : {dpnp.ndarray, usm_ndarray}
1733-
Input array, expected to have a real-valued data type.
1733+
Input array, expected to have a real-valued floating-point data type.
17341734
axis : {None, int or tuple of ints}, optional
17351735
Axis or axes along which values must be computed. If a tuple of unique
17361736
integers, values are computed over multiple axes. If ``None``, the
@@ -1992,7 +1992,7 @@ def reduce_hypot(x, /, *, axis=None, dtype=None, keepdims=False, out=None):
19921992
Parameters
19931993
----------
19941994
x : {dpnp.ndarray, usm_ndarray}
1995-
Input array, expected to have a real-valued data type.
1995+
Input array, expected to have a real-valued floating-point data type.
19961996
axis : {None, int or tuple of ints}, optional
19971997
Axis or axes along which values must be computed. If a tuple of unique
19981998
integers, values are computed over multiple axes. If ``None``, the

0 commit comments

Comments
 (0)