# dim-methods

From rTensor v1.4
by James Li

##### Mode Getter for Tensor

Return the vector of modes from a tensor

##### Usage

```
# S4 method for Tensor
dim(x)
```

##### Arguments

- x
the Tensor instance

##### Details

`dim(x)`

##### Value

an integer vector of the modes associated with `x`

##### Examples

```
# NOT RUN {
tnsr <- rand_tensor()
dim(tnsr)
# }
```

*Documentation reproduced from package rTensor, version 1.4, License: GPL (>= 2)*

### Community examples

Looks like there are no examples yet.