numpy.outer# numpy.outer(a, b, out=None)[source]# Compute the outer product of two vectors. Given two vectors a and b of length M and N, respectively, the outer product [1] is: [[a_0*b_0 a_0*b_1 ... a_0*b_{N-1} ] [a_1*b_0 . [ ... . [a_{M-1}*b_0 a_{M-1}*b_{N-1} ]] Parameters: a(M,) array_like