khatri_rao_list: List Khatri-Rao Product

Description Usage Arguments Value Note See Also Examples

View source: R/rTensor_Misc.R

Description

Returns the Khatri-Rao product from a list of matrices or vectors. Commonly used for n-mode products and various Tensor decompositions.

Usage

1
khatri_rao_list(L, reverse = FALSE)

Arguments

L

list of matrices or vectors

reverse

whether or not to reverse the order

Value

matrix that is the Khatri-Rao product

Note

The number of columns must match in every element of the input list.

See Also

khatri_rao

Examples

1
2
3
4
smalllizt <- list('mat1' = matrix(runif(12),ncol=4), 
'mat2' = matrix(runif(12),ncol=4),
'mat3' = matrix(runif(12),ncol=4))
dim(khatri_rao_list(smalllizt))

jamesyili/rTensor documentation built on May 18, 2019, 11:22 a.m.