NumPy Broadcasting and Vectorization | Unidata Python Training
Broadcasting is a useful NumPy tool that allows us to perform operations between arrays with different shapes, provided that they are compatible with each other in certain ways. To start, we can create an array below and add 5 to it: In : import numpy as np a = np. array ([10, 20, 30, 40]) a + 5.
DA: 50 PA: 57 MOZ Rank: 57