Hadamard Product Calculator

Compute the Hadamard (element-wise) product of two matrices of the same size. Each output element is the product of the corresponding input elements.

Loading calculator…

Notes

What is the Hadamard Product?

The Hadamard product (also called the Schur product or element-wise product) multiplies each element of A by the corresponding element of B. It is denoted A ⊙ B. Both matrices must have the same dimensions.

Worked Example

A:

12
34

B:

50
23

A ⊙ B (multiply element by element):

50
612
Unlike standard matrix multiplication, the Hadamard product is commutative: A ⊙ B = B ⊙ A.

Frequently Asked Questions

How is the Hadamard product different from regular matrix multiplication?

Regular matrix multiplication (AB) computes dot products of rows and columns. The Hadamard product simply multiplies corresponding entries, so the result has the same dimensions as the inputs.

Where is the Hadamard product used?

It appears in neural networks (element-wise activation), image processing (pixel-wise blending), and statistics (element-wise covariance scaling).

Can the result of a Hadamard product be zero even if neither A nor B is zero?

Yes. If A[i][j] = 0 or B[i][j] = 0 for any entry, that result entry is zero. So the Hadamard product can produce a zero entry wherever either input has a zero.