numpy.outer()
numpy.outer
-
numpy.outer(a, b, out=None)
[source] -
Compute the outer product of two vectors.
Given two vectors,
a = [a0, a1, ..., aM]
andb = [b0, b1, ..., bN]
, the outer product [R55] is:[[a0*b0 a0*b1 ... a0*bN ] [a1*b0 . [ ... . [aM*b0 aM*bN ]]
Parameters: a : (M,) array_like
First input vector. Input is flattened if