hamadard_list: List Hamadard Product

Description Usage Arguments Value Note See Also Examples

View source: R/rTensor_Misc.R

Description

Returns the Hamadard (element-wise) product from a list of matrices or vectors. Commonly used for n-mode products and various Tensor decompositions.

Usage

1

Arguments

L

list of matrices or vectors

Value

matrix that is the Hamadard product

Note

The modes/dimensions of each element in the list must match.

See Also

kronecker_list, khatri_rao_list

Examples

1
2
3
4
lizt <- list('mat1' = matrix(runif(40),ncol=4), 
'mat2' = matrix(runif(40),ncol=4),
'mat3' = matrix(runif(40),ncol=4))
dim(hamadard_list(lizt))

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