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

Method __array__

numpy/random/tests/test_regression.py:142–143  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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

no test coverage detected