Learn R Programming

dTBM (version 3.0)

dim-methods: Mode Getter for Tensor

Description

Return the vector of modes from a tensor

Usage

# S4 method for Tensor
dim(x)

Value

an integer vector of the modes associated with x

Arguments

x

the Tensor instance

Details

dim(x)

Examples

Run this code
tnsr <- rand_tensor()
dim(tnsr)

Run the code above in your browser using DataLab