Description Usage Arguments Details Value Note References See Also Examples
Contracted (m-Mode) product between a Tensor of arbitrary number of modes and a matrix. The result is folded back into Tensor.
1 |
tnsr |
Tensor object with K modes |
mat |
input matrix with same number columns as the |
m |
the mode to contract on |
By definition, rs_unfold(ttm(tnsr,mat),m) = mat%*%rs_unfold(tnsr,m)
, so the number of columns in mat
must match the m
th mode of tnsr
. For the math on the m-Mode Product, see Kolda and Bader (2009).
a Tensor object with K modes
The m
th mode of tnsr
must match the number of columns in mat
. By default, the returned Tensor does not drop any modes equal to 1.
T. Kolda, B. Bader, "Tensor decomposition and applications". SIAM Applied Mathematics and Applications 2009.
1 2 3 |
Numeric Tensor of 3 Modes
Modes: 3 4 10
Data:
[1] 1.5788830 1.0084535 1.2883733 1.4192030 0.7415592 1.4748084
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.