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

Method __array_wrap__

numpy/core/tests/test_umath.py:3062–3066  ·  view source on GitHub ↗
(self, arr, context)

Source from the content-addressed store, hash-verified

3060 return np.zeros(1)
3061
3062 def __array_wrap__(self, arr, context):
3063 r = type(self)()
3064 r.arr = arr
3065 r.context = context
3066 return r
3067
3068 class B(A):
3069 __array_priority__ = 20.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected