Calculates the n-mode product of a tensor and a vector Given a tensor X with
dimensions \(I_1, I_2, ..., I_n, I_n+1, ... I_N\) and a vector v with
dimensions \(J, 1\), the resulting tensor after multiplication will have
dimension \(I_1, I_2, ..., I_n-1, I_n+1, ... I_N\). Note that the dimension
corresponding to the mode
has been dropped.
ttv(x, v, mode) # S4 method for dtensor,numeric,numeric ttv(x, v, mode) # S4 method for sptensor,numeric,numeric ttv(x, v, mode) # S4 method for sptensor,sparseVector,numeric ttv(x, v, mode)
x | tensor |
---|---|
v | vector |
mode | mode along tensor to perform multiplication |
T. G. Kolda and B. W. Bader, Tensor Decompositions and Applications, SIAM Review 51(3):455-500, September 2009