Computes the inner product of two tensors on the specified modes.
Usage
ttt(X, Y, ms)
Arguments
X
A tensor instance.
Y
A tensor instance.
ms
The indices of the modes to compute on.
Value
Return a matrix, the inner product of tensors X and Y on the modes specified by the vector ms.
Details
Two tensors X and Y are unfolded into two matrix with the modes in ms onto the columns. Then implement matrix multiplication on the two matrices. The sizes of the dimensions specified by ms must match, e.g., the number of columns of the two unfolded matrices must match.