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

Method _unwrap

numpy/core/tests/test_umath.py:3611–3620  ·  view source on GitHub ↗
(self, objs)

Source from the content-addressed store, hash-verified

3609 class OverriddenArrayOld(np.ndarray):
3610
3611 def _unwrap(self, objs):
3612 cls = type(self)
3613 result = []
3614 for obj in objs:
3615 if isinstance(obj, cls):
3616 obj = np.array(obj)
3617 elif type(obj) != np.ndarray:
3618 return NotImplemented
3619 result.append(obj)
3620 return result
3621
3622 def __array_ufunc__(self, ufunc, method, *inputs, **kwargs):
3623

Callers 2

__array_ufunc__Method · 0.95
__array_ufunc__Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected