Home > matgraph > @permutation > inv.m

inv

PURPOSE ^

inv(p) returns the inverse permutation of p

SYNOPSIS ^

function q = inv(p)

DESCRIPTION ^

 inv(p) returns the inverse permutation of p

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function q = inv(p)
0002 % inv(p) returns the inverse permutation of p
0003 a = array(p);
0004 [y,b] = sort(a);
0005 q = permutation(b);

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