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

4.24.1.13 removeCone

Syntax:
removeCone( fan f, cone c )
removeCone( fan f, cone c, int check )
Type:
none
Purpose:
removes the cone from the fan; checks for compatibility beforehand unless check is passed and equal 0
Example:
 
LIB"gfanlib.so";
intmat M[2][2]=1,0,0,1;
intmat N[2][2]=1,0,1,-1;
cone c=coneViaPoints(M);
cone d=coneViaPoints(N);
fan f=emptyFan(2);
insertCone(f,c);
insertCone(f,d);
f;
==> 
==> RAYS
==> 0 1	# 0
==> 1 -1	# 1
==> 1 0	# 2
==> 
==> MAXIMAL_CONES
==> {0 2}	# Dimension 2
==> {1 2}
==> 
removeCone(f,c);
f;
==> 
==> RAYS
==> 1 -1	# 0
==> 1 0	# 1
==> 
==> MAXIMAL_CONES
==> {0 1}	# Dimension 2
==> 

Top Back: numberOfConesOfDimension Forward: polytope 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-0, 2013, generated by texi2html.