Learn R Programming

rTensor (version 1.4.8)

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)

Arguments

L

list of matrices or vectors

Value

matrix that is the hadamard product

See Also

kronecker_list, khatri_rao_list

Examples

Run this code
# NOT RUN {
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