The following code snippet demonstrates the way to determine whether a Numpy array points to an actual storage in memory, or holding a view of another array.
1 | x = numpy.random.rand(3, 5) |
The following code snippet demonstrates the way to determine whether a Numpy array points to an actual storage in memory, or holding a view of another array.
1 | x = numpy.random.rand(3, 5) |