<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> <title>PolyBoRi: literal_factorization.h Source File</title> <link href="tabs.css" rel="stylesheet" type="text/css"> <link href="doxygen.css" rel="stylesheet" type="text/css"> </head><body> <!-- Generated by Doxygen 1.5.9 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li><a href="annotated.html"><span>Classes</span></a></li> <li class="current"><a href="files.html"><span>Files</span></a></li> </ul> </div> <div class="tabs"> <ul> <li><a href="files.html"><span>File List</span></a></li> <li><a href="globals.html"><span>File Members</span></a></li> </ul> </div> <h1>literal_factorization.h</h1><a href="literal__factorization_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span> <a name="l00002"></a>00002 <span class="comment"> * literal_factorization.h</span> <a name="l00003"></a>00003 <span class="comment"> * PolyBoRi</span> <a name="l00004"></a>00004 <span class="comment"> *</span> <a name="l00005"></a>00005 <span class="comment"> * Created by Michael Brickenstein on 29.05.06.</span> <a name="l00006"></a>00006 <span class="comment"> * Copyright 2006 The PolyBoRi Team. See LICENSE file.</span> <a name="l00007"></a>00007 <span class="comment"> *</span> <a name="l00008"></a>00008 <span class="comment"> */</span> <a name="l00009"></a>00009 <a name="l00010"></a>00010 <span class="preprocessor">#include <algorithm></span> <a name="l00011"></a>00011 <span class="preprocessor">#include <vector></span> <a name="l00012"></a>00012 <span class="preprocessor">#include <map></span> <a name="l00013"></a>00013 <span class="preprocessor">#include <set></span> <a name="l00014"></a>00014 <span class="preprocessor">#include <utility></span> <a name="l00015"></a>00015 <span class="preprocessor">#include "<a class="code" href="groebner__defs_8h.html">groebner_defs.h</a>"</span> <a name="l00016"></a>00016 <span class="preprocessor">#ifndef PBORI_GB_LF_H</span> <a name="l00017"></a>00017 <span class="preprocessor"></span><span class="preprocessor">#define PBORI_GB_LF_H</span> <a name="l00018"></a>00018 <span class="preprocessor"></span><a class="code" href="groebner__defs_8h.html#379ca4efe65763012d75de1c107932b3">BEGIN_NAMESPACE_PBORIGB</a> <a name="l00019"></a>00019 <a name="l00020"></a>00020 <a name="l00021"></a><a class="code" href="classpolybori_1_1groebner_1_1LiteralFactorization.html">00021</a> <span class="keyword">class </span><a class="code" href="classpolybori_1_1groebner_1_1LiteralFactorization.html">LiteralFactorization</a>{ <a name="l00022"></a>00022 <span class="keyword">public</span>: <a name="l00023"></a>00023 <a class="code" href="classpolybori_1_1groebner_1_1LiteralFactorization.html">LiteralFactorization</a>(<span class="keyword">const</span> <a class="code" href="classpolybori_1_1BoolePolynomial.html" title="This class wraps the underlying decicion diagram type and defines the necessary operations...">Polynomial</a>&); <a name="l00024"></a><a class="code" href="classpolybori_1_1groebner_1_1LiteralFactorization.html#d85ff3d46af9f12152f32df54d6429d0">00024</a> <span class="keyword">typedef</span> std::map<idx_type, int> map_type; <a name="l00025"></a><a class="code" href="classpolybori_1_1groebner_1_1LiteralFactorization.html#5298c4fd86bfd68e64413337431303a0">00025</a> map_type factors; <a name="l00026"></a><a class="code" href="classpolybori_1_1groebner_1_1LiteralFactorization.html#76531b2496a7e9ff86bb0a8803961352">00026</a> <a class="code" href="classpolybori_1_1BoolePolynomial.html" title="This class wraps the underlying decicion diagram type and defines the necessary operations...">Polynomial</a> rest; <a name="l00027"></a><a class="code" href="classpolybori_1_1groebner_1_1LiteralFactorization.html#3e3c98bbd078c79448e6b7ba80dd2dbe">00027</a> <a class="code" href="namespacepolybori_1_1groebner.html#517679ce2706e218038a1e99aac5551b">deg_type</a> lmDeg; <a name="l00028"></a>00028 <span class="keywordtype">bool</span> occursAsLeadOfFactor(<a class="code" href="namespacepolybori_1_1groebner.html#ef37a95e97afbd561cc4c5f84d660765">idx_type</a> v) <span class="keyword">const</span>; <a name="l00029"></a>00029 <span class="keywordtype">bool</span> trivial() <span class="keyword">const</span>; <a name="l00030"></a>00030 <span class="keywordtype">bool</span> is11Factorization(); <a name="l00031"></a>00031 <span class="keywordtype">bool</span> is00Factorization(); <a name="l00032"></a>00032 <span class="comment">//Theorem: f BoolePolynomial with factor (x+b), b in 0, 1 (considered in the usual Polynomial Ring)</span> <a name="l00033"></a>00033 <span class="comment">//then f/(x+b) does not involve the variable x</span> <a name="l00034"></a>00034 <span class="comment">//typedef std::pair<idx_type,idx_type> var_pair_type;</span> <a name="l00035"></a>00035 <span class="comment">//typedef std::set<var_pair_type> two_var_factors;</span> <a name="l00036"></a><a class="code" href="classpolybori_1_1groebner_1_1LiteralFactorization.html#6542e590854e81edf3ea7600e5eb6ebc">00036</a> <span class="keyword">typedef</span> std::map<idx_type, idx_type> var2var_map_type; <a name="l00037"></a><a class="code" href="classpolybori_1_1groebner_1_1LiteralFactorization.html#168dcf1c36e3df274e1c951448d2f5ad">00037</a> var2var_map_type var2var_map; <a name="l00038"></a>00038 <a name="l00039"></a>00039 <span class="keyword">protected</span>: <a name="l00040"></a>00040 <a name="l00041"></a>00041 <a name="l00042"></a>00042 <a name="l00043"></a>00043 }; <a name="l00044"></a>00044 <a class="code" href="namespacepolybori_1_1groebner.html#517679ce2706e218038a1e99aac5551b">deg_type</a> <a class="code" href="namespacepolybori_1_1groebner.html#00c3e31b1148362c9525e109e45b9088">common_literal_factors_deg</a>(<span class="keyword">const</span> <a class="code" href="classpolybori_1_1groebner_1_1LiteralFactorization.html">LiteralFactorization</a>& a, <span class="keyword">const</span> <a class="code" href="classpolybori_1_1groebner_1_1LiteralFactorization.html">LiteralFactorization</a>& b); <a name="l00045"></a>00045 <a class="code" href="groebner__defs_8h.html#81b45485049b7eaa5057379309e0210e">END_NAMESPACE_PBORIGB</a> <a name="l00046"></a>00046 <span class="preprocessor">#endif</span> </pre></div></div> <hr size="1"><address style="text-align: right;"><small>Generated on Wed Sep 9 14:30:58 2009 for PolyBoRi by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.9 </small></address> </body> </html>