Hubbry Logo
search
logo

Permutation matrix

logo
Community Hub0 Subscribers
Write something...
Be the first to start a discussion here.
Be the first to start a discussion here.
See all
Permutation matrix

In mathematics, particularly in matrix theory, a permutation matrix is a square binary matrix that has exactly one entry of 1 in each row and each column with all other entries 0. An n × n permutation matrix can represent a permutation of n elements. Pre-multiplying an n-row matrix M by a permutation matrix P, forming PM, results in permuting the rows of M, while post-multiplying an n-column matrix M, forming MP, permutes the columns of M.

Every permutation matrix P is orthogonal, with its inverse equal to its transpose: . Indeed, permutation matrices can be characterized as the orthogonal matrices whose entries are all non-negative.

There are two natural one-to-one correspondences between permutations and permutation matrices, one of which works along the rows of the matrix, the other along its columns. Here is an example, starting with a permutation π in two-line form at the upper left:

The row-based correspondence takes the permutation π to the matrix at the upper right. The first row of has its 1 in the third column because . More generally, we have where when and otherwise.

The column-based correspondence takes π to the matrix at the lower left. The first column of has its 1 in the third row because . More generally, we have where is 1 when and 0 otherwise. Since the two recipes differ only by swapping i with j, the matrix is the transpose of ; and, since is a permutation matrix, we have . Tracing the other two sides of the big square, we have and .

Multiplying a matrix M by either or on either the left or the right will permute either the rows or columns of M by either π or π−1. The details are a bit tricky.

To begin with, when we permute the entries of a vector by some permutation π, we move the entry of the input vector into the slot of the output vector. Which entry then ends up in, say, the first slot of the output? Answer: The entry for which , and hence . Arguing similarly about each of the slots, we find that the output vector is

even though we are permuting by , not by . Thus, in order to permute the entries by , we must permute the indices by . (Permuting the entries by is sometimes called taking the alibi viewpoint, while permuting the indices by would take the alias viewpoint.)

See all
User Avatar
No comments yet.