You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I saw that there was a new exercise in the NumPy lecture (Exercise 9.4), but I thought maybe it would be more useful for illustrating broadcasting if the reader is asked to use compare the speeds of broadcasting vs. using the for-loop they write.
The text was updated successfully, but these errors were encountered:
adding np.random.seed(123) here so the output is the same for all readers
adding a second part to the exercise where 4 is replaced by a large number and the reader is asked to time a for loop against the broadcast implementation.
I saw that there was a new exercise in the NumPy lecture (Exercise 9.4), but I thought maybe it would be more useful for illustrating broadcasting if the reader is asked to use compare the speeds of broadcasting vs. using the for-loop they write.
The text was updated successfully, but these errors were encountered: