next up previous contents index
Next: NCMatrixToPermutation[aMatrix] Up: Block Matrix Manipulation Previous: NCInverse[aSquareMatrix]   Contents   Index

NCPermutationMatrix[aListOfIntegers]

Aliases: None.
Description: $ NCPermutationMatrix[aListOfIntegers]$ returns the permutation matrix associated with the list of integers. It is just the identity matrix with its columns re-ordered.
Arguments: $ aListOfIntegers $ is an encoding which specifies where the 1's occur in each column. e.g., aListOfintegers $ =\{2,4,3,1\}$ represents the permutation matrix

$\displaystyle P = \left[ \begin{array}{cccc} 0 & 0 & 0 & 1 \\
1 & 0 & 0 & 0\ 0& 0 & 1 & 0 \ 0 & 1 & 0 & 0
\end{array} \right] $

Comments / Limitations: None.



NCAlgebra Project 2002-09-09