ten_reshape_back: Tensor reshape reversal

View source: R/ten_reshape_back.R

ten_reshape_backR Documentation

Tensor reshape reversal

Description

Performing reversed tensor reshape on a given tensor.

Usage

ten_reshape_back(ten, AA, original.dim, time.mode = TRUE)

Arguments

ten

An array representing a tensor.

AA

A vector representing mode indices to reshape along back.

original.dim

A vector representing the dimension of the original tensor before reshape.

time.mode

Logical. TRUE if mode-1 of the input tensor is the time mode and hence not involved in reshape; otherwise reshape is on the entire input tensor. Default is TRUE.

Value

An array representing a tensor.

Examples

ten_reshape_back(array(1:24, dim=c(2,12)), c(2,3), c(2,3,4), FALSE);



KOFM documentation built on April 3, 2025, 11:05 p.m.