hadamard_list: List hadamard Product

Description Usage Arguments Value Note See Also Examples

View source: R/rTensor_Misc.R

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

1

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

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(hadamard_list(lizt))

Example output

[1] 10  4

rTensor documentation built on May 15, 2021, 9:06 a.m.