Mode-k flattening explained

l{A}

into a matrix denoted by

A[m]

(a two-way array).

Matrixizing may be regarded as a generalization of the mathematical concept of vectorizing.

Definition

The mode-m matrixizing of tensor

{lA}\in

I0 x I1 x … x IM
{C}

,

is defined as the matrix

{\bfA}[m]\in

Im x (I0...Im-1Im+1...IM)
{C}
. As the parenthetical ordering indicates, the mode-m column vectors are arranged by sweeping all the other mode indices through their ranges, with smaller mode indexes varying more rapidly than larger ones; thus

[{\bf A}_{[m]}]_ = a_,where

j=im

and k=1+\sum_^M(i_n - 1) \prod_^ I_\ell.By comparison, the matrix

{\bfA}[m]\in

Im x (Im+1...IMI0I1...Im-1)
{C}
that results from an unfolding has columns that are the result of sweeping through all the modes in a circular manner beginning with mode as seen in the parenthetical ordering. This is an inefficient way to matrixize.

Applications

This operation is used in tensor algebra and its methods, such as Parafac and HOSVD.