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

4.23.1.7 insertCone

Syntax:
insertCone( fan f, cone c )
insertCone( fan f, cone c, int check )
Type:
none
Purpose:
inserts the cone into the fan; checks for compatibility beforehand unless check is passed and equal 0
Example:
 
LIB"gfanlib.so";
fan f=emptyFan(3);
f;
==> _application PolyhedralFan
==> _version 2.2
==> _type PolyhedralFan
==> 
==> AMBIENT_DIM
==> 3
==> 
==> DIM
==> -1
==> 
==> LINEALITY_DIM
==> 3
==> 
==> RAYS
==> 
==> N_RAYS
==> 0
==> 
==> LINEALITY_SPACE
==> 1 0 0	# 0
==> 0 1 0	# 1
==> 0 0 1	# 2
==> 
==> ORTH_LINEALITY_SPACE
==> 
==> F_VECTOR
==> 
==> 
==> SIMPLICIAL
==> 1
==> 
==> PURE
==> 1
==> 
==> CONES
==> 
==> MAXIMAL_CONES
==> 
==> MULTIPLICITIES
==> 
intmat M[3][3]=
1,0,0,
0,1,0,
0,0,1;
cone c=coneViaPoints(M);
insertCone(f,c);
f;
==> _application PolyhedralFan
==> _version 2.2
==> _type PolyhedralFan
==> 
==> AMBIENT_DIM
==> 3
==> 
==> DIM
==> 3
==> 
==> LINEALITY_DIM
==> 0
==> 
==> RAYS
==> 0 0 1	# 0
==> 0 1 0	# 1
==> 1 0 0	# 2
==> 
==> N_RAYS
==> 3
==> 
==> LINEALITY_SPACE
==> 
==> ORTH_LINEALITY_SPACE
==> -1 0 0	# 0
==> 0 -1 0	# 1
==> 0 0 -1	# 2
==> 
==> F_VECTOR
==> 1 3 3 1
==> 
==> SIMPLICIAL
==> 1
==> 
==> PURE
==> 1
==> 
==> CONES
==> {}	# Dimension 0
==> {0}	# Dimension 1
==> {1}
==> {2}
==> {0 1}	# Dimension 2
==> {0 2}
==> {1 2}
==> {0 1 2}	# Dimension 3
==> 
==> MAXIMAL_CONES
==> {0 1 2}	# Dimension 3
==> 
==> MULTIPLICITIES
==> 1	# Dimension 3
==> 

Top Back: getCone Forward: isCompatible 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.