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

Class DummyArray

numpy/lib/_stride_tricks_impl.py:15–22  ·  view source on GitHub ↗

Dummy object that just exists to hang __array_interface__ dictionaries and possibly keep alive a reference to a base array.

Source from the content-addressed store, hash-verified

13
14
15class DummyArray:
16 """Dummy object that just exists to hang __array_interface__ dictionaries
17 and possibly keep alive a reference to a base array.
18 """
19
20 def __init__(self, interface, base=None):
21 self.__array_interface__ = interface
22 self.base = base
23
24
25def _maybe_view_as_subclass(original_array, new_array):

Callers 3

get_viewMethod · 0.90
view_element_first_byteFunction · 0.90
as_stridedFunction · 0.70

Calls

no outgoing calls

Tested by 2

get_viewMethod · 0.72
view_element_first_byteFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…