Nuts and Bolts of NumPy Optimization Part 1: Understanding Vectorization and Broadcasting
In Part 1 of our series on writing efficient code with NumPy we cover why loops are slow in Python, and how to replace them with vectorized code. We also dig deep into how broadcasting works, along with a few practical examples.