unfold: Tensor unfolding

View source: R/unfold.R

unfoldR Documentation

Tensor unfolding

Description

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

Usage

unfold(ten, k)

Arguments

ten

A multi-dimensional array.

k

An integer specifying the mode of array to unfold.

Value

A matrix

Examples

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




tensorMiss documentation built on May 29, 2024, 2:11 a.m.