|
65 | 65 | DPNPI0, |
66 | 66 | DPNPAngle, |
67 | 67 | DPNPBinaryFunc, |
| 68 | + DPNPBinaryFuncOutKw, |
68 | 69 | DPNPFix, |
69 | 70 | DPNPImag, |
70 | 71 | DPNPReal, |
@@ -3244,6 +3245,16 @@ def interp(x, xp, fp, left=None, right=None, period=None): |
3244 | 3245 |
|
3245 | 3246 | Default: ``"K"``. |
3246 | 3247 |
|
| 3248 | +Warning |
| 3249 | +------- |
| 3250 | +Passing more than 2 positional arguments is deprecated. |
| 3251 | +If you meant to use the third argument as an output, |
| 3252 | +use the `out` keyword argument instead. |
| 3253 | +
|
| 3254 | +For example, ``dpnp.maximum(a, b, c)`` will emit a ``DeprecationWarning``. |
| 3255 | +Always pass the output array as the keyword argument instead, that is |
| 3256 | +``dpnp.maximum(a, b, out=c)``. |
| 3257 | +
|
3247 | 3258 | Returns |
3248 | 3259 | ------- |
3249 | 3260 | out : dpnp.ndarray |
@@ -3297,7 +3308,7 @@ def interp(x, xp, fp, left=None, right=None, period=None): |
3297 | 3308 |
|
3298 | 3309 | """ |
3299 | 3310 |
|
3300 | | -maximum = DPNPBinaryFunc( |
| 3311 | +maximum = DPNPBinaryFuncOutKw( |
3301 | 3312 | "maximum", |
3302 | 3313 | ti._maximum_result_type, |
3303 | 3314 | ti._maximum, |
@@ -3341,6 +3352,16 @@ def interp(x, xp, fp, left=None, right=None, period=None): |
3341 | 3352 | An array containing the element-wise minima. The data type of |
3342 | 3353 | the returned array is determined by the Type Promotion Rules. |
3343 | 3354 |
|
| 3355 | +Warning |
| 3356 | +------- |
| 3357 | +Passing more than 2 positional arguments is deprecated. |
| 3358 | +If you meant to use the third argument as an output, |
| 3359 | +use the `out` keyword argument instead. |
| 3360 | +
|
| 3361 | +For example, ``dpnp.minimum(a, b, c)`` will emit a ``DeprecationWarning``. |
| 3362 | +Always pass the output array as the keyword argument instead, that is |
| 3363 | +``dpnp.minimum(a, b, out=c)``. |
| 3364 | +
|
3344 | 3365 | Limitations |
3345 | 3366 | ----------- |
3346 | 3367 | Parameters `where` and `subok` are supported with their default values. |
@@ -3387,7 +3408,7 @@ def interp(x, xp, fp, left=None, right=None, period=None): |
3387 | 3408 | array(-inf) |
3388 | 3409 | """ |
3389 | 3410 |
|
3390 | | -minimum = DPNPBinaryFunc( |
| 3411 | +minimum = DPNPBinaryFuncOutKw( |
3391 | 3412 | "minimum", |
3392 | 3413 | ti._minimum_result_type, |
3393 | 3414 | ti._minimum, |
|
0 commit comments