Algosim documentation: ⊙

⊙ (circled dot operator)

The Hadamard product of matrices.

Syntax

Description

If A and B are matrices of the same size, then 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⎠
A ⊙ B
⎛20   1   0⎞
⎝ 2   2  18⎠

See also