Open vstadnytskyi opened 4 years ago
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?
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).
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?