<?xml version="1.0" encoding="utf-8" ?> <!-- for emacs: -*- coding: utf-8 -*- --> <!-- Apache may like this line in the file .htaccess: AddCharset utf-8 .html --> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN" "http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg-flat.dtd" > <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head><title>addFaceDataToComplex -- Adds to a complex face data.</title> <link rel="stylesheet" type="text/css" href="../../../../Macaulay2/Style/doc.css"/> </head> <body> <table class="buttons"> <tr> <td><div><a href="_add__Facet__Data__To__Complex.html">next</a> | <a href="_add__Coker__Grading.html">previous</a> | <a href="_add__Facet__Data__To__Complex.html">forward</a> | <a href="_add__Coker__Grading.html">backward</a> | up | <a href="index.html">top</a> | <a href="master.html">index</a> | <a href="toc.html">toc</a> | <a href="http://www.math.uiuc.edu/Macaulay2/">Macaulay2 web site</a></div> </td> </tr> </table> <hr/> <div><h1>addFaceDataToComplex -- Adds to a complex face data.</h1> <div class="single"><h2>Synopsis</h2> <ul><li><div class="list"><dl class="element"><dt class="heading">Usage: </dt><dd class="value"><div><tt>addFaceDataToComplex(C,facelist)</tt><br/><tt>addFaceDataToComplex(C,facelist,facetlist)</tt></div> </dd></dl> </div> </li> <li><div class="single">Inputs:<ul><li><span><tt>C</tt>, <span>an <a href="___Complex.html">embedded complex</a></span></span></li> <li><span><tt>facelist</tt>, <span>a <a href="../../Macaulay2Doc/html/___List.html">list</a></span>, whose i-th entry is a list of the faces of C of dimension i-1</span></li> <li><span><tt>facetlist</tt>, <span>a <a href="../../Macaulay2Doc/html/___List.html">list</a></span>, whose i-th entry is a list of the facets of C of dimension i-1</span></li> </ul> </div> </li> <li><div class="single">Outputs:<ul><li><span><tt>C</tt>, <span>an <a href="___Complex.html">embedded complex</a></span></span></li> </ul> </div> </li> </ul> </div> <div class="single"><h2>Description</h2> <div><p>Adds to a complex the face data and facet data (computed if not specified), i.e., C.fc, C.facets, C.dim, C.fvector, C.isEquidimensional, C.isSimplicial are updated.</p> <p>This allows us to add the face data later to a complex generated previously by <a href="_new__Empty__Complex.html" title="Generates an empty complex.">newEmptyComplex</a>.</p> <p>Note that the input C is modified by this method.</p> <p>This function is mainly used internally, but may occasionally be useful to the user and is hence exported.</p> <div/> <table class="examples"><tr><td><pre>i1 : R=QQ[x_0..x_4] o1 = R o1 : PolynomialRing</pre> </td></tr> <tr><td><pre>i2 : addCokerGrading(R) o2 = | -1 -1 -1 -1 | | 1 0 0 0 | | 0 1 0 0 | | 0 0 1 0 | | 0 0 0 1 | 5 4 o2 : Matrix ZZ <--- ZZ</pre> </td></tr> <tr><td><pre>i3 : I=ideal(x_0*x_1,x_1*x_2,x_2*x_3,x_3*x_4,x_4*x_0) o3 = ideal (x x , x x , x x , x x , x x ) 0 1 1 2 2 3 3 4 0 4 o3 : Ideal of R</pre> </td></tr> <tr><td><pre>i4 : C=idealToComplex(I) o4 = 1: x x x x x x x x x x 0 2 0 3 1 3 1 4 2 4 o4 : complex of dim 1 embedded in dim 4 (printing facets) equidimensional, simplicial, F-vector {1, 5, 5, 0, 0, 0}, Euler = -1</pre> </td></tr> <tr><td><pre>i5 : Cl=newEmptyComplex(R) o5 = empty complex o5 : complex of dim -1 embedded in dim 4 (printing facets) equidimensional, simplicial</pre> </td></tr> <tr><td><pre>i6 : addFaceDataToComplex(Cl,fc C) o6 = 1: x x x x x x x x x x 0 2 0 3 1 3 1 4 2 4 o6 : complex of dim 1 embedded in dim 4 (printing facets) equidimensional, simplicial, F-vector {1, 5, 5, 0, 0, 0}, Euler = -1</pre> </td></tr> <tr><td><pre>i7 : Cl==C o7 = true</pre> </td></tr> </table> </div> </div> <div class="single"><h2>Caveat</h2> <div><div>If both facelist and facetlist are specified this function does not make any consistency check.</div> </div> </div> <div class="single"><h2>See also</h2> <ul><li><span><a href="_new__Empty__Complex.html" title="Generates an empty complex.">newEmptyComplex</a> -- Generates an empty complex.</span></li> <li><span><a href="../../Macaulay2Doc/html/_dim.html" title="compute the Krull dimension">dim</a> -- compute the Krull dimension</span></li> <li><span><a href="_fvector.html" title="The F-vector of a complex.">fvector</a> -- The F-vector of a complex.</span></li> <li><span><a href="_fc.html" title="The faces of a complex.">fc</a> -- The faces of a complex.</span></li> <li><span><a href="_is__Simplicial.html" title="Check whether a complex or co-complex is simplicial.">isSimplicial</a> -- Check whether a complex or co-complex is simplicial.</span></li> <li><span><a href="_is__Equidimensional.html" title="Check whether a complex or co-complex is equidimensional.">isEquidimensional</a> -- Check whether a complex or co-complex is equidimensional.</span></li> </ul> </div> <div class="waystouse"><h2>Ways to use <tt>addFaceDataToComplex</tt> :</h2> <ul><li>addFaceDataToComplex(Complex,List)</li> <li>addFaceDataToComplex(Complex,List,List)</li> </ul> </div> </div> </body> </html>