@@ -347,22 +347,22 @@ def __gt__(self, other):
347
347
348
348
def __iadd__ (self , other ):
349
349
"""Return ``self+=value``."""
350
- dpnp .add (self , other , out = self )
350
+ dpnp .add . _inplace_op (self , other )
351
351
return self
352
352
353
353
def __iand__ (self , other ):
354
354
"""Return ``self&=value``."""
355
- dpnp .bitwise_and (self , other , out = self )
355
+ dpnp .bitwise_and . _inplace_op (self , other )
356
356
return self
357
357
358
358
def __ifloordiv__ (self , other ):
359
359
"""Return ``self//=value``."""
360
- dpnp .floor_divide (self , other , out = self )
360
+ dpnp .floor_divide . _inplace_op (self , other )
361
361
return self
362
362
363
363
def __ilshift__ (self , other ):
364
364
"""Return ``self<<=value``."""
365
- dpnp .left_shift (self , other , out = self )
365
+ dpnp .left_shift . _inplace_op (self , other )
366
366
return self
367
367
368
368
def __imatmul__ (self , other ):
@@ -381,7 +381,7 @@ def __imatmul__(self, other):
381
381
axes = [(- 2 , - 1 ), (- 2 , - 1 ), (- 2 , - 1 )]
382
382
383
383
try :
384
- dpnp .matmul (self , other , out = self , axes = axes )
384
+ dpnp .matmul (self , other , out = self , dtype = self . dtype , axes = axes )
385
385
except AxisError :
386
386
# AxisError should indicate that the axes argument didn't work out
387
387
# which should mean the second operand not being 2 dimensional.
@@ -393,12 +393,12 @@ def __imatmul__(self, other):
393
393
394
394
def __imod__ (self , other ):
395
395
"""Return ``self%=value``."""
396
- dpnp .remainder (self , other , out = self )
396
+ dpnp .remainder . _inplace_op (self , other )
397
397
return self
398
398
399
399
def __imul__ (self , other ):
400
400
"""Return ``self*=value``."""
401
- dpnp .multiply (self , other , out = self )
401
+ dpnp .multiply . _inplace_op (self , other )
402
402
return self
403
403
404
404
def __index__ (self ):
@@ -416,34 +416,34 @@ def __invert__(self):
416
416
417
417
def __ior__ (self , other ):
418
418
"""Return ``self|=value``."""
419
- dpnp .bitwise_or (self , other , out = self )
419
+ dpnp .bitwise_or . _inplace_op (self , other )
420
420
return self
421
421
422
422
def __ipow__ (self , other ):
423
423
"""Return ``self**=value``."""
424
- dpnp .power (self , other , out = self )
424
+ dpnp .power . _inplace_op (self , other )
425
425
return self
426
426
427
427
def __irshift__ (self , other ):
428
428
"""Return ``self>>=value``."""
429
- dpnp .right_shift (self , other , out = self )
429
+ dpnp .right_shift . _inplace_op (self , other )
430
430
return self
431
431
432
432
def __isub__ (self , other ):
433
433
"""Return ``self-=value``."""
434
- dpnp .subtract (self , other , out = self )
434
+ dpnp .subtract . _inplace_op (self , other )
435
435
return self
436
436
437
437
# '__iter__',
438
438
439
439
def __itruediv__ (self , other ):
440
440
"""Return ``self/=value``."""
441
- dpnp .true_divide (self , other , out = self )
441
+ dpnp .true_divide . _inplace_op (self , other )
442
442
return self
443
443
444
444
def __ixor__ (self , other ):
445
445
"""Return ``self^=value``."""
446
- dpnp .bitwise_xor (self , other , out = self )
446
+ dpnp .bitwise_xor . _inplace_op (self , other )
447
447
return self
448
448
449
449
def __le__ (self , other ):
0 commit comments