numpy.linalg.outer#
- linalg.outer(x1, x2, /)[source]#
Compute the outer product of two vectors.
This function is Array API compatible. Compared to
np.outer
it accepts 1-dimensional inputs only.- Parameters:
- x1(M,) array_like
One-dimensional input array of size
N
. Must have a numeric data type.- x2(N,) array_like
One-dimensional input array of size
M
. Must have a numeric data type.
- Returns:
- out(M, N) ndarray
out[i, j] = a[i] * b[j]
See also