Top
Back: ncones
Forward: removeCone
FastBack: cone
FastForward: polytope
Up: fan related functions
Top: Singular Manual
Contents: Table of Contents
Index: Index
About: About this document

4.23.1.12 numberOfConesOfDimension

Syntax:
numberOfConesOfDimension( fan f, int dimension, int orbit, int maximal )
Type:
int
Purpose:
number of cones (orbit=0) or orbits (orbit=1) of a given dimension; if maximal=0, then all cones are considered, if maximal=1, only maximal cones are considered
Example:
 
LIB"gfanlib.so";
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

Top Back: ncones Forward: removeCone FastBack: cone FastForward: polytope Up: fan related functions Top: Singular Manual Contents: Table of Contents Index: Index About: About this document
            User manual for Singular version 4-0-3, 2016, generated by texi2html.