Home Online Manual
Top
Back: fVector
Forward: insertCone
FastBack: cone
FastForward: polytope
Up: fan related functions
Top: Singular Manual
Contents: Table of Contents
Index: Index
About: About this document

4.23.1.6 getCone

Syntax:
getCone( fan f, int dimension, int index )
getCone( fan f, int dimension, int index, int orbit )
getCone( fan f, int dimension, int index, int orbit, int maximal )
Type:
cone
Purpose:
cone (orbit=0) or orbit (orbit=1) of a certain index (ranges from 1 to numberOfConesOfDimension(f,*,*,*)) in a given dimension; if maximal=0, all cones and orbits are considered, if maximal=1, only maximal cones and orbits are considered; the default flags for orbit and maximal is 0.
Example:
 
LIB"gfanlib.so";
intmat M[3][3]=
1,0,0,
0,1,0,
0,0,1;
cone c=coneViaPoints(M);
fan f=emptyFan(3);
insertCone(f,c);
getCone(f,2,1,0,0);
==> AMBIENT_DIM
==> 3
==> FACETS
==> 0,0,1,
==> 0,1,0
==> LINEAR_SPAN
==> -1,0,0
==> 
getCone(f,2,2,0,0);
==> AMBIENT_DIM
==> 3
==> FACETS
==> 0,0,1,
==> 1,0,0
==> LINEAR_SPAN
==> 0,-1,0
==> 
getCone(f,2,3,0,0);
==> AMBIENT_DIM
==> 3
==> FACETS
==> 0,1,0,
==> 1,0,0
==> LINEAR_SPAN
==> 0,0,-1
==>