Transform a N-dimensional array a to vector. The transformation is done
assuming that the last index of the array moves fastest. For instance, an array
a of dimensions (2,2,2) will produce the vector
v = ( a[1,1,1], a[1,1,2], a[1,1,3], a[1,2,1], a[1,2,2],…,a[3,3,3] ).
Usage
Array2Vector(arr)
Arguments
arr
The array to be transformed.
Value
A vector filled with the data of the input array arr.