All_rearrange: Rearrangement algorithm on all modes

View source: R/All_rearrange.R

All_rearrangeR Documentation

Rearrangement algorithm on all modes

Description

Rearrangement algorithm for all modes

Usage

All_rearrange(ten, except = "NA", key = "NA")

Arguments

ten

A multi-dimensional array

except

A vector of integers implying the modes not to rearrange, set as 'NA' by default

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 to a corner block. The case of mode-2 tensor returns to the work of Bai and Ng in 2021.

Value

A list of two objects, a rearranged tensor and a list of indices rearranged (ordered by the rearranged modes)


tensorFun documentation built on Nov. 1, 2022, 9:05 a.m.