Home > matgraph > @permutation > size.m

size

PURPOSE ^

size(p) returns the number of elements permuted and the number of cycles.

SYNOPSIS ^

function s = size(p)

DESCRIPTION ^

 size(p) returns the number of elements permuted and the number of cycles.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function s = size(p)
0002 % size(p) returns the number of elements permuted and the number of cycles.
0003 s1 = length(p.array);
0004 c = cycles(p);
0005 s2 = length(c);
0006 s = [s1,s2];

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