<p>This section introduces the <strong class="pkg">toric</strong> commands which deal with cones and related combinatorial-geometric objects. Recall, a <strong class="button">cone</strong> is a strongly convex polyhedral cone (<a href="chapBib_mj.html#biBF93">[Ful93]</a>, page 4).</p>
<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">‣ InsideCone</code>( <var class="Arg">v</var>, <var class="Arg">L</var> )</td><td class="tdright">( function )</td></tr></table></div>
<p>This command returns `true` if the vector <var class="Arg">v</var> belongs to the interior of the (strongly convex polyhedral) cone generated by the vectors in <var class="Arg">L</var>.</p>
<p>This procedure does not check if <var class="Arg">L</var> generates a strongly convex polyhedral cone.</p>
<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">‣ InDualCone</code>( <var class="Arg">v</var>, <var class="Arg">L</var> )</td><td class="tdright">( function )</td></tr></table></div>
<p>This command returns `true` if <var class="Arg">v</var> belongs to the dual of the cone generated by the vectors in <var class="Arg">L</var>.</p>
<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">‣ PolytopeLatticePoints</code>( <var class="Arg">A</var>, <var class="Arg">Perps</var> )</td><td class="tdright">( function )</td></tr></table></div>
<p><em>Input</em>: <var class="Arg">Perps</var><span class="SimpleMath">\(=[v_1,...,v_k]\)</span> is the list of ``inward normal" vectors perpendicular to the walls of a polytope \(P\) in the vector space \(L_0^*\otimes Q\), A\(=[a_1,...,a_k]\) is a k-tuple of integers, where \(a_i\) denotes the amount the i-th ``wall" (defined by the normal <span class="SimpleMath">\(v_i\)</span>) is shifted from the origin (each <span class="SimpleMath">\(a_i\)</span> is assumed non-negative). <br /> For example, the polytope <span class="SimpleMath">\(P\)</span> with faces <code class="code">[x=0, x=a, y=0, y=b]</code> has <var class="Arg">Perps</var><span class="SimpleMath">\(=[[1,0],[-1,0],[0,1],[0,-1]]\)</span> and <var class="Arg">A</var><span class="SimpleMath">\(=[0,a,0,b]\)</span>. <br /> <em>Output</em>: the list of points in <span class="SimpleMath">\(P \cap L_0^*\)</span>.</p>
<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">‣ Faces</code>( <var class="Arg">Rays</var> )</td><td class="tdright">( function )</td></tr></table></div>
<p><em>Input</em>: <var class="Arg">Rays</var> is a list of rays for the fan <span class="SimpleMath">\(\Delta\)</span> <br /> <em>Output</em>: All the normals to the faces (hyperplanes of the cone).</p>
<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">‣ ConesOfFan</code>( <var class="Arg">Delta</var>, <var class="Arg">k</var> )</td><td class="tdright">( function )</td></tr></table></div>
<p><em>Input</em>: <var class="Arg">Delta</var> is the fan of cones, <br /> <var class="Arg">k</var> is the dimension of the cones desired. <br /> <em>Output</em>: The <var class="Arg">k</var>-dimensional cones in the fan.</p>
<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">‣ NumberOfConesOfFan</code>( <var class="Arg">Delta</var>, <var class="Arg">k</var> )</td><td class="tdright">( function )</td></tr></table></div>
<p><em>Input</em>: <var class="Arg">Delta</var> is the fan of cones in <span class="SimpleMath">\(V=Q^n\)</span>, <br /> <var class="Arg">k</var> is the dimension of the cones counted. <br /> <em>Output</em>: The number of <var class="Arg">k</var>-dimensional cones in the fan.</p>
<p>Idea: The fan <var class="Arg">Delta</var> is represented as a set of maximal cones. For each maximal cone, look at the <var class="Arg">k</var>-dimensional faces obtained by taking <span class="SimpleMath">\(n\)</span> choose <var class="Arg">k</var> subsets of the rays describing the cone. Certain of these <var class="Arg">k</var>-subsets yield the desired cones.</p>
<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">‣ ToricStar</code>( <var class="Arg">sigma</var>, <var class="Arg">Delta</var> )</td><td class="tdright">( function )</td></tr></table></div>
<p><em>Input</em>: <var class="Arg">sigma</var> is a cone in the fan, represented by its set of maximal (i.e., highest dimensional) cones. <br /> <var class="Arg">Delta</var> is the fan of cones in <span class="SimpleMath">\(V=Q^n\)</span>. <br /> <em>Output</em>: The star of the cone <var class="Arg">sigma</var> in <var class="Arg">Delta</var>, i.e., the cones <span class="SimpleMath">\(\tau\)</span> which have <var class="Arg">sigma</var> as a face.</p>
<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">‣ DualSemigroupGenerators</code>( <var class="Arg">L</var> )</td><td class="tdright">( function )</td></tr></table></div>
<p><em>Input</em>: <var class="Arg">L</var> is a list of integral <span class="SimpleMath">\(n\)</span>-vectors generating a cone <span class="SimpleMath">\(\sigma\)</span>. <br /> <em>Output</em>: the generators of <span class="SimpleMath">\(S_\sigma\)</span>,</p>
<p>Idea: let <span class="SimpleMath">\(M\)</span> be the maximum of the absolute values of the coordinates of the <var class="Arg">L</var>[i]'s, for each vector \(v\) in \([1..M]^n\), test if \(v\) is in the dual cone \(\sigma^*\). If so, add \(v\) to list of possible generators. Once this for loop is finished, one can check this list for redundant generators. The trick is to simply omit those elements which are of the form \(d_1+d_2\), where \(d_1\) and \(d_2\) are ``small" elements in the integral dual cone.
<p>This program is not very efficient and should not be used in ``large examples'' involving semigroups with ``many'' generators. For example, if you take <var class="Arg">L:=[[1,2,3,4],[0,1,0,7],[3,1,0,2],[0,0,1,0]];</var> then <code class="code">DualSemigroupGenerators(L);</code> can exhaust GAP's memory allocation.
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.