Learn R Programming

tensorFun (version 0.1.1)

rearrange: Rearrangement algorithm on mode k

Description

Rearrangement algorithm on one mode

Usage

rearrange(ten, k, key = "NA")

Value

A list of two objects, a rearranged tensor and the indices rearranged

Arguments

ten

A multi-dimensional array

k

An integer specifying the mode to arrange

key

The value to which rearrange is according, set as 'NA' by default

Details

A rearrangement algorithm on higher order tensor to rearrange all missing entries along mode k to the end.