AI engineering glossary · NumPy pandas visualization

What is element-wise operation?

Element-wise operation (also called elementwise): An operation applied independently to each pair of matching positions in two arrays, or to each element of one array. Arithmetic operators such as + and * behave this way in NumPy. Multiplying two matrices in the linear algebra sense is a different operation.

Level: beginnerTopic: NumPy pandas visualization

Element-wise operation: an example

np.array([1, 2, 3]) * np.array([4, 5, 6]) returns array([4, 10, 18]).

Related terms

More NumPy pandas visualization terms

Where you learn it

Element-wise operation 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.