initialize-methods: Initializes a Tensor instance
Description
Not designed to be called by the user. Use as.tensor
instead.
Usage
# S4 method for Tensor
initialize(.Object, num_modes = NULL, modes = NULL,
data = NULL)
Arguments
num_modes
number of modes of the tensor
data
can be vector, matrix, or array