In linear algebra, the outer product of two coordinate vectors is a matrix. If the two vectors have dimensions nandm, then their outer product is an n × m matrix. More generally, given two tensors, their outer product is a tensor. The outer product of tensors is also referred to as their tensor product and can be used to define the tensor algebra. The outer product contrasts with
the dot product, which takes as input a pair of coordinate vectors and produces a scalar.
the Kronecker product, which takes as input a pair of matrices and produces a matrix
Given two vectors their outer product is defined as the matrixA obtained by multiplying each element ofu by each element of v: Or in index notation: The outer product is equivalent to a matrix multiplication uvT, provided that u is represented as a column vector and v as a column vector. For instance, if and, then For complex vectors, it is often useful to take the conjugate transpose of v, denoted or :
If, then one can take the matrix product the other way, yielding a scalar : which is the standard inner product for Euclidean vector spaces, better known as the dot product. The inner product is the trace of the outer product. Unlike the inner product, the outer product is not commutative.
The outer product of tensors
Given two tensors u, v with dimensions and their outer product is a tensor with dimensions and entries For example, if A is of order 3 with dimensions and B is of order 2 with dimensions, their outer product C is of order 5 with dimensions. If A has a component and B has a component, then the component of C formed by the outer product is.
Connection with the Kronecker product
The outer product and Kronecker product are closely related; in fact the same symbol is commonly used to denote both operations. If and, we have: In the case of column vectors, the Kronecker product can be viewed as a form of vectorization of the outer product. In particular, for and two column vectors, we can write: Note that the order of the vectors is reversed in the right side of the equation. Another, similar, identity is that further highlights the similarity between the operations are where we do not need to flip the order of vectors. The middle expression uses matrix multiplication, where the vectors are considered as column/row matrices.
Properties
The outer product of vectors satisfies the following properties: The outer product of tensors satisfies the additional associativity property:
Rank of an outer product
If u and v are both nonzero then the outer product matrix uvT always has matrix rank 1. Indeed, the columns of the outer product are all proportional to the first column. Thus they are all linearly dependent on that one column, hence the matrix is of rank one.
Definition (abstract)
Let V and W be two vector spaces. The outer product of and is the element. If V is an inner product space then it is possible to define the outer product as a linear map V → W. In this case the linear map is an element of the dual space of V. The outer product V → W is then given by This shows why a conjugate transpose of v is commonly taken in the complex case.
In some programming languages, given a two-argument function f, the outer product of f and two one-dimensional arrays A and B is a two-dimensional array C such that C = f. This is syntactically represented in various ways: in APL, as the infix binary operator∘.f; in J, as the postfix adverb f/; in R, as the function outer; in Mathematica, as Outer. In MATLAB, the function kron is used for this product. These often generalize to multi-dimensional arguments, and more than two arguments. In the Python library NumPy, the outer product can be computed with function np.outer. In contrast, np.kron results in a flat array. The outer product of multidimensional arrays can be computed using np.multiply.outer.
Applications
As the outer product is closely related to the Kronecker product, some of the applications of the Kronecker product use outer products. Some of these applications to quantum theory, signal processing, and image compression are found in chapter 3, "Applications", in a book by Willi-Hans Steeb and Yorick Hardy.
Spinors
Suppose s, t, w, z ∈ ℂ so that and are in ℂ2. Then the outer product of these complex 2-vectors is an element of M, the 2 × 2 complex matrices: In the theory ofspinors in three dimensions, these matrices are associated with isotropic vectors due to this null property. Élie Cartan described this construction in 1937 but it was introduced by Wolfgang Pauli in 1927 so that M has come to be called Pauli algebra.
Concepts
The block form of outer products is useful in classification. Concept analysis is a study that depends on certain outer products: When a vector has only zeros and ones as entries it is called a logical vector, a special case of a logical matrix. The logical operation and takes the place of multiplication. The outer product of two logical vectors and is given by the logical matrix. This type of matrix is used in the study of binary relations and is called a rectangular relation or a cross-vector.