P∈Rn×n in which only one component in each row is 1 and the rest are 0 is called a Permutation Matrix.
Basic Properties
Orthogonality
All permutation matrices are orthogonal matrices:
P−1=PT
Sparseness
For sufficiently large n, P∈Rn×n is a sparse matrix.
Explanation
The Permutation Matrix gives a permutation of rows and columns through matrix multiplication. The following example shows that if it is multiplied on the left, it gives a row permutation, and if it is multiplied on the right, it gives a column permutation.
010100001a11a21a31a12a22a32a13a23a33=a11a21a31a12a22a32a13a23a33010100001=a21a11a31a22a12a32a23a13a33a12a22a32a11a21a31a13a23a33