Contracted (m-Mode) product between a Tensor of arbitrary number of modes and a matrix. The result is folded back into Tensor.
Usage
ttm(tnsr, mat, m = NULL)
Value
a Tensor object with K modes
Arguments
tnsr
Tensor object with K modes
mat
input matrix with same number columns as the mth mode of tnsr
m
the mode to contract on
Details
By definition, the number of columns in mat must match the mth mode of tnsr. For the math on the m-Mode Product, see Kolda and Bader (2009).
References
T. Kolda, B. Bader, "Tensor decomposition and applications". SIAM Applied Mathematics and Applications 2009, Vol. 51, No. 3 (September 2009), pp. 455-500. URL: https://www.jstor.org/stable/25662308