MCPcopy
hub / github.com/numpy/numpy / _rc

Method _rc

numpy/lib/_user_array_impl.py:265–269  ·  view source on GitHub ↗
(self, a)

Source from the content-addressed store, hash-verified

263 return self._rc(self.array.astype(typecode))
264
265 def _rc(self, a):
266 if len(shape(a)) == 0:
267 return a
268 else:
269 return self.__class__(a)
270
271 def __array_wrap__(self, *args):
272 return self.__class__(args[0])

Callers 15

__getitem__Method · 0.95
__abs__Method · 0.95
__neg__Method · 0.95
__add__Method · 0.95
__sub__Method · 0.95
__rsub__Method · 0.95
__mul__Method · 0.95
__mod__Method · 0.95
__rmod__Method · 0.95
__divmod__Method · 0.95
__rdivmod__Method · 0.95
__pow__Method · 0.95

Calls 1

shapeFunction · 0.90

Tested by

no test coverage detected