Given an array
X and a vector of integers
collapse_mode returns an array of lower order where the
first mode indexes the modes indicated in
An array whose modes we are collapsing.
A vector of integers giving the modes to collapse.
Transforms an array into another array where the provided modes are
collapsed into one mode. The indexing along this new mode is in
lexicographical order of the indices of the collapsed modes. The
collapsed mode is the first mode unless
length(m) == 1, then
collapse_mode simply returns
If X is of order K and
length(m) = q,
then returns an array Y of order K - q + 1, where
the modes indicated in
m are combined to be the first
mode in Y.
1 2 3 4 5 6
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.