Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question on the content of the book #97

Open
vstadnytskyi opened this issue Oct 22, 2020 · 1 comment
Open

Question on the content of the book #97

vstadnytskyi opened this issue Oct 22, 2020 · 1 comment

Comments

@vstadnytskyi
Copy link

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?

@rougier
Copy link
Owner

rougier commented Oct 22, 2020

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants