AI engineering glossary · Linear algebra

What is permutation matrix?

Permutation matrix: A square matrix of zeros and ones with exactly one 1 in each row and column. Multiplying by it reorders the rows or entries of a matrix or vector, and it is used to record row swaps in decompositions.

Level: advancedTopic: Linear algebra

Permutation matrix: an example

[[0,1],[1,0]] times [7, 9] gives [9, 7].

Related terms

More Linear algebra terms

Where you learn it

Permutation matrix 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.