Linear Algebra
Hadamard Product
Element-wise matrix product.
Formula
Formula
(A ∘ B)ij = Aij Bij
Variables
| Symbol | Definition | Type & range | Units | Role |
|---|---|---|---|---|
| A, B | matrices of equal size | real matrix | — | input |
Try it yourself
Interactive calculator
Worked examples
Example 1
GivenA = 1, 2; 3, 4, B = 5, 6; 7, 8
Result
| 5 | 12 |
| 21 | 32 |
Example 2
GivenA = 2, 2; 2, 2, B = 1, 2; 3, 4
Result
| 2 | 4 |
| 6 | 8 |