Using einsum notation, return the outer product of vectors A and B:
A
B
(len(A), len(B))
[i, j]
A[i] * B[j]
Input
A = [1. 2. 3.] B = [4. 5.]
Output
[[ 4. 5.] [ 8. 10.] [12. 15.]]
This one's part of Premium. Unlock the full NumPy track plus every other premium problem on the site.
solve(...)