atrans: Tucker product.

Description Usage Arguments Details Author(s) References See Also Examples

Description

Performs the Tucker product between an array and a list of matrices.

Usage

1
atrans(A, B)

Arguments

A

An array of dimension K.

B

A list of matrices of length K. It must be that ncol(B[[k]]) == dim(A)[k].

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

1
2
3
4
5
6
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)

tensr documentation built on May 2, 2019, 2:32 p.m.