ttv: Tensor times vector

Description Usage Arguments References

Description

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.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
ttv(x, v, mode)

## S4 method for signature 'dtensor,numeric,numeric'
ttv(x, v, mode)

## S4 method for signature 'sptensor,numeric,numeric'
ttv(x, v, mode)

## S4 method for signature 'sptensor,sparseVector,numeric'
ttv(x, v, mode)

Arguments

x

tensor

v

vector

mode

mode along tensor to perform multiplication

References

T. G. Kolda and B. W. Bader, Tensor Decompositions and Applications, SIAM Review 51(3):455-500, September 2009


tensorr documentation built on May 2, 2019, 3:26 a.m.