Can anyone explain the 8th quiz question to me? I don’t understand how to vectorize it. Thank you!
You might want to see the section on broadcasting:
As far as the quiz question is concerned, assume that you’ve generated two matrices, a
and b
of the given shapes. Now, how can you compute c without using the for loops as shown in the question?