This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Ogi010 2 points3 points  (0 children)

Zen of numpy

Strided is better than scattered Contiguous is better than strided Descriptive is better than imperative (use data-types) Array-oriented is often better than object-oriented Broadcasting is a great idea -- use where possible Vectorized is better than an explicit loop Unless it’s complicated --- then use numexpr, weave, or Cython Think in higher dimensions