AI engineering glossary · Linear algebra

What is trace?

Trace: The sum of the entries along the main diagonal of a square matrix. It also equals the sum of the matrix's eigenvalues and is unchanged by cyclic reordering of a product, which makes it handy in derivations and loss formulas.

Level: intermediateTopic: Linear algebra

Trace: an example

The trace of [[2,7],[1,5]] is 2 + 5 = 7.

Related terms

More Linear algebra terms

Where you learn it

Trace 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.