Matricization
   HOME

TheInfoList



OR:

In
multilinear algebra Multilinear algebra is a subfield of mathematics that extends the methods of linear algebra. Just as linear algebra is built on the concept of a vector and develops the theory of vector spaces, multilinear algebra builds on the concepts of ''p' ...
, a reshaping of
tensors In mathematics, a tensor is an algebraic object that describes a multilinear relationship between sets of algebraic objects related to a vector space. Tensors may map between different objects such as vectors, scalars, and even other tenso ...
is any
bijection In mathematics, a bijection, also known as a bijective function, one-to-one correspondence, or invertible function, is a function between the elements of two sets, where each element of one set is paired with exactly one element of the other s ...
between the set of indices of an
order Order, ORDER or Orders may refer to: * Categorization, the process in which ideas and objects are recognized, differentiated, and understood * Heterarchy, a system of organization wherein the elements have the potential to be ranked a number of d ...
-d tensor and the set of indices of an order-\ell tensor, where \ell < d . The use of indices presupposes tensors in coordinate representation with respect to a basis. The coordinate representation of a tensor can be regarded as a multi-dimensional array, and a bijection from one set of indices to another therefore amounts to a rearrangement of the array elements into an array of a different shape. Such a rearrangement constitutes a particular kind of
linear map In mathematics, and more specifically in linear algebra, a linear map (also called a linear mapping, linear transformation, vector space homomorphism, or in some contexts linear function) is a Map (mathematics), mapping V \to W between two vect ...
between the vector space of order-d tensors and the vector space of order-\ell tensors.


Definition

Given a positive integer d, the notation /math> refers to the
set Set, The Set, SET or SETS may refer to: Science, technology, and mathematics Mathematics *Set (mathematics), a collection of elements *Category of sets, the category whose objects and morphisms are sets and total functions, respectively Electro ...
\ of the first positive integers. For each integer k where 1 \le k \le d for a positive integer d, let ''V''''k'' denote an ''n''''k''-
dimensional In physics and mathematics, the dimension of a mathematical space (or object) is informally defined as the minimum number of coordinates needed to specify any point within it. Thus, a line has a dimension of one (1D) because only one coordi ...
vector space In mathematics and physics, a vector space (also called a linear space) is a set whose elements, often called ''vectors'', may be added together and multiplied ("scaled") by numbers called '' scalars''. Scalars are often real numbers, but can ...
over a
field Field may refer to: Expanses of open ground * Field (agriculture), an area of land used for agricultural purposes * Airfield, an aerodrome that lacks the infrastructure of an airport * Battlefield * Lawn, an area of mowed grass * Meadow, a grass ...
F. Then there are vector space isomorphisms (linear maps) \begin V_1 \otimes \cdots \otimes V_d & \simeq F^ \otimes \cdots \otimes F^ \\ & \simeq F^ \otimes \cdots \otimes F^ \\ & \simeq F^ \otimes F^ \otimes \cdots \otimes F^ \\ & \simeq F^ \otimes F^ \otimes F^ \otimes \cdots \otimes F^ \\ & \,\,\,\vdots \\ & \simeq F^, \end where \pi \in \mathfrak_d is any
permutation In mathematics, a permutation of a set is, loosely speaking, an arrangement of its members into a sequence or linear order, or if the set is already ordered, a rearrangement of its elements. The word "permutation" also refers to the act or proc ...
and \mathfrak_d is the
symmetric group In abstract algebra, the symmetric group defined over any set is the group whose elements are all the bijections from the set to itself, and whose group operation is the composition of functions. In particular, the finite symmetric group \m ...
on d elements. Via these (and other) vector space isomorphisms, a tensor can be interpreted in several ways as an order-\ell tensor where \ell \le d.


Coordinate representation

The first vector space isomorphism on the list above, V_1 \otimes \cdots \otimes V_d \simeq F^ \otimes \cdots \otimes F^, gives the coordinate representation of an abstract tensor. Assume that each of the d vector spaces V_k has a
basis Basis may refer to: Finance and accounting *Adjusted basis, the net cost of an asset after adjusting for various tax-related items *Basis point, 0.01%, often used in the context of interest rates *Basis trading, a trading strategy consisting of ...
\. The expression of a tensor with respect to this basis has the form \mathcal = \sum_^\ldots\sum_^ a_ v_^1 \otimes v_^2 \otimes \cdots \otimes v_^, where the coefficients a_ are elements of F. The coordinate representation of \mathcal is \sum_^\ldots\sum_^ a_ \mathbf_^1 \otimes \mathbf_^2 \otimes \cdots \otimes \mathbf_^d,where \mathbf_^k is the j^\text standard basis vector of F^. This can be regarded as a ''d''-dimensional array whose elements are the coefficients a_.


Vectorization

By means of a bijective map \mu : _1\times \cdots \times _d\to _1\cdots n_d, a vector space isomorphism between F^ \otimes \cdots \otimes F^ and F^ is constructed via the mapping \mathbf_^1 \otimes \cdots \otimes \mathbf_^d \mapsto \mathbf_, where for every natural number j such that 1 \le j \le n_1 \cdots n_d, the vector \mathbf_j denotes the ''j''th standard basis vector of F^ . In such a reshaping, the tensor is simply interpreted as a
vector Vector most often refers to: *Euclidean vector, a quantity with a magnitude and a direction *Vector (epidemiology), an agent that carries and transmits an infectious pathogen into another living organism Vector may also refer to: Mathematic ...
in F^. This is known as vectorization, and is analogous to vectorization of matrices. A standard choice of bijection \mu is such that :\operatorname(\mathcal) := \begin a_ & a_ & \cdots & a_ & a_ & \cdots & a_ \end^T, which is consistent with the way in which the colon operator in
Matlab MATLAB (an abbreviation of "MATrix LABoratory") is a proprietary multi-paradigm programming language and numeric computing environment developed by MathWorks. MATLAB allows matrix manipulations, plotting of functions and data, implementation ...
and
GNU Octave GNU Octave is a high-level programming language primarily intended for scientific computing and numerical computation. Octave helps in solving linear and nonlinear problems numerically, and for performing other numerical experiments using a langu ...
reshapes a higher-order tensor into a vector. In general, the vectorization of \mathcal is the vector a_ ^ .


General flattenings

For any permutation \pi \in \mathfrak_d there is a
canonical isomorphism In mathematics, an isomorphism is a structure-preserving mapping between two structures of the same type that can be reversed by an inverse mapping. Two mathematical structures are isomorphic if an isomorphism exists between them. The word is ...
between the two tensor products of vector spaces V_1 \otimes V_2 \otimes \cdots \otimes V_d and V_ \otimes V_ \otimes \cdots \otimes V_. Parentheses are usually omitted from such products due to the
natural isomorphism In category theory, a branch of mathematics, a natural transformation provides a way of transforming one functor into another while respecting the internal structure (i.e., the composition of morphisms) of the categories involved. Hence, a natural ...
between V_i\otimes(V_j\otimes V_k) and (V_i\otimes V_j)\otimes V_k, but may, of course, be reintroduced to emphasize a particular grouping of factors. In the grouping, ::(V_ \otimes \cdots \otimes V_)\otimes(V_ \otimes \cdots \otimes V_)\otimes\cdots\otimes(V_ \otimes \cdots \otimes V_), there are \ell groups with r_j-r_ factors in the j^\text group (where r_0=0 and r_\ell=d). Letting S_j=(\pi(r_+1),\pi(r_+2),\ldots,\pi(r_j)) for each j satisfying 1\le j\le\ell, an (S_1,S_2,\ldots,S_\ell)-flattening of a tensor \mathcal, denoted \mathcal_, is obtained by applying the two processes above within each of the \ell groups of factors. That is, the coordinate representation of the j^\text group of factors is obtained using the isomorphism (V_ \otimes V_ \otimes \cdots \otimes V_)\simeq(F^\otimes F^\otimes\cdots\otimes F^), which requires specifying bases for all of the vector spaces V_k. The result is then vectorized using a bijection \mu_j: _times _times\cdots\times _to _/math> to obtain an element of F^, where N_ := \prod_^ n_, the product of the dimensions of the vector spaces in the j^\text group of factors. The result of applying these isomorphisms within each group of factors is an element of F^ \otimes \cdots \otimes F^, which is a tensor of order \ell. The vectorization of \mathcal is an (S_1)-reshaping, \mathcal_ wherein S_1 = (1,2,\ldots,d).


Matrixize

Let \mathcal \in F^ \otimes F^ \otimes \cdots \otimes F^ be the coordinate representation of an abstract tensor with respect to a basis. A standard mode-''m'' flattening of \mathcal is an _1, S_2/math>-reshaping in which S_1 = (m) and S_2 = (1,2,\ldots,m-1,m+1,\ldots,M). Usually, a standard flattening is denoted by : \mathcal_ := \mathcal_ These reshapings are sometimes called matrixizing, matricizations or unfoldings in the literature. A standard choice for the bijections \mu_1,\ \mu_2 is the one that is consistent with the reshape
function Function or functionality may refer to: Computing * Function key, a type of key on computer keyboards * Function model, a structured representation of processes in a system * Function object or functor or functionoid, a concept of object-oriente ...
in Matlab and GNU Octave, namely : \mathcal_ := \begin a_ & a_ & \cdots & a_ \\ a_ & a_ & \cdots & a_ \\ \vdots & \vdots & & \vdots \\ a_ & a_ & \cdots & a_ \end{bmatrix} Tensors Multilinear algebra