Learn R Programming

tensorMiss (version 1.1.1)

unfold: Tensor unfolding

Description

Performing to multi-dimensional arrays tensor unfolding, also known as matricization

Usage

unfold(ten, k)

Value

A matrix

Arguments

ten

A multi-dimensional array.

k

An integer specifying the mode of array to unfold.

Examples

Run this code
unfold(array(1:24, dim=c(3,4,2)), 2);



Run the code above in your browser using DataLab