All Topics  
Tensor product

 

   Email Print
   Bookmark   Link






 

Tensor product



 
 
In mathematics
Mathematics

Mathematics is the study of quantity, structure, space, change, and related topics of pattern and form. Mathematicians seek out patterns whether found in numbers, space, natural science, computers, imaginary abstractions, or elsewhere....
, the tensor product, denoted by , may be applied in different contexts to vector
Vector space

File:Vector addition ans scaling.pngA vector space is a mathematical structure formed by a collection of vectors: objects that may be Vector addition together and Scalar multiplication by numbers, called scalar s in this context....
s, matrices
Matrix (mathematics)

In mathematics, a matrix is a rectangular array of numbers, as shown at the right. In addition to a number of elementary, entrywise operations such as matrix addition a key notion is matrix multiplication....
, tensor
Tensor

A tensor is an object which extends the notion of Scalar , Vector , and Matrix . The term has slightly different meanings in mathematics and physics....
s, vector space
Vector space

File:Vector addition ans scaling.pngA vector space is a mathematical structure formed by a collection of vectors: objects that may be Vector addition together and Scalar multiplication by numbers, called scalar s in this context....
s, algebras
Algebra over a field

In mathematics, an algebra over a field is an algebraic structure consisting of a vector space together with an Binary operation, usually called multiplication, that combines any two vectors to form a third vector....
, topological vector space
Topological vector space

In mathematics, a topological vector space is one of the basic structures investigated in functional analysis. As the name suggests the space blends a topology with the algebraic concept of a vector space....
s, and module
Module (mathematics)

In abstract algebra, the concept of a module over a ring is a generalization of the notion of vector space, where instead of requiring the scalar to lie in a field , the "scalars" may lie in an arbitrary ring....
s. In each case the significance of the symbol is the same: the most general bilinear operation
Bilinear operator

In mathematics, a bilinear map is a function of two arguments that is linear map in each. An example of such a map is multiplication of integers....
. In some contexts, this product is also referred to as outer product
Outer product

In linear algebra, the outer product typically refers to the Tensor product of two vector . The result of applying the outer product to a pair of vectors is a matrix ....
. The term "tensor product" is also used in relation to monoidal categories
Monoidal category

In mathematics, a monoidal category is a category C equipped with a bifunctorwhich is associative , and an object I which is both a left identity and right identity for ?, ....
.

Example:

Resultant rank = 4, resultant dimension = 16.

Here rank denotes the tensor rank (number of requisite indices), while dimension counts the number of degrees of freedom in the resulting array; the matrix rank is 1.

A representative case is the Kronecker product
Kronecker product

In mathematics, the Kronecker product, denoted by , is an operation on two matrix of arbitrary size resulting in a block matrix. It is a special case of a tensor product....
 of any two rectangular arrays, considered as matrices.






Discussion
Ask a question about 'Tensor product'
Start a new discussion about 'Tensor product'
Answer questions from other users
Full Discussion Forum



Encyclopedia


In mathematics
Mathematics

Mathematics is the study of quantity, structure, space, change, and related topics of pattern and form. Mathematicians seek out patterns whether found in numbers, space, natural science, computers, imaginary abstractions, or elsewhere....
, the tensor product, denoted by , may be applied in different contexts to vector
Vector space

File:Vector addition ans scaling.pngA vector space is a mathematical structure formed by a collection of vectors: objects that may be Vector addition together and Scalar multiplication by numbers, called scalar s in this context....
s, matrices
Matrix (mathematics)

In mathematics, a matrix is a rectangular array of numbers, as shown at the right. In addition to a number of elementary, entrywise operations such as matrix addition a key notion is matrix multiplication....
, tensor
Tensor

A tensor is an object which extends the notion of Scalar , Vector , and Matrix . The term has slightly different meanings in mathematics and physics....
s, vector space
Vector space

File:Vector addition ans scaling.pngA vector space is a mathematical structure formed by a collection of vectors: objects that may be Vector addition together and Scalar multiplication by numbers, called scalar s in this context....
s, algebras
Algebra over a field

In mathematics, an algebra over a field is an algebraic structure consisting of a vector space together with an Binary operation, usually called multiplication, that combines any two vectors to form a third vector....
, topological vector space
Topological vector space

In mathematics, a topological vector space is one of the basic structures investigated in functional analysis. As the name suggests the space blends a topology with the algebraic concept of a vector space....
s, and module
Module (mathematics)

In abstract algebra, the concept of a module over a ring is a generalization of the notion of vector space, where instead of requiring the scalar to lie in a field , the "scalars" may lie in an arbitrary ring....
s. In each case the significance of the symbol is the same: the most general bilinear operation
Bilinear operator

In mathematics, a bilinear map is a function of two arguments that is linear map in each. An example of such a map is multiplication of integers....
. In some contexts, this product is also referred to as outer product
Outer product

In linear algebra, the outer product typically refers to the Tensor product of two vector . The result of applying the outer product to a pair of vectors is a matrix ....
. The term "tensor product" is also used in relation to monoidal categories
Monoidal category

In mathematics, a monoidal category is a category C equipped with a bifunctorwhich is associative , and an object I which is both a left identity and right identity for ?, ....
.

Example:

Resultant rank = 4, resultant dimension = 16.

Here rank denotes the tensor rank (number of requisite indices), while dimension counts the number of degrees of freedom in the resulting array; the matrix rank is 1.

A representative case is the Kronecker product
Kronecker product

In mathematics, the Kronecker product, denoted by , is an operation on two matrix of arbitrary size resulting in a block matrix. It is a special case of a tensor product....
 of any two rectangular arrays, considered as matrices. A dyadic product
Dyadic product

In mathematics, in particular multilinear algebra, the dyadic productof two Vector s, and , each having the same dimension, is the tensor product of the vectors and results in a tensor of Tensor order#Tensor rank two and Tensor#Tensor rank one....
 is the special case of the tensor product between two vectors of the same dimension.

Tensor product of vector spaces


The tensor product V ? W of two vector space
Vector space

File:Vector addition ans scaling.pngA vector space is a mathematical structure formed by a collection of vectors: objects that may be Vector addition together and Scalar multiplication by numbers, called scalar s in this context....
s V and W over a field K can be defined by the method of generators and relations.

To construct V ? W, one begins with the set of ordered pairs in the Cartesian product
Cartesian product

In mathematics, the Cartesian product is a direct product of sets. The Cartesian product is named after Ren? Descartes, whose formulation of analytic geometry gave rise to this concept....
 V × W. For the purposes of this construction, regard this Cartesian product as a set rather than a vector space. The free vector space on V × W is defined by taking the vector space in which the elements of V × W are a basis. Symbolically,

where we have used the symbol e(v × w) to emphasize that these are taken to be linearly independent for distinct (v × w) ? V × W.

The tensor product arises by defining the following three equivalence relations in F(V × W):



where v, vi, w, and wi are vectors from V and W (respectively), and c is from the underlying field K. Denoting by R the space generated by these three equivalence relations, the tensor product of the two vector spaces V and W is then the quotient space
Quotient space (linear algebra)

In linear algebra, the quotient of a vector space V by a linear subspace N is a vector space obtained by "collapsing" N to zero. The space obtained is called a quotient space and is denoted V/N ....


It is also called the tensor product space of V and W and is a vector space (which can be verified by directly checking the vector space axioms). The tensor product of two elements v and w is the equivalence class
Equivalence class

In mathematics, given a Set X and an equivalence relation ~ on X, the equivalence class of an element a in X is the subset of all elements in X which are equivalent to a:...
 (e(v × w) + R) of e(v × w) in V ? W, denoted v ? w. This notation can somewhat obscure the fact that tensors are always coset
Coset

In mathematics, if G is a group , H is a subgroup of G, and g is an element of G, thenA coset is a left or right coset of some subgroup in G....
s: manipulations performed via the representatives (v,w) must always be checked that they do not depend on the particular choice of representative.

The space R is mapped to zero in V ? W, so that the above three equivalence relations become equalities in the tensor product space:


Given bases and for V and W respectively, the tensors form a basis for V ? W (generally ordered so that vi ? wj+1 comes before vi+1 ? wj). The dimension of the tensor product therefore is the product of dimensions of the original spaces; for instance Rm ? Rn will have dimension mn.

Elements of V ? W are sometimes referred to as tensors, although this term refers to many other related concepts as well. An element of V ? W of the form v ? w is called a pure or simple tensor. In general, an element of the tensor product space is not a pure tensor, but rather a finite linear combination of pure tensors. To wit, if v1 and v2 are linearly independent, and w1 and w2 are also linearly independent, then v1 ? w1 + v2 ? w2 cannot be written as a pure tensor. The number of simple tensors required to express element of a tensor product is called the tensor rank, (not to be confused with tensor order, which is the number of spaces one has taken the product of, in this case 2; in notation, the number of indices) and for linear operators or matrices, thought of as (1,1) tensors (elements of the space ), it agrees with matrix rank.

Characterization by a universal property


The tensor product is characterized by a universal property
Universal property

In various branches of mathematics, a useful construction is often viewed as the ?most efficient solution? to a certain problem. The definition of a universal property uses the language of category theory to make this notion precise....
. Consider the problem of mapping the Cartesian product V × W into a vector space X via a bilinear map ?. The tensor product construction V ? W, together with the natural bilinear embedding map f : V × W ? V ? W given by

is the "universal" solution to this problem in the following sense. For any other such pair (X, ?), where X is a vector space, and ? a bilinear mapping V × W ? X, there exists a unique linear map

such that

As with any universal property, this characterizes the tensor product uniquely up to unique isomorphism.

An immediate consequence is the identification of the bilinear maps from V × W to X

and the linear maps

obtained by sending ? to T.

As a functor


The tensor product also operates on linear maps between vector spaces. Specifically, given two linear maps S : V ? X and T : W ? Y between vector spaces, the tensor product of the two linear maps S and T is a linear map defined by In this way, the tensor product becomes a bifunctor from the category of vector spaces to itself, covariant in both arguments.

The Kronecker product of two matrices is the matrix of the tensor product of the two corresponding linear maps under a standard choice of bases of the tensor products (see the article on Kronecker products
Kronecker product

In mathematics, the Kronecker product, denoted by , is an operation on two matrix of arbitrary size resulting in a block matrix. It is a special case of a tensor product....
).

More than two vector spaces


The construction and the universal property of the tensor product can be extended to allow for more than two vector spaces. For example, suppose that V1, V2, and V3 are three vector spaces. The tensor product V1?V2?V3 is defined along with a trilinear mapping from the direct product
Direct product

In mathematics, one can often define a direct product of objectsalready known, giving a new one. This is generally the Cartesian product of the underlying sets, together with a suitably defined structure on the product set....


so that, any trilinear map F from the direct product to a vector space W

factors uniquely as

where L is a linear map. The tensor product is uniquely characterized by this property, up to a unique isomorphism.

This construction is related to repeated tensor products of two spaces. For example, if V1, V2, and V3 are three vector spaces, then there are (natural) isomorphisms

More generally, the tensor product of an arbitrary indexed family Vi, i ? I, is defined to be universal with respect to multilinear mappings of the direct product

Tensor powers and braiding

Let n be a non-negative integer. The nth tensor power of the vector space V is the n-fold tensor product of V with itself. That is

A permutation
Permutation

In several fields of mathematics the term permutation is used with different but closely related meanings. They all relate to the notion of mapping the element s of a set to other elements of the same set, i.e., exchanging elements of a set....
 s of the set determines a mapping of the nth Cartesian power of V defined by Let be the natural multilinear embedding of the Cartesian power of V into the tensor power of V. Then, by the universal property, there is a unique isomorphism such that The isomorphism ts is called the braiding map associated to the permutation s.

Tensor product of two tensors


A tensor
Tensor

A tensor is an object which extends the notion of Scalar , Vector , and Matrix . The term has slightly different meanings in mathematics and physics....
 on V is an element of a vector space of the form



for non-negative integers r and s. There is a general formula for the components
Coordinate vector

In linear algebra, a coordinate vector is an explicit representation of a vector in an Real_coordinate_space#Intuitive_overview as an ordered list of numbers or, equivalently, as an element of the coordinate space Fn....
 of a (tensor) product of two (or more) tensor
Tensor

A tensor is an object which extends the notion of Scalar , Vector , and Matrix . The term has slightly different meanings in mathematics and physics....
s. For example, if F and G are two covariant tensors of rank m and n (respectively) (i.e. F ? Tm0, and G ? Tn0), then the components of their tensor product are given by

. In this example, it is assumed that there is a chosen basis B of the vector space V, and the basis on any tensor space Tsr is tacitly assumed to be the standard one (this basis is described in the article on Kronecker products
Kronecker product

In mathematics, the Kronecker product, denoted by , is an operation on two matrix of arbitrary size resulting in a block matrix. It is a special case of a tensor product....
). Thus, the components of the tensor product of two tensors are the ordinary product of the components of each tensor.

Note that in the tensor product, the factor F consumes the first rank(F) indices, and the factor G consumes the next rank(G) indices, so

Example


Let U be a tensor of type (1,1) with components Uaß, and let V be a tensor of type (1,0) with components V?. Then and .

The tensor product inherits all the indices of its factors.

See also: Classical treatment of tensors
Classical treatment of tensors

 Disambiguation|-|A tensor is a generalization of the concepts of vector and matrix . Tensors allow one to express physical laws in a form that applies to any coordinate system....


Kronecker product of two matrices


With matrices this operation is usually called the Kronecker product, a term used to make clear that the result has a particular block structure
Block structure

* In mathematics, block structure is a possible property of matrices - see block matrix.* in computer science, a programming language has block structure if it features statement blocks, which assists structured programming....
 imposed upon it, in which each element of the first matrix is replaced by the second matrix, scaled by that element. For matrices and this is:

.

Tensor product of multilinear maps


Given multilinear maps and their tensor product is the multilinear function

Relation with the dual space


In the discussion on the universal property, replacing X by the underlying scalar field of V and W yields that the space (the dual space
Dual space

In mathematics, any vector space, V, has a corresponding dual vector space consisting of all linear functionals on V. Dual vector spaces defined on finite-dimensional vector spaces can be used for defining tensors which are studied in tensor algebra....
 of , containing all linear functional
Functional (mathematics)

In mathematics, a functional is traditionally a map from a vector space to the Field underlying the vector space, which is usually the real numbers....
s on that space) is naturally identified with the space of all bilinear functionals on . In other words, every bilinear functional is a functional on the tensor product, and vice versa.

Whenever and are finite dimensional, there is a natural isomorphism
Isomorphism

In abstract algebra, an isomorphism is a bijection map f such that both f and its inverse function f −1 are homomorphisms, i.e., structure-preserving mappings....
 between and , whereas for vector spaces of arbitrary dimension we only have an inclusion . So, the tensors of the linear functionals are bilinear functionals. This gives us a new way to look at the space of bilinear functionals, as a tensor product itself.

Types of tensors, e.g., alternating


Linear subspaces of the bilinear operators (or in general, multilinear operators) determine natural quotient space
Quotient space

In topology and related areas of mathematics, a quotient space is, intuitively speaking, the result of identifying or "gluing together" certain points of a given space....
s of the tensor space, which are frequently useful. See wedge product for the first major example. Another would be the treatment of algebraic forms as symmetric tensors.

Over more general rings

The notation refers to a tensor product of modules
Tensor product of modules

In mathematics, the tensor product of modules is a construction that allows arguments about bilinear maps to be carried out in terms of linear maps ....
 over a ring
Ring (mathematics)

In mathematics, a ring is a type of algebraic structure. There is some variation among mathematicians as to exactly what properties a ring is required to have, as described in detail below....
 R.

Tensor product for computer programmers


Array programming languages
Array programming

In computer science, array programming languages generalize operations on scalar s to apply transparently to vector s, matrix , and higher dimensional arrays....


Array programming languages may have this pattern built in. For example, in APL
APL programming language

APL is an array programming language based on a notation invented in 1957 by Kenneth E. Iverson while at Harvard University. It originated as an attempt to provide consistent notation for the teaching and analysis of topics related to the application of computers....
 the tensor product is expressed as (for example or ). In J the tensor product is the dyadic form of */ (for example a */ b or a */ b */ c).

Note that J's treatment also allows the representation of some tensor fields (as a and b may be functions instead of constants -- the result is then a derived function, and if a and b are differentiable, then a*/b is differentiable).

However, these kinds of notation are not universally present in array languages. Other array languages may require explicit treatment of indices (for example, Matlab
MATLAB

MATLAB is a Numerical analysis environment and programming language. Maintained by The MathWorks, MATLAB allows easy matrix manipulation, plotting of function and data, implementation of algorithms, creation of user interfaces, and interfacing with programs in other languages....
), and/or may not support higher-order functions such as the Jacobian derivative
Jacobian

In vector calculus, the Jacobian is shorthand for either the Jacobian matrix or its determinant, the Jacobian determinant.In algebraic geometry the Jacobian of a algebraic curve means the Jacobian variety: a group variety associated to the curve, in which the curve can be embedded....
 (for example, Fortran
Fortran

Fortran is a general-purpose programming language, procedural programming language, imperative programming language programming language that is especially suited to numerical analysis and scientific computing....
/APL).

See also

  • Outer product
    Outer product

    In linear algebra, the outer product typically refers to the Tensor product of two vector . The result of applying the outer product to a pair of vectors is a matrix ....
  • Tensor product of modules
    Tensor product of modules

    In mathematics, the tensor product of modules is a construction that allows arguments about bilinear maps to be carried out in terms of linear maps ....
  • Tensor product of R-algebras
  • Tensor product of fields
    Tensor product of fields

    In mathematics, the theory of field in abstract algebra lacks a direct product: the direct product of two fields, considered as a ring is never itself a field....
  • Topological tensor product
    Topological tensor product

    In mathematics, there are usually many different ways to construct a topological tensor product of two topological vector spaces. For Hilbert spaces or nuclear spaces there is a simple well-behaved theory of tensor products, but for general Banach spaces or locally convex topological vector space the theory is notoriously subtle, and most mat...
  • Tensor product of line bundles
  • Tensor product of graphs
    Tensor product of graphs

    In graph theory, the tensor product G ? H of graphs G and H is a graph such that* the vertex set of G ? H is the Cartesian product V ? V; and...
  • Tensor product of quadratic forms
    Tensor product of quadratic forms

    The tensor product of quadratic forms is most easily understood when one views the quadratic forms as quadratic spaces. So, if ' and ' are quadratic spaces, which V,W vector spaces, then the tensor product is a quadratic form q on the Tensor product#Tensor product of vector spaces ....
  • Dyadic product
    Dyadic product

    In mathematics, in particular multilinear algebra, the dyadic productof two Vector s, and , each having the same dimension, is the tensor product of the vectors and results in a tensor of Tensor order#Tensor rank two and Tensor#Tensor rank one....
  • Kronecker product
    Kronecker product

    In mathematics, the Kronecker product, denoted by , is an operation on two matrix of arbitrary size resulting in a block matrix. It is a special case of a tensor product....