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

Method __array__

numpy/ma/tests/test_subclassing.py:167–168  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

165 return f"{self.__class__.__name__}(\n{self._array}\n{self.attrs}\n)"
166
167 def __array__(self):
168 return np.asarray(self._array)
169
170 def __array_ufunc__(self, ufunc, method, *inputs, **kwargs):
171 if method == '__call__':

Callers 10

tolistMethod · 0.45
AMethod · 0.45
A1Method · 0.45
__call__Method · 0.45
viewMethod · 0.45
__getitem__Method · 0.45
__next__Method · 0.45
__getitem__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected