@@ -220,7 +220,7 @@ def add(
220
220
Parameters `x1` and `x2` are supported as either scalar, :class:`dpnp.ndarray`
221
221
or :class:`dpctl.tensor.usm_ndarray`, but both `x1` and `x2` can not be scalars at the same time.
222
222
Parameters `where`, `dtype` and `subok` are supported with their default values.
223
- Keyword arguments `` kwargs` ` are currently unsupported.
223
+ Keyword arguments `kwargs` are currently unsupported.
224
224
Otherwise the function will be executed sequentially on CPU.
225
225
Input array data types are limited by supported DPNP :ref:`Data types`.
226
226
@@ -626,14 +626,14 @@ def divide(
626
626
Returns
627
627
-------
628
628
y : dpnp.ndarray
629
- The quotient `` x1/x2` `, element-wise.
629
+ The quotient `x1/x2`, element-wise.
630
630
631
631
Limitations
632
632
-----------
633
633
Parameters `x1` and `x2` are supported as either scalar, :class:`dpnp.ndarray`
634
634
or :class:`dpctl.tensor.usm_ndarray`, but both `x1` and `x2` can not be scalars at the same time.
635
- Parameters `out`, ` where`, `dtype` and `subok` are supported with their default values.
636
- Keyword arguments `` kwargs` ` are currently unsupported.
635
+ Parameters `where`, `dtype` and `subok` are supported with their default values.
636
+ Keyword arguments `kwargs` are currently unsupported.
637
637
Otherwise the function will be executed sequentially on CPU.
638
638
Input array data types are limited by supported DPNP :ref:`Data types`.
639
639
@@ -823,7 +823,7 @@ def floor_divide(
823
823
824
824
See Also
825
825
--------
826
- :obj:`dpnp.reminder ` : Remainder complementary to floor_divide.
826
+ :obj:`dpnp.remainder ` : Remainder complementary to floor_divide.
827
827
:obj:`dpnp.divide` : Standard division.
828
828
:obj:`dpnp.floor` : Round a number to the nearest integer toward minus infinity.
829
829
:obj:`dpnp.ceil` : Round a number to the nearest integer toward infinity.
@@ -910,7 +910,7 @@ def fmod(x1, x2, dtype=None, out=None, where=True, **kwargs):
910
910
911
911
See Also
912
912
--------
913
- :obj:`dpnp.reminder ` : Remainder complementary to floor_divide.
913
+ :obj:`dpnp.remainder ` : Remainder complementary to floor_divide.
914
914
:obj:`dpnp.divide` : Standard division.
915
915
916
916
Examples
@@ -1137,16 +1137,36 @@ def minimum(x1, x2, dtype=None, out=None, where=True, **kwargs):
1137
1137
)
1138
1138
1139
1139
1140
- def mod (* args , ** kwargs ):
1140
+ def mod (
1141
+ x1 ,
1142
+ x2 ,
1143
+ / ,
1144
+ out = None ,
1145
+ * ,
1146
+ where = True ,
1147
+ order = "K" ,
1148
+ dtype = None ,
1149
+ subok = True ,
1150
+ ** kwargs ,
1151
+ ):
1141
1152
"""
1142
1153
Compute element-wise remainder of division.
1143
1154
1144
1155
For full documentation refer to :obj:`numpy.mod`.
1145
1156
1157
+ Limitations
1158
+ -----------
1159
+ Parameters `x1` and `x2` are supported as either scalar, :class:`dpnp.ndarray`
1160
+ or :class:`dpctl.tensor.usm_ndarray`, but both `x1` and `x2` can not be scalars at the same time.
1161
+ Parameters `where`, `dtype` and `subok` are supported with their default values.
1162
+ Keyword arguments `kwargs` are currently unsupported.
1163
+ Otherwise the function will be executed sequentially on CPU.
1164
+ Input array data types are limited by supported DPNP :ref:`Data types`.
1165
+
1146
1166
See Also
1147
1167
--------
1148
1168
:obj:`dpnp.fmod` : Calculate the element-wise remainder of division
1149
- :obj:`dpnp.reminder ` : Remainder complementary to floor_divide.
1169
+ :obj:`dpnp.remainder ` : Remainder complementary to floor_divide.
1150
1170
:obj:`dpnp.divide` : Standard division.
1151
1171
1152
1172
Notes
@@ -1155,7 +1175,16 @@ def mod(*args, **kwargs):
1155
1175
1156
1176
"""
1157
1177
1158
- return dpnp .remainder (* args , ** kwargs )
1178
+ return dpnp .remainder (
1179
+ x1 ,
1180
+ x2 ,
1181
+ out = out ,
1182
+ where = where ,
1183
+ order = order ,
1184
+ dtype = dtype ,
1185
+ subok = subok ,
1186
+ ** kwargs ,
1187
+ )
1159
1188
1160
1189
1161
1190
def modf (x1 , ** kwargs ):
@@ -1602,18 +1631,20 @@ def remainder(
1602
1631
1603
1632
Limitations
1604
1633
-----------
1605
- Parameters `` x1`` and `` x2`` are supported as either :obj :`dpnp.ndarray`,
1606
- :class:`dpctl.tensor.usm_ndarray` or scalar .
1607
- Parameters `where`, `dtype` and `subok` are supported with their default values.
1608
- Keyword arguments `kwargs` are currently unsupported.
1609
- Otherwise the functions will be executed sequentially on CPU.
1610
- Input array data types are limited by supported DPNP :ref:`Data types`.
1634
+ Parameters `x1` and `x2` are supported as either scalar, :class :`dpnp.ndarray`
1635
+ or :class:`dpctl.tensor.usm_ndarray`, but both `x1` and `x2` can not be scalars at the same time .
1636
+ Parameters `where`, `dtype` and `subok` are supported with their default values.
1637
+ Keyword arguments `kwargs` are currently unsupported.
1638
+ Otherwise the function will be executed sequentially on CPU.
1639
+ Input array data types are limited by supported DPNP :ref:`Data types`.
1611
1640
1612
1641
See Also
1613
1642
--------
1614
- :obj:`dpnp.fmod` : Calculate the element-wise remainder of division.
1615
- :obj:`dpnp.divide` : Standard division.
1616
- :obj:`dpnp.floor` : Round a number to the nearest integer toward minus infinity.
1643
+ :obj:`dpnp.fmod` : Calculate the element-wise remainder of division.
1644
+ :obj:`dpnp.divide` : Standard division.
1645
+ :obj:`dpnp.floor` : Round a number to the nearest integer toward minus infinity.
1646
+ :obj:`dpnp.floor_divide` : Compute the largest integer smaller or equal to the division of the inputs.
1647
+ :obj:`dpnp.mod` : Calculate the element-wise remainder of division.
1617
1648
1618
1649
Example
1619
1650
-------
@@ -1718,8 +1749,8 @@ def subtract(
1718
1749
-----------
1719
1750
Parameters `x1` and `x2` are supported as either scalar, :class:`dpnp.ndarray`
1720
1751
or :class:`dpctl.tensor.usm_ndarray`, but both `x1` and `x2` can not be scalars at the same time.
1721
- Parameters `out`, ` where`, `dtype` and `subok` are supported with their default values.
1722
- Keyword arguments `` kwargs` ` are currently unsupported.
1752
+ Parameters `where`, `dtype` and `subok` are supported with their default values.
1753
+ Keyword arguments `kwargs` are currently unsupported.
1723
1754
Otherwise the function will be executed sequentially on CPU.
1724
1755
Input array data types are limited by supported DPNP :ref:`Data types`.
1725
1756
0 commit comments