powered by
Performing k-mode matrix product of a tensor to a matrix
ttm(ten, A, k)
A multi-dimensional array with the k mode dimension bbb
A multi-dimensional array with the k mode dimension aaa
A matrix with dimension bbb by aaa
An integer specifying the tensor mode to perform k-mode matrix product
ttm(array(1:24,c(3,4,2)), matrix(1:4,nrow =2), 3)
Run the code above in your browser using DataLab