RDFTensor (version 1.3)

spt_mttkrp: Matricized tensor times Khatri-Rao product for ktensor

Description

V = MTTKRP(X,U,n) efficiently calculates the matrix product of the n-mode matricization of X with the Khatri-Rao product of all entries in U, a cell array of matrices, except the nth. The tensor is considered to be sparse.

Usage

spt_mttkrp(X, U, n)

Arguments

X

sparse tensor

U

list of matrices to be multiplied by X

n

the mode used

Value

a dense matrix of size nrow=X$size[n],ncol=R

References

-Brett W. Bader, Tamara G. Kolda and others. MATLAB Tensor Toolbox, Version [v3.0]. Available online at https://www.tensortoolbox.org, 2015.