Home Online Manual
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.23.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;
==> _application PolyhedralFan
==> _version 2.2
==> _type PolyhedralFan
==> 
==> AMBIENT_DIM
==> 2
==> 
==> DIM
==> 2
==> 
==> LINEALITY_DIM
==> 0
==> 
==> RAYS
==> 0 1	# 0
==> 1 -1	# 1
==> 1 0	# 2
==> 
==> N_RAYS
==> 3
==> 
==> LINEALITY_SPACE
==> 
==> ORTH_LINEALITY_SPACE
==> -1 0	# 0
==> 0 -1	# 1
==> 
==> F_VECTOR
==> 1 3 2
==> 
==> SIMPLICIAL
==> 1
==> 
==> PURE
==> 1
==> 
==> CONES
==> {}	# Dimension 0
==> {0}	# Dimension 1
==> {1}
==> {2}
==> {0 2}	# Dimension 2
==> {1 2}
==> 
==> MAXIMAL_CONES
==> {0 2}	# Dimension 2
==> {1 2}
==> 
==> MULTIPLICITIES
==> 1	# Dimension 2
==> 1
==> 
removeCone(f,c);
f;
==> _application PolyhedralFan
==> _version 2.2
==> _type PolyhedralFan
==> 
==> AMBIENT_DIM
==> 2
==> 
==> DIM
==> 2
==> 
==> LINEALITY_DIM
==> 0
==> 
==> RAYS
==> 1 -1	# 0
==> 1 0	# 1
==> 
==> N_RAYS
==> 2
==> 
==> LINEALITY_SPACE
==> 
==> ORTH_LINEALITY_SPACE
==> -1 0	# 0
==> 0 -1	# 1
==> 
==> F_VECTOR
==> 1 2 1
==> 
==> SIMPLICIAL
==> 1
==> 
==> PURE
==> 1
==> 
==> CONES
==> {}	# Dimension 0
==> {0}	# Dimension 1
==> {1}
==> {0 1}	# Dimension 2
==> 
==> MAXIMAL_CONES
==> {0 1}	# Dimension 2
==> 
==> MULTIPLICITIES
==> 1	# Dimension 2
==>