MCPcopy Create free account
hub / github.com/numpy/numpy / __add__

Method __add__

numpy/core/tests/test_einsum.py:124–130  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

122 self._destruct = destruct
123
124 def __add__(self, other):
125 tmp = self._val + other._val
126 if tmp >= self._destruct:
127 raise CustomException
128 else:
129 self._val = tmp
130 return self
131
132 def __radd__(self, other):
133 if other == 0:

Callers 1

__radd__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected