Learn R Programming

rTensor (version 1.4.9)

hadamard_list: 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)

Value

matrix that is the hadamard product

Arguments

L

list of matrices or vectors

See Also

kronecker_list, khatri_rao_list

Examples

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

Run the code above in your browser using DataLab