Reputation: 1199
If I want to implement this function:
I know I can write a loop like this:
result = 0
for i in range(len(x)):
for j in range(len(y)):
result += x[i] * y[j]
But what if I want to use numpy to complete, how can I do?
Upvotes: 0
Views: 141