Linear Algebra

Hadamard Product

Element-wise matrix product.

Formula

Formula
(A ∘ B)ij = Aij Bij

Variables

SymbolDefinitionType & rangeUnitsRole
A, B matrices of equal size real matrix input

Try it yourself

Interactive calculator
rows separated by ';' , values by commas
rows separated by ';' , values by commas
Result

Worked examples

Example 1
GivenA = 1, 2; 3, 4, B = 5, 6; 7, 8
Result
512
2132
Example 2
GivenA = 2, 2; 2, 2, B = 1, 2; 3, 4
Result
24
68