Home > matgraph > @permutation > matrix.m

matrix

PURPOSE ^

matrix(p) gives a permutation matrix version of p

SYNOPSIS ^

function A = matrix(p)

DESCRIPTION ^

 matrix(p) gives a permutation matrix version of p

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function A = matrix(p)
0002 % matrix(p) gives a permutation matrix version of p
0003 n = length(p);
0004 A = eye(n);
0005 A = A(:,p.array);

Generated on Thu 13-Mar-2008 14:23:52 by m2html © 2003