10
10
AxisLike ,
11
11
DTypeLike ,
12
12
NDArray ,
13
- OutArray ,
14
13
SubokLike ,
15
14
normalizer ,
16
15
)
@@ -42,11 +41,11 @@ def clip(
42
41
min : Optional [ArrayLike ] = None ,
43
42
max : Optional [ArrayLike ] = None ,
44
43
out : Optional [NDArray ] = None ,
45
- ) -> OutArray :
44
+ ):
46
45
# np.clip requires both a_min and a_max not None, while ndarray.clip allows
47
46
# one of them to be None. Follow the more lax version.
48
47
result = _impl .clip (a , min , max )
49
- return result , out
48
+ return result
50
49
51
50
52
51
@normalizer
@@ -79,9 +78,9 @@ def trace(
79
78
axis2 = 1 ,
80
79
dtype : DTypeLike = None ,
81
80
out : Optional [NDArray ] = None ,
82
- ) -> OutArray :
81
+ ):
83
82
result = _impl .trace (a , offset , axis1 , axis2 , dtype )
84
- return result , out
83
+ return result
85
84
86
85
87
86
@normalizer
@@ -134,9 +133,9 @@ def vdot(a: ArrayLike, b: ArrayLike, /):
134
133
135
134
136
135
@normalizer
137
- def dot (a : ArrayLike , b : ArrayLike , out : Optional [NDArray ] = None ) -> OutArray :
136
+ def dot (a : ArrayLike , b : ArrayLike , out : Optional [NDArray ] = None ):
138
137
result = _impl .dot (a , b )
139
- return result , out
138
+ return result
140
139
141
140
142
141
# ### sort and partition ###
@@ -233,9 +232,9 @@ def imag(a: ArrayLike):
233
232
234
233
235
234
@normalizer
236
- def round_ (a : ArrayLike , decimals = 0 , out : Optional [NDArray ] = None ) -> OutArray :
235
+ def round_ (a : ArrayLike , decimals = 0 , out : Optional [NDArray ] = None ):
237
236
result = _impl .round (a , decimals )
238
- return result , out
237
+ return result
239
238
240
239
241
240
around = round_
@@ -254,11 +253,11 @@ def sum(
254
253
keepdims = NoValue ,
255
254
initial = NoValue ,
256
255
where = NoValue ,
257
- ) -> OutArray :
256
+ ):
258
257
result = _impl .sum (
259
258
a , axis = axis , dtype = dtype , initial = initial , where = where , keepdims = keepdims
260
259
)
261
- return result , out
260
+ return result
262
261
263
262
264
263
@normalizer
@@ -270,11 +269,11 @@ def prod(
270
269
keepdims = NoValue ,
271
270
initial = NoValue ,
272
271
where = NoValue ,
273
- ) -> OutArray :
272
+ ):
274
273
result = _impl .prod (
275
274
a , axis = axis , dtype = dtype , initial = initial , where = where , keepdims = keepdims
276
275
)
277
- return result , out
276
+ return result
278
277
279
278
280
279
product = prod
@@ -289,9 +288,9 @@ def mean(
289
288
keepdims = NoValue ,
290
289
* ,
291
290
where = NoValue ,
292
- ) -> OutArray :
291
+ ):
293
292
result = _impl .mean (a , axis = axis , dtype = dtype , where = NoValue , keepdims = keepdims )
294
- return result , out
293
+ return result
295
294
296
295
297
296
@normalizer
@@ -304,11 +303,11 @@ def var(
304
303
keepdims = NoValue ,
305
304
* ,
306
305
where = NoValue ,
307
- ) -> OutArray :
306
+ ):
308
307
result = _impl .var (
309
308
a , axis = axis , dtype = dtype , ddof = ddof , where = where , keepdims = keepdims
310
309
)
311
- return result , out
310
+ return result
312
311
313
312
314
313
@normalizer
@@ -321,11 +320,11 @@ def std(
321
320
keepdims = NoValue ,
322
321
* ,
323
322
where = NoValue ,
324
- ) -> OutArray :
323
+ ):
325
324
result = _impl .std (
326
325
a , axis = axis , dtype = dtype , ddof = ddof , where = where , keepdims = keepdims
327
326
)
328
- return result , out
327
+ return result
329
328
330
329
331
330
@normalizer
@@ -335,9 +334,9 @@ def argmin(
335
334
out : Optional [NDArray ] = None ,
336
335
* ,
337
336
keepdims = NoValue ,
338
- ) -> OutArray :
337
+ ):
339
338
result = _impl .argmin (a , axis = axis , keepdims = keepdims )
340
- return result , out
339
+ return result
341
340
342
341
343
342
@normalizer
@@ -347,9 +346,9 @@ def argmax(
347
346
out : Optional [NDArray ] = None ,
348
347
* ,
349
348
keepdims = NoValue ,
350
- ) -> OutArray :
349
+ ):
351
350
result = _impl .argmax (a , axis = axis , keepdims = keepdims )
352
- return result , out
351
+ return result
353
352
354
353
355
354
@normalizer
@@ -360,9 +359,9 @@ def amax(
360
359
keepdims = NoValue ,
361
360
initial = NoValue ,
362
361
where = NoValue ,
363
- ) -> OutArray :
362
+ ):
364
363
result = _impl .max (a , axis = axis , initial = initial , where = where , keepdims = keepdims )
365
- return result , out
364
+ return result
366
365
367
366
368
367
max = amax
@@ -376,9 +375,9 @@ def amin(
376
375
keepdims = NoValue ,
377
376
initial = NoValue ,
378
377
where = NoValue ,
379
- ) -> OutArray :
378
+ ):
380
379
result = _impl .min (a , axis = axis , initial = initial , where = where , keepdims = keepdims )
381
- return result , out
380
+ return result
382
381
383
382
384
383
min = amin
@@ -387,9 +386,9 @@ def amin(
387
386
@normalizer
388
387
def ptp (
389
388
a : ArrayLike , axis : AxisLike = None , out : Optional [NDArray ] = None , keepdims = NoValue
390
- ) -> OutArray :
389
+ ):
391
390
result = _impl .ptp (a , axis = axis , keepdims = keepdims )
392
- return result , out
391
+ return result
393
392
394
393
395
394
@normalizer
@@ -400,9 +399,9 @@ def all(
400
399
keepdims = NoValue ,
401
400
* ,
402
401
where = NoValue ,
403
- ) -> OutArray :
402
+ ):
404
403
result = _impl .all (a , axis = axis , where = where , keepdims = keepdims )
405
- return result , out
404
+ return result
406
405
407
406
408
407
@normalizer
@@ -413,9 +412,9 @@ def any(
413
412
keepdims = NoValue ,
414
413
* ,
415
414
where = NoValue ,
416
- ) -> OutArray :
415
+ ):
417
416
result = _impl .any (a , axis = axis , where = where , keepdims = keepdims )
418
- return result , out
417
+ return result
419
418
420
419
421
420
@normalizer
@@ -430,9 +429,9 @@ def cumsum(
430
429
axis : AxisLike = None ,
431
430
dtype : DTypeLike = None ,
432
431
out : Optional [NDArray ] = None ,
433
- ) -> OutArray :
432
+ ):
434
433
result = _impl .cumsum (a , axis = axis , dtype = dtype )
435
- return result , out
434
+ return result
436
435
437
436
438
437
@normalizer
@@ -441,9 +440,9 @@ def cumprod(
441
440
axis : AxisLike = None ,
442
441
dtype : DTypeLike = None ,
443
442
out : Optional [NDArray ] = None ,
444
- ) -> OutArray :
443
+ ):
445
444
result = _impl .cumprod (a , axis = axis , dtype = dtype )
446
- return result , out
445
+ return result
447
446
448
447
449
448
cumproduct = cumprod
@@ -460,7 +459,7 @@ def quantile(
460
459
keepdims = False ,
461
460
* ,
462
461
interpolation = None ,
463
- ) -> OutArray :
462
+ ):
464
463
result = _impl .quantile (
465
464
a ,
466
465
q ,
@@ -470,7 +469,7 @@ def quantile(
470
469
keepdims = keepdims ,
471
470
interpolation = interpolation ,
472
471
)
473
- return result , out
472
+ return result
474
473
475
474
476
475
@normalizer (promote_scalar_result = True )
@@ -484,7 +483,7 @@ def percentile(
484
483
keepdims = False ,
485
484
* ,
486
485
interpolation = None ,
487
- ) -> OutArray :
486
+ ):
488
487
result = _impl .percentile (
489
488
a ,
490
489
q ,
@@ -494,7 +493,7 @@ def percentile(
494
493
keepdims = keepdims ,
495
494
interpolation = interpolation ,
496
495
)
497
- return result , out
496
+ return result
498
497
499
498
500
499
def median (
0 commit comments