refold: Tensor refolding

View source: R/refold.R

refoldR Documentation

Tensor refolding

Description

Performing to matrices tensorisation, which is the inverse process of unfolding

Usage

refold(unfolding, k, dim_vec)

Arguments

unfolding

A matrix.

k

An integer specifying the mode of array to refold from.

dim_vec

A vector specifying the expected dimension of output array.

Value

A multi-dimensional array

Examples

refold(matrix(1:9,nrow=3), 1, c(3,1,3));



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