dim-methods: Mode Getter for Tensor

Description Usage Arguments Details Value Examples

Description

Return the vector of modes from a tensor

Usage

1
2
## S4 method for signature 'Tensor'
dim(x)

Arguments

x

the Tensor instance

Details

dim(x)

Value

an integer vector of the modes associated with x

Examples

1
2
tnsr <- rand_tensor()
dim(tnsr)

jamesyili/rTensor documentation built on May 18, 2019, 11:22 a.m.