Algosim documentation: HadamardProduct

HadamardProduct

The Hadamard product of matrices.

Syntax

Description

If A and B are matrices of the same size, then HadamardProduct(A, B) returns their Hadamard (entrywise) product.

Notes

The operator is implemented by the HadamardProduct function.

Examples

A ≔ ❨❨5, 1, 3❩, ❨1, 2, 6❩❩
⎛5  1  3⎞
⎝1  2  6⎠
B ≔ ❨❨4, 1, 0❩, ❨2, 1, 3❩❩
⎛4  1  0⎞
⎝2  1  3⎠
HadamardProduct(A, B)
⎛20   1   0⎞
⎝ 2   2  18⎠

See also