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

Method __radd__

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

Source from the content-addressed store, hash-verified

130 return self
131
132 def __radd__(self, other):
133 if other == 0:
134 return self
135 else:
136 return self.__add__(other)
137
138 def __mul__(self, other):
139 tmp = self._val * other._val

Callers 1

test_char_raddMethod · 0.45

Calls 1

__add__Method · 0.95

Tested by

no test coverage detected