MCPcopy Index your code
hub / github.com/numpy/numpy / M

Class M

numpy/random/tests/test_regression.py:141–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139 assert_array_equal(orig, np.arange(3).view(N))
140
141 class M:
142 a = np.arange(5)
143
144 def __array__(self, dtype=None, copy=None):
145 return self.a
146
147 rng = np.random.RandomState(1)
148 m = M()

Callers 1

Calls

no outgoing calls

Tested by 1