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

Class with_wrap

numpy/core/tests/test_umath.py:2935–2943  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2933 def test_wrap(self):
2934
2935 class with_wrap:
2936 def __array__(self):
2937 return np.zeros(1)
2938
2939 def __array_wrap__(self, arr, context):
2940 r = with_wrap()
2941 r.arr = arr
2942 r.context = context
2943 return r
2944
2945 a = with_wrap()
2946 x = ncu.minimum(a, a)

Callers 5

__array_wrap__Method · 0.85
test_wrapMethod · 0.85
test_old_wrapMethod · 0.85
test_default_prepareMethod · 0.85

Calls

no outgoing calls

Tested by 5

__array_wrap__Method · 0.68
test_wrapMethod · 0.68
test_old_wrapMethod · 0.68
test_default_prepareMethod · 0.68