numpy.memmap.base
attribute
- memmap.base
Base object if memory is from some other object.
Examples
The base of an array that owns its memory is None:
>>> import numpy as np >>> x = np.
attribute
Base object if memory is from some other object.
The base of an array that owns its memory is None:
>>> import numpy as np
>>> x = np.
Slicing creates a view, whose memory is shared with x:
>>> y = x[2:]
>>> y.base is x
True