Lines Matching refs:other

10 # documentation and/or other materials provided with the distribution;
78 def __add__(self, other):
79 return BinaryProxy(operator.__add__, self, other)
80 def __sub__(self, other):
81 return BinaryProxy(operator.__sub__, self, other)
82 def __mul__(self, other):
83 return BinaryProxy(operator.__mul__, self, other)
84 def __div__(self, other):
85 return BinaryProxy(operator.__div__, self, other)
86 def __truediv__(self, other):
87 return BinaryProxy(operator.__truediv__, self, other)
88 def __floordiv__(self, other):
89 return BinaryProxy(operator.__floordiv__, self, other)
91 def __radd__(self, other):
92 return BinaryProxy(operator.__add__, other, self)
93 def __rsub__(self, other):
94 return BinaryProxy(operator.__sub__, other, self)
95 def __rmul__(self, other):
96 return BinaryProxy(operator.__mul__, other, self)
97 def __rdiv__(self, other):
98 return BinaryProxy(operator.__div__, other, self)
99 def __rtruediv__(self, other):
100 return BinaryProxy(operator.__truediv__, other, self)
101 def __rfloordiv__(self, other):
102 return BinaryProxy(operator.__floordiv__, other, self)
451 def comparable(self, other):
454 def __eq__(self, other):
455 return self.sums == other.sums and self.squares == other.squares and \
456 self.samples == other.samples
458 def __isub__(self, other):
459 self.sums -= other.sums
460 self.squares -= other.squares
461 self.samples -= other.samples
464 def __iadd__(self, other):
465 self.sums += other.sums
466 self.squares += other.squares
467 self.samples += other.samples
470 def __itruediv__(self, other):
471 if not other:
473 self.sums /= other
474 self.squares /= other
475 self.samples /= other
530 def comparable(self, other):
531 return self.min == other.min and self.max == other.max and \
532 self.bsize == other.bsize and self.size == other.size
534 def __eq__(self, other):
535 return self.sums == other.sums and self.squares == other.squares and \
536 self.samples == other.samples
538 def __isub__(self, other):
539 self.sums -= other.sums
540 self.squares -= other.squares
541 self.samples -= other.samples
543 if other.samples:
544 self.minval = min(self.minval, other.minval)
545 self.maxval = max(self.maxval, other.maxval)
547 self.vec = map(lambda x,y: x - y, self.vec, other.vec)
551 def __iadd__(self, other):
552 if not self.samples and other.samples:
553 self = other
556 self.sums += other.sums
557 self.squares += other.squares
558 self.samples += other.samples
560 if other.samples:
561 self.minval = min(self.minval, other.minval)
562 self.maxval = max(self.maxval, other.maxval)
563 self.under += other.under
564 self.vec = map(lambda x,y: x + y, self.vec, other.vec)
565 self.over += other.over
568 def __itruediv__(self, other):
569 if not other:
571 self.sums /= other
572 self.squares /= other
573 self.samples /= other
576 self.under /= other
578 self.vec[i] /= other
579 self.over /= other
590 def comparable(self, other):
591 return self.name == other.name and \
592 self.dist.compareable(other.dist)
594 def __eq__(self, other):
595 return self.dist == other.dist
597 def __isub__(self, other):
598 self.dist -= other.dist
601 def __iadd__(self, other):
602 self.dist += other.dist
605 def __itruediv__(self, other):
606 if not other:
608 self.dist /= other
659 def comparable(self, other):
660 return self.name == other.name and \
663 other.dist))
665 def __eq__(self, other):
666 return alltrue(map(lambda x, y : x == y, self.dist, other.dist))
668 def __isub__(self, other):
670 isinstance(other.dist, (list, tuple)):
671 for sd,od in zip(self.dist, other.dist):
674 self.dist -= other.dist
677 def __iadd__(self, other):
679 isinstance(other.dist, (list, tuple)):
680 for sd,od in zip(self.dist, other.dist):
683 self.dist += other.dist
686 def __itruediv__(self, other):
687 if not other:
691 dist /= other
693 self.dist /= other
730 def comparable(self, other):
731 return self.name == other.name and self.x == other.x and \
732 self.y == other.y
734 def __eq__(self, other):
737 def __isub__(self, other):
740 def __iadd__(self, other):
743 def __itruediv__(self, other):
744 if not other: