Returns the Hadamard product of two Tensors. Commonly used for n-mode products and various Tensor decompositions.
hadamard(darr1, darr2) ## S4 method for signature 'DelayedArray,DelayedArray' hadamard(darr1, darr2)
first DelayedArray object
second DelayedArray object
matrix that is the Hadamard product
The modes/dimensions of each element of two Tensors must match.
library("DelayedRandomArray") darr1 <- RandomUnifArray(c(2,4)) darr2 <- RandomUnifArray(c(2,4)) hadamard(darr1, darr1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.