Home Online Manual
Top
Back: ncones
Forward: removeCone
FastBack:
FastForward:
Up: gfan_lib
Top: Singular Manual
Contents: Table of Contents
Index: Index
About: About this document

D.13.1.54 numberOfConesOfDimension

Procedure from library gfan.lib (see gfan_lib).

Usage:
numberOfConesOfDimension(f,d[,o,m]); f fan, d int, o int, m int

Assume:
d is between 0 and ambientDimension(f)

Return:
cone, returns in the fan f the number of cones in dimension d if o=1, it will only count cone orbits (deactivated for now) if m=1, it will only count maximal cones

Example:
 
LIB "gfan.lib";
fan f=emptyFan(3);
ncones(f);
==> 0
intmat M[3][3]=
1,0,0,
0,1,0,
0,0,1;
cone c=coneViaPoints(M);
insertCone(f,c);
numberOfConesOfDimension(f,0,0,0);
==> 1
numberOfConesOfDimension(f,0,0,1);
==> 0
numberOfConesOfDimension(f,1,0,0);
==> 3
numberOfConesOfDimension(f,0,0,1);
==> 0
numberOfConesOfDimension(f,2,0,0);
==> 3
numberOfConesOfDimension(f,2,0,1);
==> 0
numberOfConesOfDimension(f,3,0,0);
==> 1
numberOfConesOfDimension(f,3,0,1);
==> 1