tensorly.tucker_tensor.tucker_to_tensor

tucker_to_tensor(core, factors, skip_factor=None, transpose_factors=False)[source]

Converts the Tucker tensor into a full tensor

Parameters:

core : ndarray

core tensor

factors : ndarray list

list of matrices of shape (s_i, core.shape[i])

skip_factor : None or int, optional, default is None

if not None, index of a matrix to skip Note that in any case, modes, if provided, should have a lengh of tensor.ndim

transpose_factors : bool, optional, default is False

if True, the matrices or vectors in in the list are transposed

Returns:

2D-array

full tensor of shape (factors[0].shape[0], ..., factors[-1].shape[0])