A class representing Tucker tensors (TTensor).
A Tucker tensor is a core tensor multiplied by a matrix along each mode.
Usage
ttensor(core = NULL, U = NULL)
Arguments
- core
A Tensor object representing the core
- U
A list of factor matrices
Public fields
core
The core Tensor object
U
List of factor matrices
Methods
TTensor$new()
Initialize a new TTensor
Arguments
core
A Tensor object representing the core
U
A list of factor matrices
Returns
A new TTensor object
TTensor$dim()
Get dimensions of the tensor
Returns
Integer vector of dimensions
TTensor$ndims()
Get number of dimensions
Returns
Integer number of dimensions
TTensor$print()
Print the TTensor object
TTensor$full()
Convert Tucker tensor to dense Tensor
Returns
A new Tensor object representing the full dense tensor
TTensor$clone()
The objects of this class are cloneable with this method.
Usage
TTensor$clone(deep = FALSE)
Arguments
deep
Whether to make a deep clone.