AI engineering glossary · Linear algebra

What is hadamard product?

Hadamard product (also called Element-wise product): Element-wise multiplication of two matrices or vectors of the same shape: each entry is multiplied by the entry in the same position. It is used for masking and gating in neural networks and differs from ordinary matrix multiplication.

Level: intermediateTopic: Linear algebra

Hadamard product: an example

[1, 2, 3] element-wise times [4, 5, 6] gives [4, 10, 18].

Related terms

More Linear algebra terms

Where you learn it

Hadamard product is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.