hadamard_list {rTensor}R Documentation

List hadamard Product

Description

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

Usage

hadamard_list(L)

Arguments

L

list of matrices or vectors

Value

matrix that is the hadamard product

Note

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

See Also

kronecker_list, khatri_rao_list

Examples

lizt <- list('mat1' = matrix(runif(40),ncol=4), 
'mat2' = matrix(runif(40),ncol=4),
'mat3' = matrix(runif(40),ncol=4))
dim(hadamard_list(lizt))

[Package rTensor version 1.4.8 Index]