keisoku

Hadamard Product (Element-wise) Calculator

Compute the Hadamard product (element-wise product) of two same-size matrices. Enter each row and get the result matrix as a table.

Input

Enter two matrices, one row per line. Separate entries with spaces or commas (each line = one matrix row).

Result

Result matrix size

2 × 3

Rows

2

Columns

3

Entries

6

Hadamard product A ⊙ B

203
41512

How it works

  • The Hadamard product (symbol ⊙), also called the element-wise or Schur product, takes two matrices A and B of the same size and multiplies entries in matching positions. Its (i, j) entry is A(i, j) times B(i, j).
  • The Hadamard product is defined only when both matrices have exactly the same dimensions (same number of rows and columns). Matrices of different sizes cannot be combined this way.
  • It is different from the standard matrix product (A×B). The matrix product is defined when the number of columns of A equals the number of rows of B and forms entries from dot products, so its size and entries differ from the Hadamard product.
  • Each input line is treated as one row of the matrix, with entries separated by spaces or commas. Blank lines are ignored.
  • The Hadamard product is commutative (A⊙B = B⊙A). Because it is a simple position-by-position multiplication, it is widely used for masking in image processing and element-wise operations in machine learning.

Reviews

Tell us what you think of this calculator.

Write a review

  1. Home
  2. Hadamard Product (Element-wise) Calculator