|
64 | 64 | DPNPI0, |
65 | 65 | DPNPAngle, |
66 | 66 | DPNPBinaryFunc, |
| 67 | + DPNPBinaryFuncOutKw, |
67 | 68 | DPNPFix, |
68 | 69 | DPNPImag, |
69 | 70 | DPNPReal, |
@@ -3178,6 +3179,16 @@ def interp(x, xp, fp, left=None, right=None, period=None): |
3178 | 3179 |
|
3179 | 3180 | Default: ``"K"``. |
3180 | 3181 |
|
| 3182 | +Warning |
| 3183 | +------- |
| 3184 | +Passing more than 2 positional arguments is deprecated. |
| 3185 | +If you meant to use the third argument as an output, |
| 3186 | +use the `out` keyword argument instead. |
| 3187 | +
|
| 3188 | +For example, ``dpnp.maximum(a, b, c)`` will emit a ``DeprecationWarning``. |
| 3189 | +Always pass the output array as the keyword argument instead, that is |
| 3190 | +``dpnp.maximum(a, b, out=c)``. |
| 3191 | +
|
3181 | 3192 | Returns |
3182 | 3193 | ------- |
3183 | 3194 | out : dpnp.ndarray |
@@ -3231,7 +3242,7 @@ def interp(x, xp, fp, left=None, right=None, period=None): |
3231 | 3242 |
|
3232 | 3243 | """ |
3233 | 3244 |
|
3234 | | -maximum = DPNPBinaryFunc( |
| 3245 | +maximum = DPNPBinaryFuncOutKw( |
3235 | 3246 | "maximum", |
3236 | 3247 | ti._maximum_result_type, |
3237 | 3248 | ti._maximum, |
@@ -3275,6 +3286,16 @@ def interp(x, xp, fp, left=None, right=None, period=None): |
3275 | 3286 | An array containing the element-wise minima. The data type of |
3276 | 3287 | the returned array is determined by the Type Promotion Rules. |
3277 | 3288 |
|
| 3289 | +Warning |
| 3290 | +------- |
| 3291 | +Passing more than 2 positional arguments is deprecated. |
| 3292 | +If you meant to use the third argument as an output, |
| 3293 | +use the `out` keyword argument instead. |
| 3294 | +
|
| 3295 | +For example, ``dpnp.minimum(a, b, c)`` will emit a ``DeprecationWarning``. |
| 3296 | +Always pass the output array as the keyword argument instead, that is |
| 3297 | +``dpnp.minimum(a, b, out=c)``. |
| 3298 | +
|
3278 | 3299 | Limitations |
3279 | 3300 | ----------- |
3280 | 3301 | Parameters `where` and `subok` are supported with their default values. |
@@ -3321,7 +3342,7 @@ def interp(x, xp, fp, left=None, right=None, period=None): |
3321 | 3342 | array(-inf) |
3322 | 3343 | """ |
3323 | 3344 |
|
3324 | | -minimum = DPNPBinaryFunc( |
| 3345 | +minimum = DPNPBinaryFuncOutKw( |
3325 | 3346 | "minimum", |
3326 | 3347 | ti._minimum_result_type, |
3327 | 3348 | ti._minimum, |
|
0 commit comments