@@ -1517,54 +1517,30 @@ def __itruediv__(self, other): # To get called on true division with assignment
1517
1517
self ._data [: self ._size ] /= other
1518
1518
return self
1519
1519
1520
- def __irtruediv__ (self , other ): # To get called on true division with assignment e.g. a /=b.
1521
- if isinstance (other , DynamicVector ):
1522
- other = other .view
1523
- self ._data [: self ._size ] /= other
1524
- return self
1525
-
1526
1520
def __ifloordiv__ (self , other ): # To get called on integer division with assignment e.g. a //=b.
1527
1521
if isinstance (other , DynamicVector ):
1528
1522
other = other .view
1529
1523
self ._data [: self ._size ] //= other
1530
1524
return self
1531
1525
1532
- def __irfloordiv__ (self , other ): # To get called on integer division with assignment e.g. a //=b.
1533
- if isinstance (other , DynamicVector ):
1534
- other = other .view
1535
- self ._data [: self ._size ] //= other
1536
- return self
1537
-
1538
1526
def __imod__ (self , other ): # To get called on modulo with assignment e.g. a%=b.
1539
1527
if isinstance (other , DynamicVector ):
1540
1528
other = other .view
1541
1529
self ._data [: self ._size ] %= other
1542
1530
return self
1543
1531
1544
- def __irmod__ (self , other ): # To get called on modulo with assignment e.g. a%=b.
1545
- if isinstance (other , DynamicVector ):
1546
- other = other .view
1547
- self ._data [: self ._size ] %= other
1548
- return self
1549
-
1550
1532
def __ipow__ (self , other ): # To get called on exponents with assignment e.g. a **=b.
1551
1533
if isinstance (other , DynamicVector ):
1552
1534
other = other .view
1553
1535
self ._data [: self ._size ] **= other
1554
1536
return self
1555
1537
1556
- def __irpow__ (self , other ): # To get called on exponents with assignment e.g. a **=b.
1557
- if isinstance (other , DynamicVector ):
1558
- other = other .view
1559
- self ._data [: self ._size ] **= other
1560
- return self
1561
-
1562
- def __int__ (self ): # To get called by built-int int() method to convert a type to an int.
1538
+ def __int__ (self ): # To get called by built-in int() method to convert a type to an int.
1563
1539
res = DynamicVector (int , self ._cap )
1564
1540
res .extend (self .view )
1565
1541
return res
1566
1542
1567
- def __float__ (self ): # To get called by built-int float() method to convert a type to float.
1543
+ def __float__ (self ): # To get called by built-in float() method to convert a type to float.
1568
1544
res = DynamicVector (float , self ._cap )
1569
1545
res .extend (self .view )
1570
1546
return res
0 commit comments