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

Method _rc

numpy/lib/user_array.py:242–246  ·  view source on GitHub ↗
(self, a)

Source from the content-addressed store, hash-verified

240 return self._rc(self.array.astype(typecode))
241
242 def _rc(self, a):
243 if len(shape(a)) == 0:
244 return a
245 else:
246 return self.__class__(a)
247
248 def __array_wrap__(self, *args):
249 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
__div__Method · 0.95
__rdiv__Method · 0.95
__mod__Method · 0.95
__rmod__Method · 0.95
__divmod__Method · 0.95

Calls 1

shapeFunction · 0.90

Tested by

no test coverage detected