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

Class M

numpy/random/tests/test_regression.py:139–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137 assert_array_equal(orig, np.arange(3).view(N))
138
139 class M:
140 a = np.arange(5)
141
142 def __array__(self):
143 return self.a
144
145 np.random.seed(1)
146 m = M()

Callers 1

Calls

no outgoing calls

Tested by 1