Return the outer product of vectors A (length m) and B (length n): an (m, n) matrix where entry (i, j) equals A[i] * B[j]. Use einsum notation rather than broadcasting it out by hand.
A
m
B
n
(m, n)
(i, j)
A[i] * B[j]
solve(...)