Tag Archives: Creating array views and copies

Creating array views and copies

You might think that views means just to view something and nothing more, like the ravel() example on an array. In NumPy, views are NOT read-only!

That’s why, having a replica of the shared array view is very important. A slice of an array will produce a view; if you assign the slice to a variable and alter the underlying array then the value of the variable will change.


Continue reading