from-python-to-numpy icon indicating copy to clipboard operation
from-python-to-numpy copied to clipboard

Question on the content of the book

Open vstadnytskyi opened this issue 5 years ago • 1 comments

This is great stuff.

https://www.labri.fr/perso/nrougier/from-python-to-numpy/#memory-layout

you wrote "...Said differently, an array is mostly a contiguous block of memory..."

Why would you the word "mostly". Is it because OS might allocate non-contigues chunk of memory?

vstadnytskyi avatar Oct 22 '20 12:10 vstadnytskyi

I think I was referring to view on array. For example if you have a array Z and create a view Z[::2], this new array (which is merely a view on Z in not contiguous).

rougier avatar Oct 22 '20 16:10 rougier