atrans {tensr} | R Documentation |
Tucker product.
Description
Performs the Tucker product between an array and a list of matrices.
Usage
atrans(A, B)
Arguments
A |
An array of dimension |
B |
A list of matrices of length |
Details
The Tucker product between a list of matrices B
and an array A
is formally equivalent to performing the k
-mode product between
A
and each list element in B
. For example, if the dimension of
A
is three, then atrans(A,B) =
amprod(amprod(amprod(A,B[[1]],1),B[[2]],2),B[[3]],3)
. The ordering of this
k
-mode product does not matter. See
Kolda and Bader
(2009) for details.
Author(s)
Peter Hoff.
References
Kolda, T. G., & Bader, B. W. (2009). Tensor decompositions and applications. SIAM review, 51(3), 455-500.
See Also
amprod
for multiplying one matrix along one mode of an
array.
Examples
A <- array(1:8, dim = c(2,2,2))
B <- list()
B[[1]] <-matrix(1:4, nrow = 2)
B[[2]] <- matrix(1:6, nrow = 3)
B[[3]] <- matrix(1:2, nrow = 1)
atrans(A,B)
[Package tensr version 1.0.1 Index]