Transform a vector into a multidimensional array. The transformation is done
assuming that the last index of the array moves fastest. For instance, the
relation between a vector \(v\) of lenght 8 and an array \(a\) of dimensions
(2,2,2) is defined by \(v = (a_{111}, a_{112}, a_{113}, a_{121}, a_{122},
\ldots,a_{333}\).
Usage
Vector2Array(vect, dim.out)
Arguments
vect
The vector of length one or more to be transformed into an array.
dim.out
The dimension attribute for the array to be created, that is an integer
vector of length one or more giving the maximal indices in each dimension.
Value
An array of dimensions given by dim.out filled with the data from the
input vector vec.
See Also
The inverse transformation is performed with the function
Array2Vector.