rTensor (version 1.4.1)

dim-methods: Mode Getter for Tensor

Description

Return the vector of modes from a tensor

Usage

# S4 method for Tensor
dim(x)

Arguments

x

the Tensor instance

Value

an integer vector of the modes associated with x

Details

dim(x)

Examples

Run this code
# NOT RUN {
tnsr <- rand_tensor()
dim(tnsr)
# }

Run the code above in your browser using DataLab