Statistiques
| Branche: | Révision :

meplib / how-to.html @ master

Historique | Voir | Annoter | Télécharger (33,76 ko)

1 08aa5d9e Serge Torres
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
2 08aa5d9e Serge Torres
    "http://www.w3.org/TR/html4/loose.dtd">
3 08aa5d9e Serge Torres
<html>
4 08aa5d9e Serge Torres
<head>
5 08aa5d9e Serge Torres
  <meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
6 08aa5d9e Serge Torres
  <link href="/home/storres/styles/article2Style.css" rel="stylesheet"
7 08aa5d9e Serge Torres
  type="text/css">
8 08aa5d9e Serge Torres
  <title>Polynomial Polytopes HOWTO</title>
9 08aa5d9e Serge Torres
</head>
10 08aa5d9e Serge Torres
11 08aa5d9e Serge Torres
<body lang="en">
12 08aa5d9e Serge Torres
<h1>Polynomial Polytopes HOWTO</h1>
13 08aa5d9e Serge Torres
14 08aa5d9e Serge Torres
<h2>The steps</h2>
15 08aa5d9e Serge Torres
<ol>
16 08aa5d9e Serge Torres
  <li><a href="#setupEnvironment">Setup your working environment;</a></li>
17 08aa5d9e Serge Torres
  <li><a href="#configFile">Prepare your configuration file(s)</a>;</li>
18 08aa5d9e Serge Torres
  <li><a href="#prepareBinaries">Prepare the binaries</a>;</li>
19 08aa5d9e Serge Torres
  <li><a href="#dataForPip">Prepare the data for PIP</a>;</li>
20 08aa5d9e Serge Torres
  <li><a href="#runPip">Run PIP</a>;</li>
21 08aa5d9e Serge Torres
  <li><a href="#computeCandidates">Compute the candidates</a>;</li>
22 08aa5d9e Serge Torres
  <li><a href="#filterCandidates">Filter the candidates</a>;</li>
23 08aa5d9e Serge Torres
  <li><a href="#checkCandidates">Check the candidates</a>.</li>
24 08aa5d9e Serge Torres
  <li><a href="#files">The files</a></li>
25 08aa5d9e Serge Torres
</ol>
26 08aa5d9e Serge Torres
27 08aa5d9e Serge Torres
<h2><a name="setupEnvironment" id="setupEnvironment">Setup your working
28 08aa5d9e Serge Torres
environment</a></h2>
29 08aa5d9e Serge Torres
<ol>
30 08aa5d9e Serge Torres
  <li>Expand the <var>polytopes.tgz</var> file in some convinient directory:
31 08aa5d9e Serge Torres
    <kbd>tar -vxzf polytopes</kbd>;</li>
32 08aa5d9e Serge Torres
  <li>Get into the just created <var>polytopes</var> directory;</li>
33 08aa5d9e Serge Torres
  <li>Create a new directory: this will be your working directory;</li>
34 08aa5d9e Serge Torres
  <li>Copy the whole contents of the <var
35 08aa5d9e Serge Torres
    class="path">polytopes/00model</var> directory into the just created
36 08aa5d9e Serge Torres
  one.</li>
37 08aa5d9e Serge Torres
</ol>
38 08aa5d9e Serge Torres
39 08aa5d9e Serge Torres
<h2><a name="configFiles" id="configFiles">Prepare your configuration
40 08aa5d9e Serge Torres
file(s)</a></h2>
41 08aa5d9e Serge Torres
42 08aa5d9e Serge Torres
<p>You can have up to two configuration files:</p>
43 08aa5d9e Serge Torres
<ol>
44 08aa5d9e Serge Torres
  <li>A general configuration file named <var>config.txt;</var></li>
45 08aa5d9e Serge Torres
  <li>A list of interpolation points named <var>pointsList.txt</var>.</li>
46 08aa5d9e Serge Torres
</ol>
47 08aa5d9e Serge Torres
48 08aa5d9e Serge Torres
<h3>The general configuration file</h3>
49 08aa5d9e Serge Torres
50 08aa5d9e Serge Torres
<p>All the necessary configuration can be specified in this file. In this
51 08aa5d9e Serge Torres
case, all settings and modifications can be edited in a single place.</p>
52 08aa5d9e Serge Torres
53 08aa5d9e Serge Torres
<p>The <var>config.txt</var> file is a three lines text that complies with
54 08aa5d9e Serge Torres
the following layout:</p>
55 08aa5d9e Serge Torres
<pre><code>function maximum-error lower-bound upper-bound degree points-number
56 08aa5d9e Serge Torres
digits-number [digits-number_list]
57 08aa5d9e Serge Torres
point [points-list]</code></pre>
58 08aa5d9e Serge Torres
59 08aa5d9e Serge Torres
<p>Before any further explanation, let's give an example:</p>
60 08aa5d9e Serge Torres
<pre><code>cos(x) 0.0000030 0/1 355/452 4 8
61 08aa5d9e Serge Torres
16
62 08aa5d9e Serge Torres
0 17/213 103/364 117/223 1027/1438 183/2330 17/213 103/364 117/223 1027/1438 183/233</code></pre>
63 08aa5d9e Serge Torres
64 08aa5d9e Serge Torres
<p>The name of the file <em>must</em> be <var>config.txt</var>. All utilities
65 08aa5d9e Serge Torres
will look for the information in this file.</p>
66 08aa5d9e Serge Torres
<dl>
67 08aa5d9e Serge Torres
  <dt>function (e.g. cos(x))</dt>
68 08aa5d9e Serge Torres
    <dd>The function we want to interpolate by a polynomial expressed as a
69 08aa5d9e Serge Torres
      formula that can be interpreted by Maple?.</dd>
70 08aa5d9e Serge Torres
  <dt>maximum-error (e.g. 0.0000030)</dt>
71 08aa5d9e Serge Torres
    <dd>The maximum error allowed at the points chosen for the interpolation.
72 08aa5d9e Serge Torres
      It's choice is a critical parameter of the process since a too narrow
73 08aa5d9e Serge Torres
      error will forbid any solution and a too wide error leads to huge
74 08aa5d9e Serge Torres
      number of candiates and, most of the time, will take a very long
75 08aa5d9e Serge Torres
      computation time. The maximum error must be given in a format that can
76 08aa5d9e Serge Torres
      be understood by the different utilities. Plain decimal notation is a
77 08aa5d9e Serge Torres
      safe bet, the so-called "engineer notation" should work too.</dd>
78 08aa5d9e Serge Torres
  <dt>lower-bound (e.g. 0/1)</dt>
79 08aa5d9e Serge Torres
    <dd>The lower bound of the interpolation interval. It must be given in
80 08aa5d9e Serge Torres
      format that can be converted into a "rational" by the different
81 08aa5d9e Serge Torres
      utilities. Integers by themselves (without a "1" denominator) and
82 08aa5d9e Serge Torres
      integer-numerator/integer-denominator fractions are safe bets.</dd>
83 08aa5d9e Serge Torres
  <dt>upper-bound (e.g. 355/452, a rational approximation of Pi/4)</dt>
84 08aa5d9e Serge Torres
    <dd>The upper bound of the interpolation interval. The same remarks hold
85 08aa5d9e Serge Torres
      for the format.</dd>
86 08aa5d9e Serge Torres
  <dt>degree</dt>
87 08aa5d9e Serge Torres
    <dd>The degree of the interpolation polynomial. Must be given as as
88 08aa5d9e Serge Torres
      simple integer.</dd>
89 08aa5d9e Serge Torres
  <dt>points-number</dt>
90 08aa5d9e Serge Torres
    <dd>The number of interpolation points. It must be, at least, equal to
91 08aa5d9e Serge Torres
      <var>degree</var>?+?1. The consistence of the data is not necessarily
92 08aa5d9e Serge Torres
      checked. It is used, in conjunction with the bounds, to generated
93 08aa5d9e Serge Torres
      automatically lists of interpolation points but you can use your own
94 08aa5d9e Serge Torres
      points as explained later. It must be given as a simple integer.</dd>
95 08aa5d9e Serge Torres
  <dt>digits-number [digits-number-list] (e.g. 16)</dt>
96 08aa5d9e Serge Torres
    <dd>On this line you specify the number of digits (well, that's not
97 08aa5d9e Serge Torres
      exactly that) of each coefficient. If only one <var>digits-number</var>
98 08aa5d9e Serge Torres
      is given it is assumed that all coefficients have the same number of
99 08aa5d9e Serge Torres
      digits. If several are given it is assume that the first corresponds to
100 08aa5d9e Serge Torres
      the constant coefficient (x<sup>0</sup>), the next corresponds to
101 08aa5d9e Serge Torres
      coefficient of x<sup>1</sup> , the next to the coefficient of
102 08aa5d9e Serge Torres
      x<sup>2</sup> and so on. If the number of <var>digits-numbers</var> is
103 08aa5d9e Serge Torres
      lower than <var>degree</var>?+?1, it is assumed that the last
104 08aa5d9e Serge Torres
      coefficients all have the same number of digits and that this is the
105 08aa5d9e Serge Torres
      last <var>digits-number</var> given.<br>
106 08aa5d9e Serge Torres
      Examples:
107 08aa5d9e Serge Torres
      <ul>
108 08aa5d9e Serge Torres
        <li>with degree 5: <kbd>16</kbd>
109 08aa5d9e Serge Torres
          &rarr;?a<sub>0</sub>/2<sup><strong>16</strong></sup> +
110 08aa5d9e Serge Torres
          a<sub>1</sub>? x + a<sub>2</sub>/2<sup><strong>16</strong></sup> 
111 08aa5d9e Serge Torres
          x<sup>2</sup> + a<sub>3</sub>/2<sup><strong>16</strong></sup> 
112 08aa5d9e Serge Torres
          x<sup>3</sup>+ a<sub>4</sub>/2<sup><strong>16</strong></sup> 
113 08aa5d9e Serge Torres
          x<sup>4</sup>+ a<sub>5</sub>/2<sup><strong>16</strong></sup> 
114 08aa5d9e Serge Torres
          x<sup>5</sup>;</li>
115 08aa5d9e Serge Torres
        <li>with degree 5; 16 16
116 08aa5d9e Serge Torres
          24&rarr;?a<sub>0</sub>/2<sup><strong>16</strong></sup> +
117 08aa5d9e Serge Torres
          a<sub>1</sub>? x + a<sub>2</sub>/2<sup><strong>16</strong></sup> 
118 08aa5d9e Serge Torres
          x<sup>2</sup> + a<sub>3</sub>/2<sup><strong>24</strong></sup> 
119 08aa5d9e Serge Torres
          x<sup>3</sup>+ a<sub>4</sub>/2<sup><strong>24</strong></sup> 
120 08aa5d9e Serge Torres
          x<sup>4</sup>+ a<sub>5</sub>/2<sup><strong>24</strong></sup> 
121 08aa5d9e Serge Torres
          x<sup>5</sup>;</li>
122 08aa5d9e Serge Torres
      </ul>
123 08aa5d9e Serge Torres
    </dd>
124 08aa5d9e Serge Torres
  <dt>point [points-list] (e.g. 0 17/213 103/364 117/223 1027/1438
125 08aa5d9e Serge Torres
  183/233)</dt>
126 08aa5d9e Serge Torres
    <dd>Instead of having an automatically computed list of points for the
127 08aa5d9e Serge Torres
      interpolation, you can give you own list of space separated points on
128 08aa5d9e Serge Torres
      the third line. This is useful when a very specific set of points is
129 08aa5d9e Serge Torres
      needed. They must be given in a format that can be converted into a
130 08aa5d9e Serge Torres
      "rational". Integers by themselves (without a "1" denominator) and
131 08aa5d9e Serge Torres
      integer-numerator/integer-denominator fractions are safe bets. More
132 08aa5d9e Serge Torres
      about point selection later.</dd>
133 08aa5d9e Serge Torres
</dl>
134 08aa5d9e Serge Torres
135 08aa5d9e Serge Torres
<p>We must stress the fact that the consistency of the file <em>is not</em>
136 08aa5d9e Serge Torres
throughoutly tested. It is then your responsibility to make sure data is
137 08aa5d9e Serge Torres
correctly typed in.</p>
138 08aa5d9e Serge Torres
139 08aa5d9e Serge Torres
<h3><a name="listInterpolationPoints" id="listInterpolationPoints">A list of
140 08aa5d9e Serge Torres
interpolation points</a></h3>
141 08aa5d9e Serge Torres
142 08aa5d9e Serge Torres
<p>The name of the <em>must</em> be <var>pointsList.txt</var>.</p>
143 08aa5d9e Serge Torres
144 08aa5d9e Serge Torres
<p>Sometimes, it is easier to have the list of points in a file by it's own,
145 08aa5d9e Serge Torres
especially if we generate this file with some utility. The file must be made
146 08aa5d9e Serge Torres
of a single line of space separated point coordinates. As for
147 08aa5d9e Serge Torres
<var>config.txt</var>, their format must allow for a conversion into
148 08aa5d9e Serge Torres
"rationals". Integers by themselves (without a "1" denominator) and
149 08aa5d9e Serge Torres
integer-numerator/integer-denominator fractions are safe bets.</p>
150 08aa5d9e Serge Torres
151 08aa5d9e Serge Torres
<p>More about point selection later.</p>
152 08aa5d9e Serge Torres
153 08aa5d9e Serge Torres
<h4>The sortPointsList.pl utility</h4>
154 08aa5d9e Serge Torres
155 08aa5d9e Serge Torres
<p>To create a <var>pointsList.txt</var> file you can use the handy
156 08aa5d9e Serge Torres
<var>bin/sortPointsList.pl</var> utility that will mix, sort and remove
157 08aa5d9e Serge Torres
duplicates from two lists of points, one given on the command line and the
158 08aa5d9e Serge Torres
other one piped through STDIN as in the following example:</p>
159 08aa5d9e Serge Torres
160 08aa5d9e Serge Torres
<p><kbd>echo 0 1065/79552 10295/89496 4473/15368 7597/15368 59995/89496
161 08aa5d9e Serge Torres
61415/79552 355/452 | bin/sortPointsList.pl 0 17/213 103/364 117/223
162 08aa5d9e Serge Torres
1027/1438 183/233 355/452</kbd></p>
163 08aa5d9e Serge Torres
164 08aa5d9e Serge Torres
<p>will out put:</p>
165 08aa5d9e Serge Torres
166 08aa5d9e Serge Torres
<p><samp>0 1065/79552 17/213 10295/89496 103/364 4473/15368 7597/15368
167 08aa5d9e Serge Torres
117/223 59995/89496 1027/1438 61415/79552 355/452 183/233</samp></p>
168 08aa5d9e Serge Torres
169 08aa5d9e Serge Torres
<h4>The computeZeroPoints.sh utility</h4>
170 08aa5d9e Serge Torres
171 08aa5d9e Serge Torres
<p>A "good" source of points is the <var>computeZeroPoints.sh</var> utilty.
172 08aa5d9e Serge Torres
It will use Maple? to compute the zeros of the differential of
173 08aa5d9e Serge Torres
f(x)-P<sub>r</sub>(x) where P<sub>r</sub> is the Remez interpolation
174 08aa5d9e Serge Torres
polynomial of <var>f</var>. We heve noticed that these points notably
175 08aa5d9e Serge Torres
accelerate the speed of the computations by PIP. It is not always enough but
176 08aa5d9e Serge Torres
it is usually a good starting point. The values computed are rational
177 08aa5d9e Serge Torres
approximations of the actual zeros and are displayed on STDOUT.</p>
178 08aa5d9e Serge Torres
179 08aa5d9e Serge Torres
<p>Example of usage: <kbd>computeZeroPoints.sh &gt; pointsList.txt</kbd></p>
180 08aa5d9e Serge Torres
181 08aa5d9e Serge Torres
<h2><a name="prepareBinaries" id="prepareBinaries">Prepare the binaries
182 08aa5d9e Serge Torres
(userFunc.sh)</a></h2>
183 08aa5d9e Serge Torres
184 08aa5d9e Serge Torres
<p>Your next move will be the preparation of the necessary binaries which are
185 08aa5d9e Serge Torres
a set of C programs used to generate the data used by PIP and to filter/check
186 08aa5d9e Serge Torres
the candidate polynomials.</p>
187 08aa5d9e Serge Torres
188 08aa5d9e Serge Torres
<p>The <var>userFunc.sh</var> is used to generate these files. It take one
189 08aa5d9e Serge Torres
parameter: a tiny piece of C++ code defining the function.</p>
190 08aa5d9e Serge Torres
191 08aa5d9e Serge Torres
<p>Let's give an example?: <kbd>userFunc.sh 'cos(x)'</kbd></p>
192 08aa5d9e Serge Torres
193 08aa5d9e Serge Torres
<p>Notice that the formula must be single quoted. The name of the function
194 08aa5d9e Serge Torres
variable <em>must</em> be <var>x</var>. In fact, we use a C++ layer over MPFR
195 08aa5d9e Serge Torres
and it is not yet very well developed. It means that many handy constant as
196 08aa5d9e Serge Torres
Pi are not defined (use an approximate value instead). Many functions are not
197 08aa5d9e Serge Torres
implemented as well and you may have to find a workaround. For instance,
198 08aa5d9e Serge Torres
'x^-4' will be written as 'sqrt(sqrt(x))' which is not very elegant, may add
199 08aa5d9e Serge Torres
up numeric errors and wastes time (the <var>sqrt</var> functionis evaluated
200 08aa5d9e Serge Torres
twice).</p>
201 08aa5d9e Serge Torres
202 08aa5d9e Serge Torres
<p>Whenever constants are used in expressions they must be defined as MPFR
203 08aa5d9e Serge Torres
numbers. Otherwise the regular <var>libc</var> or <var>libm</var> functions
204 08aa5d9e Serge Torres
are used leading to a dramatic loss of accuracy.</p>
205 08aa5d9e Serge Torres
206 08aa5d9e Serge Torres
<p>Example:</p>
207 08aa5d9e Serge Torres
<dl>
208 08aa5d9e Serge Torres
  <dt>sqrt(2)+Pi*x+exp(1)*(x^2) (in Maple)</dt>
209 08aa5d9e Serge Torres
    <dd>userFunc.sh 'sqrt(MpfrClass("2"))+ \<br>
210 08aa5d9e Serge Torres
      MpfrClass("3.1415926535897932384626433832795028841971693993751058209749")*x+
211 08aa5d9e Serge Torres
      \<br>
212 08aa5d9e Serge Torres
      exp(MpfrClass("1"))*x*x'</dd>
213 08aa5d9e Serge Torres
</dl>
214 08aa5d9e Serge Torres
215 08aa5d9e Serge Torres
<p>Please notice the following points:</p>
216 08aa5d9e Serge Torres
<ul>
217 08aa5d9e Serge Torres
  <li>all numeric constants are double quoted so that they are interpreted as
218 08aa5d9e Serge Torres
    strings; the MpfrClass has a constructor to correctly deal with them;
219 08aa5d9e Serge Torres
    otherwise they are interpreted as integers or floats which lead to errors
220 08aa5d9e Serge Torres
    (ambiguities as to the called function that the compiler will loudly
221 08aa5d9e Serge Torres
    complain of) or inaccuracies (for instance the approximated value of Pi
222 08aa5d9e Serge Torres
    is not fully taken into account if written as numeric value since it is
223 08aa5d9e Serge Torres
    considered as a float);</li>
224 08aa5d9e Serge Torres
  <li>single quoting the whole formula avoids problems with the string
225 08aa5d9e Serge Torres
    internal double quotes;</li>
226 08aa5d9e Serge Torres
  <li>invoque the MpfrClass constructor to make sure the "right" versions of
227 08aa5d9e Serge Torres
    sqrt and exp are invoqued; if a numeric constants is left alone the
228 08aa5d9e Serge Torres
    formula will compile and the "wrong" version of the function is silently
229 08aa5d9e Serge Torres
    invoqued with all the nasty consequences.</li>
230 08aa5d9e Serge Torres
</ul>
231 08aa5d9e Serge Torres
232 08aa5d9e Serge Torres
<p>The <var>userFunc.sh</var> will beforehand check your formula (it will
233 08aa5d9e Serge Torres
answer "User function is OK.") and then compile the set utilities that are
234 08aa5d9e Serge Torres
needed in the next steps (if this works, it will dispaly a "Utilities were
235 08aa5d9e Serge Torres
successfully built." message). These binaries will live in the <var
236 08aa5d9e Serge Torres
class="path">bin/</var> directory.</p>
237 08aa5d9e Serge Torres
238 08aa5d9e Serge Torres
<h2><a name="dataForPip" id="dataForPip">Prepare the data for PIP
239 08aa5d9e Serge Torres
(prepareForPipXX.sh)</a></h2>
240 08aa5d9e Serge Torres
241 08aa5d9e Serge Torres
<p>Once the configuration and the binaries are ready, you can prepare the
242 08aa5d9e Serge Torres
data for PIP. You can cook them in four flavors, according to the utility
243 08aa5d9e Serge Torres
invoked to create them. All use the same data for the precision, the interval
244 08aa5d9e Serge Torres
and the degree. They only differ according to how the interpolation points
245 08aa5d9e Serge Torres
are selected.</p>
246 08aa5d9e Serge Torres
247 08aa5d9e Serge Torres
<h3>prepareForPipES.sh (<span
248 08aa5d9e Serge Torres
style="text-decoration: underline">E</span>venly <span
249 08aa5d9e Serge Torres
style="text-decoration: underline">S</span>paced)</h3>
250 08aa5d9e Serge Torres
251 08aa5d9e Serge Torres
<p>In this case a list of evenly spaced points is generated on the fly and
252 08aa5d9e Serge Torres
used to compute the data for PIP. The number of points is given on the first
253 08aa5d9e Serge Torres
line of the configuration file.</p>
254 08aa5d9e Serge Torres
255 08aa5d9e Serge Torres
<h3>prepareForPipCH.sh (<span
256 08aa5d9e Serge Torres
style="text-decoration: underline">CH</span>ebychev)</h3>
257 08aa5d9e Serge Torres
258 08aa5d9e Serge Torres
<p>In this case a list of Chebychev points is generated on the fly and used
259 08aa5d9e Serge Torres
to compute the data for PIP. The number of points is given on the first line
260 08aa5d9e Serge Torres
of the configuration file.</p>
261 08aa5d9e Serge Torres
262 08aa5d9e Serge Torres
<h3>prepareForPipCF.sh (<span
263 08aa5d9e Serge Torres
style="text-decoration: underline">C</span>onfiguration <span
264 08aa5d9e Serge Torres
style="text-decoration: underline">F</span>ile)</h3>
265 08aa5d9e Serge Torres
266 08aa5d9e Serge Torres
<p>In this case the list of points is picked from the third line of the
267 08aa5d9e Serge Torres
configuration file used verbatim. The number of points of the first line is
268 08aa5d9e Serge Torres
totally ignored.</p>
269 08aa5d9e Serge Torres
270 08aa5d9e Serge Torres
<h3>prepareForPipPL.sh (<span
271 08aa5d9e Serge Torres
style="text-decoration: underline">P</span>oints<span
272 08aa5d9e Serge Torres
style="text-decoration: underline">L</span>ist)</h3>
273 08aa5d9e Serge Torres
274 08aa5d9e Serge Torres
<p>In this last case, the list of points is <cite
275 08aa5d9e Serge Torres
class="etranger">verbatim</cite> copied from the <var>pointsList.txt</var>
276 08aa5d9e Serge Torres
file. The number of points of the first line of <var>config.txt</var> is not
277 08aa5d9e Serge Torres
taken into account at all. The format of this file described <a
278 08aa5d9e Serge Torres
href="#listInterpolationPoints">here</a>.</p>
279 08aa5d9e Serge Torres
280 08aa5d9e Serge Torres
<p>Eventually, in all cases, the actual list of points is stored in the
281 08aa5d9e Serge Torres
<var>extractedPointsList.txt</var> file which can be used to check what
282 08aa5d9e Serge Torres
really are the used points. By the way, <var>extractedPointsList.txt</var> is
283 08aa5d9e Serge Torres
not a valid name for a user provided points list file. Never edit this file
284 08aa5d9e Serge Torres
since your modifications will be overwritten any of the
285 08aa5d9e Serge Torres
<var>prepareForPipXX.sh</var> utilities is run.</p>
286 08aa5d9e Serge Torres
287 08aa5d9e Serge Torres
<h2><a id="runPip" name="runPip">Run PIP</a></h2>
288 08aa5d9e Serge Torres
289 08aa5d9e Serge Torres
<p>There are two flavors of PIP execution?:</p>
290 08aa5d9e Serge Torres
<ol>
291 08aa5d9e Serge Torres
  <li>a serial (and local) version;</li>
292 08aa5d9e Serge Torres
  <li>a parallel (and distant) version.</li>
293 08aa5d9e Serge Torres
</ol>
294 08aa5d9e Serge Torres
295 08aa5d9e Serge Torres
<h3>runPipSerial.sh</h3>
296 08aa5d9e Serge Torres
297 08aa5d9e Serge Torres
<p>This script will run PIP on your computer (in fact, on the computer the
298 08aa5d9e Serge Torres
shell is opened on). Min and max searches are run one after another, which is
299 08aa5d9e Serge Torres
not optimal. But we have notice that for quick searches it is as fast or
300 08aa5d9e Serge Torres
sometimes faster than the parallel version (no MPI overhead). As always, it
301 08aa5d9e Serge Torres
is better to run on a powerful machine (in LIP, you may SSH to a computation
302 08aa5d9e Serge Torres
server before you run the script). The script display the computation
303 08aa5d9e Serge Torres
progression (search of a min or of a max of a given variable).</p>
304 08aa5d9e Serge Torres
305 08aa5d9e Serge Torres
<h3>runPip.sh</h3>
306 08aa5d9e Serge Torres
307 08aa5d9e Serge Torres
<p>This script will run PIP in parallel (through MPI) on the processors of
308 08aa5d9e Serge Torres
courge.ens-lyon.fr. Generally speaking it is quicker than the serial version
309 08aa5d9e Serge Torres
when computations last long. The major drawback of this mode is that it does
310 08aa5d9e Serge Torres
not display the point of the computation has reached.</p>
311 08aa5d9e Serge Torres
312 08aa5d9e Serge Torres
<p>Both flavors produce a GP/PARI program file named <var>loops.txt</var>.
313 08aa5d9e Serge Torres
When the parallel version fails, this file will hold an error message
314 08aa5d9e Serge Torres
instead. It is a good idea to allways check this file before moving to the
315 08aa5d9e Serge Torres
next step.</p>
316 08aa5d9e Serge Torres
317 08aa5d9e Serge Torres
<h2><a name="computeCandidates" id="computeCandidates">Compute the candidates
318 08aa5d9e Serge Torres
(computeCandidates.sh)</a></h2>
319 08aa5d9e Serge Torres
320 08aa5d9e Serge Torres
<p>The computeCandidates.sh script will essentially run <var>GP/PARI</var>
321 08aa5d9e Serge Torres
and compute a set of candidate coefficients. They will be stored in the
322 08aa5d9e Serge Torres
<var>candidates.txt</var> file.</p>
323 08aa5d9e Serge Torres
324 08aa5d9e Serge Torres
<h2><a name="filterCandidates" id="filterCandidates">Filter the candidates
325 08aa5d9e Serge Torres
(filterCandidates.sh</a>)</h2>
326 08aa5d9e Serge Torres
327 08aa5d9e Serge Torres
<p>In many situations, the set of candidates may be overwhelmingly large to
328 08aa5d9e Serge Torres
be checked in a reasonable amount of time. Before you try to check all these
329 08aa5d9e Serge Torres
candidates by computing the f(x)-p(x) infinite norm, which takes some time,
330 08aa5d9e Serge Torres
it may be better to filter out quickly the worst solutions. The
331 08aa5d9e Serge Torres
<var>filterCandidates.sh</var> allows you to evaluate the candidates against
332 08aa5d9e Serge Torres
the function with a specified error and on a number of points. If none is
333 08aa5d9e Serge Torres
specified, the maximum error in <var>config.txt</var> and the
334 08aa5d9e Serge Torres
<var>extractedPointsList.txt</var> file used. This is pointless since none of
335 08aa5d9e Serge Torres
the candidates should be filtered out under these conditions. Only candidates
336 08aa5d9e Serge Torres
that successfully pass the test are displayed and copied into the
337 08aa5d9e Serge Torres
<var>filteredCandidates.txt</var> file.</p>
338 08aa5d9e Serge Torres
339 08aa5d9e Serge Torres
<p>If only one parameter is given, it is considered as the maximum-error, the
340 08aa5d9e Serge Torres
points used to compute the interpolation (as listed in
341 08aa5d9e Serge Torres
<var>extractedPoints.txt</var>) are also used as test points. When a number
342 08aa5d9e Serge Torres
of points is given, the original set is augmented by a mix of evenly spaced
343 08aa5d9e Serge Torres
and Chebychev points. The actual number of points may differ slightly
344 08aa5d9e Serge Torres
(greater or equal) from the specified one because of duplicate points that
345 08aa5d9e Serge Torres
may show up in the points computing process. If the number of points
346 08aa5d9e Serge Torres
specified on the command line is smaller than the number of points listed in
347 08aa5d9e Serge Torres
<var>extractedPoints.txt</var>, the latter is used.</p>
348 08aa5d9e Serge Torres
349 08aa5d9e Serge Torres
<p>Examples:</p>
350 08aa5d9e Serge Torres
<dl>
351 08aa5d9e Serge Torres
  <dt>filterCandidates.sh</dt>
352 08aa5d9e Serge Torres
    <dd>Running this command is probably a waste of time:? it will use the
353 08aa5d9e Serge Torres
      maximum error and the set of points used to compute the candidates, so
354 08aa5d9e Serge Torres
      none of them should be filtered out. However it may be usefull to test
355 08aa5d9e Serge Torres
      the tools.</dd>
356 08aa5d9e Serge Torres
  <dt>filterCandidates.sh 0.00000187</dt>
357 08aa5d9e Serge Torres
    <dd>This command will try to filter out the candidates with a maximum
358 08aa5d9e Serge Torres
      error of 0.00000187. The points used are those listed in the
359 08aa5d9e Serge Torres
      <var>extractedPoints.txt</var> file.</dd>
360 08aa5d9e Serge Torres
  <dt>filterCandidates.sh 0.00000187 150</dt>
361 08aa5d9e Serge Torres
    <dd>This command will try to filter out the candidates with a maximum
362 08aa5d9e Serge Torres
      error of 0.00000187. The set of points will be that listed in the
363 08aa5d9e Serge Torres
      <var>extractedPoints.txt</var> file augmented by a set of evenly spaced
364 08aa5d9e Serge Torres
      and Chebychev (a 50/50 mix) points to reach a total of 150.</dd>
365 08aa5d9e Serge Torres
</dl>
366 08aa5d9e Serge Torres
367 08aa5d9e Serge Torres
<h2><a name="checkCandidates" id="checkCandidates">Check the candidates
368 08aa5d9e Serge Torres
(checkCandidates.sh)</a></h2>
369 08aa5d9e Serge Torres
370 08aa5d9e Serge Torres
<p>The final step is to check and order the candidates so that you can pick
371 08aa5d9e Serge Torres
up the best solution. The <var>checkCandidates.sh</var> script will allow you
372 08aa5d9e Serge Torres
to do so. It will check the infinite norm of <var>f(x)-p(x)</var> for each
373 08aa5d9e Serge Torres
candidate, and sort them according to the result. Since the infinite norm
374 08aa5d9e Serge Torres
evaluation heavilly relies on Maple?, the process is rather time consuming (a
375 08aa5d9e Serge Torres
couple of seconds for each candidate). Only small sets of candidates should
376 08aa5d9e Serge Torres
interactively checked, bigger sets should be <a
377 08aa5d9e Serge Torres
href="#filterCandidates">filtered</a> beforehand.</p>
378 08aa5d9e Serge Torres
379 08aa5d9e Serge Torres
<p>The behaviour will differ according to the existing files and the command
380 08aa5d9e Serge Torres
line parameters.</p>
381 08aa5d9e Serge Torres
382 08aa5d9e Serge Torres
<p>If no command line parameter is specified, the script will look for the
383 08aa5d9e Serge Torres
<var>candidates.txt</var> and the <var>filteredCandidates.txt</var> files. If
384 08aa5d9e Serge Torres
both are found, the script will ask you to choose the right source for
385 08aa5d9e Serge Torres
candidates. If only of them is found (generally <var>candidates.txt</var>, if
386 08aa5d9e Serge Torres
no filtering has been done) this one is used as the candidates source for the
387 08aa5d9e Serge Torres
check.</p>
388 08aa5d9e Serge Torres
389 08aa5d9e Serge Torres
<p>If a parameter is given on the command line, it is considered as file name
390 08aa5d9e Serge Torres
and the corresponding file is used as the candidtes source for the check.</p>
391 08aa5d9e Serge Torres
392 08aa5d9e Serge Torres
<p>The polynomials are displayed on STDERR. Dots are displayed on STDERR to
393 08aa5d9e Serge Torres
show the progression of the infinite norm evaluations (one dot per
394 08aa5d9e Serge Torres
evaluation). The sorted list (best precision first) of the polynomials
395 08aa5d9e Serge Torres
(constant coefficient, x coefficient, x<sup>2</sup>?coefficient,
396 08aa5d9e Serge Torres
x<sup>3</sup>?coefficient, etc., infinite norm) is displayed on STDOUT. They
397 08aa5d9e Serge Torres
are also stored in the <var>sortedSolutions.txt</var> file</p>
398 08aa5d9e Serge Torres
399 08aa5d9e Serge Torres
<h2><a name="files" id="files">The files</a></h2>
400 08aa5d9e Serge Torres
401 08aa5d9e Serge Torres
<p>This sections lists and describes the files of a typical environment. The
402 08aa5d9e Serge Torres
general layout is :</p>
403 08aa5d9e Serge Torres
<ul>
404 08aa5d9e Serge Torres
  <li>workDirectory (e.g. <var class="path">polytopes/cos4ST</var>)
405 08aa5d9e Serge Torres
    <ul>
406 08aa5d9e Serge Torres
      <li>bin</li>
407 08aa5d9e Serge Torres
      <li>pipData</li>
408 08aa5d9e Serge Torres
      <li>utils</li>
409 08aa5d9e Serge Torres
    </ul>
410 08aa5d9e Serge Torres
  </li>
411 08aa5d9e Serge Torres
</ul>
412 08aa5d9e Serge Torres
413 08aa5d9e Serge Torres
<h3>workDirectory</h3>
414 08aa5d9e Serge Torres
415 08aa5d9e Serge Torres
<p>This should be your current directory.</p>
416 08aa5d9e Serge Torres
<dl>
417 08aa5d9e Serge Torres
  <dt>argsForCheck.sh</dt>
418 08aa5d9e Serge Torres
    <dd>This scripts computes the arguments for the candidates checking
419 08aa5d9e Serge Torres
      utility. Do not edit.</dd>
420 08aa5d9e Serge Torres
  <dt>argsForFilter.sh</dt>
421 08aa5d9e Serge Torres
    <dd>This script computes the arguments for the candidates filtering
422 08aa5d9e Serge Torres
      utility. Do not edit.</dd>
423 08aa5d9e Serge Torres
  <dt>argsForPointsList.sh</dt>
424 08aa5d9e Serge Torres
    <dd>This scripts computes the arguments for the list computing utilities.
425 08aa5d9e Serge Torres
      Do not edit.</dd>
426 08aa5d9e Serge Torres
  <dt>argsForVandermonde.sh</dt>
427 08aa5d9e Serge Torres
    <dd>This script computes the arguments for the Vandermonde matrix
428 08aa5d9e Serge Torres
      creation utility (used for offsets). Do not edit.</dd>
429 08aa5d9e Serge Torres
  <dt>argsForZeroPoints.sh</dt>
430 08aa5d9e Serge Torres
    <dd>This script computes the arguments for the utility that computes  the
431 08aa5d9e Serge Torres
      zeros of the differential of f(x)-P<sub>r</sub>(x) where P<sub>r</sub>
432 08aa5d9e Serge Torres
      is the Remez interpolation polynomial of <var>f</var>. Do not edit.</dd>
433 08aa5d9e Serge Torres
  <dt>candidates.txt</dt>
434 08aa5d9e Serge Torres
    <dd>This data file is computed by GP/PARI using the <var>loops.txt</var>
435 08aa5d9e Serge Torres
      file as input.</dd>
436 08aa5d9e Serge Torres
  <dt>checkCandidates.sh</dt>
437 08aa5d9e Serge Torres
    <dd>This script invokes the candidates checking and sorting utility in
438 08aa5d9e Serge Torres
      <var class="path">bin</var>. Do not edit</dd>
439 08aa5d9e Serge Torres
  <dt>computeCandidates.sh</dt>
440 08aa5d9e Serge Torres
    <dd>This script invoques GP/PARIS to compute the
441 08aa5d9e Serge Torres
      <var>candidates.txt</var> file from the <var>loops.txt</var> file.</dd>
442 08aa5d9e Serge Torres
  <dt>computeCheckPoints.sh</dt>
443 08aa5d9e Serge Torres
    <dd>This script will compute extra test points to filter out the worst
444 08aa5d9e Serge Torres
      candidates.</dd>
445 08aa5d9e Serge Torres
  <dt>computeZeroPoints.sh</dt>
446 08aa5d9e Serge Torres
    <dd>This script will invoke an utility in <var class="path">bin</var>
447 08aa5d9e Serge Torres
      that will, in turn, use Maple? to compute  the zeros of the
448 08aa5d9e Serge Torres
      differential of <var>f(x)-P<sub>r</sub>(x)</var> where P<sub>r</sub> is
449 08aa5d9e Serge Torres
      the Remez interpolation polynomial of <var>f</var>. Do not edit.</dd>
450 08aa5d9e Serge Torres
  <dt>config.txt</dt>
451 08aa5d9e Serge Torres
    <dd>This data file holds the configuration. Do edit !</dd>
452 08aa5d9e Serge Torres
  <dt>createDigitsFile.sh</dt>
453 08aa5d9e Serge Torres
    <dd>This script will compute the full digits descriptions for the
454 08aa5d9e Serge Torres
      coefficients of the polynomial based on the (incomplete) data from
455 08aa5d9e Serge Torres
      <var>config.txt</var>.</dd>
456 08aa5d9e Serge Torres
  <dt>digits.txt</dt>
457 08aa5d9e Serge Torres
    <dd>This date file is computed by the <var>createDigitsFiles.sh</var>
458 08aa5d9e Serge Torres
      script. It hold the full digits descriptions for the coefficients of
459 08aa5d9e Serge Torres
      the polynomial. Do not edit since all modifications will be overwritten
460 08aa5d9e Serge Torres
      the next time one of the <var>prepareForPipXX.sh</var> utilities family
461 08aa5d9e Serge Torres
      is run.</dd>
462 08aa5d9e Serge Torres
  <dt>dirtyUpCandidates.sh</dt>
463 08aa5d9e Serge Torres
    <dd>This script only holds dirty stuff, but do not remove it. Do not
464 08aa5d9e Serge Torres
    edit.</dd>
465 08aa5d9e Serge Torres
  <dt>extractedPointsList.txt</dt>
466 08aa5d9e Serge Torres
    <dd>This data file holds the actual list of interpolation points since
467 08aa5d9e Serge Torres
      you can specify them in several different ways. Check this file to know
468 08aa5d9e Serge Torres
      which are the actual points. Do not edit since th contents is
469 08aa5d9e Serge Torres
      overwritten each time one of the <var>prepareForPipXX.sh</var> is run.
470 08aa5d9e Serge Torres
      Do not edit.</dd>
471 08aa5d9e Serge Torres
  <dt>filterCandidates.sh</dt>
472 08aa5d9e Serge Torres
    <dd>This script invokes the filtering utility in <var
473 08aa5d9e Serge Torres
      class="path">bin</var>. Do not edit.</dd>
474 08aa5d9e Serge Torres
  <dt>filteredCandidates.txt</dt>
475 08aa5d9e Serge Torres
    <dd>This data file hold the list of the filtered candidates created by
476 08aa5d9e Serge Torres
      the <var>filterCandidates.sh</var> script. Do not edit since it will be
477 08aa5d9e Serge Torres
      overwritten each time <var>filterCandidates.sh</var> is run.</dd>
478 08aa5d9e Serge Torres
  <dt>forPip-search-max.txt</dt>
479 08aa5d9e Serge Torres
    <dd>This data file is used when computing the higher bound for the
480 08aa5d9e Serge Torres
      coefficients of the polynomial. Do not edit since it will be
481 08aa5d9e Serge Torres
      overwritten each time a script of the <var>prepareForPipXX.sh</var>
482 08aa5d9e Serge Torres
      utilities family is run. It only holds the data corresponding to the
483 08aa5d9e Serge Torres
      last (higher degree) coefficient.</dd>
484 08aa5d9e Serge Torres
  <dt>forPip-search-max.txt</dt>
485 08aa5d9e Serge Torres
    <dd>This data file is used when computing the lower bound for the
486 08aa5d9e Serge Torres
      coefficients of the polynomial. Do not edit since it will be
487 08aa5d9e Serge Torres
      overwritten each time a script of the <var>prepareForPipXX.sh</var>
488 08aa5d9e Serge Torres
      utilities family is run. It only holds the data corresponding to the
489 08aa5d9e Serge Torres
      last (higher degree) coefficient.</dd>
490 08aa5d9e Serge Torres
  <dt>getBinaries.sh</dt>
491 08aa5d9e Serge Torres
    <dd>This script copies back into your <var class="path">bin</var>
492 08aa5d9e Serge Torres
      directory the C binary function dependents programs that are compiled
493 08aa5d9e Serge Torres
      somewhere else in the system when you invoke the <var>userFunc.sh</var>
494 08aa5d9e Serge Torres
      script. Do not edit</dd>
495 08aa5d9e Serge Torres
  <dt>how-to.html</dt>
496 08aa5d9e Serge Torres
    <dd>This file. Do whatever you want!</dd>
497 08aa5d9e Serge Torres
  <dt>inv.txt</dt>
498 08aa5d9e Serge Torres
    <dd>This data file is an intermediate step in the calculation of the
499 08aa5d9e Serge Torres
      offset vector. Do not edit.</dd>
500 08aa5d9e Serge Torres
  <dt>loops.txt</dt>
501 08aa5d9e Serge Torres
    <dd>This data file is generated par the different flavors of
502 08aa5d9e Serge Torres
      <var>runPip*.sh</var>. It may hold garbage or message errors if the
503 08aa5d9e Serge Torres
      computation failed, especially in the MPI parallel version. Do not edit
504 08aa5d9e Serge Torres
      since it will be overwritten the next time a member of the
505 08aa5d9e Serge Torres
      <var>runPip*.sh</var> family is run (even if the execution fails!).</dd>
506 08aa5d9e Serge Torres
  <dt>mkloops-aug.txt</dt>
507 08aa5d9e Serge Torres
    <dd>This data file holds the information used to prepare the input file
508 08aa5d9e Serge Torres
      for PIP. It is generated bye the  <var>prepareForPipXX.sh</var> scripts
509 08aa5d9e Serge Torres
      family. You may check it to know what is the actual data used as a
510 08aa5d9e Serge Torres
      starting point to work with PIP. Do not edit since it is overwritten
511 08aa5d9e Serge Torres
      each time a member of <var>prepareForPipXX.sh</var>scripts family is
512 08aa5d9e Serge Torres
      run. This file is the product of the "augmentation" of
513 08aa5d9e Serge Torres
      <var>mkloops.txt</var> with the bound in the variable section.</dd>
514 08aa5d9e Serge Torres
  <dt>mkloops-bounds.txt</dt>
515 08aa5d9e Serge Torres
    <dd>This data file holds the bounds for all the coefficients (for a
516 08aa5d9e Serge Torres
      correct interpretation they must be corrected by an offset found in the
517 08aa5d9e Serge Torres
      <var>w.txt</var> file. Do not edit since it is overwritten each time a
518 08aa5d9e Serge Torres
      member of <var>prepareForPipXX.sh</var>scripts family is run. It is
519 08aa5d9e Serge Torres
      also used by some versions of the <var>runPip*.sh</var> script family
520 08aa5d9e Serge Torres
      to add context information for PIP at each step. Until further
521 08aa5d9e Serge Torres
      experiments show it another way his "optimization" does not seem to
522 08aa5d9e Serge Torres
      efficient.</dd>
523 08aa5d9e Serge Torres
  <dt>mkloops.txt</dt>
524 08aa5d9e Serge Torres
    <dd>This data file holds the information used to prepare the input file
525 08aa5d9e Serge Torres
      for PIP. It is generated bye the  <var>prepareForPipXX.sh</var> scripts
526 08aa5d9e Serge Torres
      family. It is not used as such now and is augmented by the data of
527 08aa5d9e Serge Torres
      <var>mkloops-bounds.txt</var> inserted in the variable area. Do not
528 08aa5d9e Serge Torres
      edit since it is overwritten each time a member of
529 08aa5d9e Serge Torres
      <var>prepareForPipXX.sh</var> scripts family is run.</dd>
530 08aa5d9e Serge Torres
  <dt>pointsList.txt</dt>
531 08aa5d9e Serge Torres
    <dd>This data file is used to hold a user defined list of interpolation
532 08aa5d9e Serge Torres
      points. Do edit!</dd>
533 08aa5d9e Serge Torres
  <dt>prepareForPipCF.sh</dt>
534 08aa5d9e Serge Torres
    <dd>This scripts is a member of a family that invokes, in turn, a lot of
535 08aa5d9e Serge Torres
      utilities to prepare the data for PIP. It produces, among others, the
536 08aa5d9e Serge Torres
      <var>extractedPointsList.txt</var>, the <var>mkloops.txt</var>, the
537 08aa5d9e Serge Torres
      <var>mkloops-aug.txt</var> and the <var>mkloops-bounds.txt</var>
538 08aa5d9e Serge Torres
      files.This specific script extracts the interpolation points from the
539 08aa5d9e Serge Torres
      <var>config.txt</var> file. Do not edit.</dd>
540 08aa5d9e Serge Torres
  <dt>prepareForPipCH.sh</dt>
541 08aa5d9e Serge Torres
    <dd>This scripts is a member of a family that invokes, in turn, a lot of
542 08aa5d9e Serge Torres
      utilities to prepare the data for PIP. It produces, among others, the
543 08aa5d9e Serge Torres
      <var>extractedPointsList.txt</var>, the <var>mkloops.txt</var>, the
544 08aa5d9e Serge Torres
      <var>mkloops-aug.txt</var> and the <var>mkloops-bounds.txt</var> files.
545 08aa5d9e Serge Torres
      This specific script computes <var>extractedPointsList.txt</var> using
546 08aa5d9e Serge Torres
      the data of <var>config.txt</var> as a list of Chebychev points between
547 08aa5d9e Serge Torres
      the bounds. Do not edit.</dd>
548 08aa5d9e Serge Torres
  <dt>prepareForPipES.sh</dt>
549 08aa5d9e Serge Torres
    <dd>This scripts is a member of a family that invokes, in turn, a lot of
550 08aa5d9e Serge Torres
      utilities to prepare the data for PIP. It produces, among others, the
551 08aa5d9e Serge Torres
      <var>extractedPointsList.txt</var>, the <var>mkloops.txt</var>, the
552 08aa5d9e Serge Torres
      <var>mkloops-aug.txt</var> and the <var>mkloops-bounds.txt</var> files.
553 08aa5d9e Serge Torres
      This specific script computes <var>extractedPointsList.txt</var> using
554 08aa5d9e Serge Torres
      the data of <var>config.txt</var> as a list evenly spaced points
555 08aa5d9e Serge Torres
      between the bounds. Do not edit.</dd>
556 08aa5d9e Serge Torres
  <dt>prepareForPipPL.sh</dt>
557 08aa5d9e Serge Torres
    <dd>This scripts is a member of a family that invokes, in turn, a lot of
558 08aa5d9e Serge Torres
      utilities to prepare the data for PIP. It produces, among others, the
559 08aa5d9e Serge Torres
      <var>extractedPointsList.txt</var>, the <var>mkloops.txt</var>, the
560 08aa5d9e Serge Torres
      <var>mkloops-aug.txt</var> and the <var>mkloops-bounds.txt</var> files.
561 08aa5d9e Serge Torres
      This specific script extracts the interpolation points from the
562 08aa5d9e Serge Torres
      <var>pointList.txt</var> or the file given as an argument on the
563 08aa5d9e Serge Torres
      command line . Do not edit.</dd>
564 08aa5d9e Serge Torres
  <dt>runPipSerial.sh</dt>
565 08aa5d9e Serge Torres
    <dd>This script will make all the runs of PIP serial on the computer it
566 08aa5d9e Serge Torres
      has been launched. It computes the <var>loops.txt</var> file. Do not
567 08aa5d9e Serge Torres
      edit</dd>
568 08aa5d9e Serge Torres
  <dt>runPip.sh</dt>
569 08aa5d9e Serge Torres
    <dd>This script will run the min and the max PIP searches for a given
570 08aa5d9e Serge Torres
      coefficient in parallel.  It computes the <var>loops.txt</var> file. Do
571 08aa5d9e Serge Torres
      not edit.</dd>
572 08aa5d9e Serge Torres
  <dt>sortedSolutions.txt</dt>
573 08aa5d9e Serge Torres
    <dd>This data file holds the candidates polynomial (well the numerator of
574 08aa5d9e Serge Torres
      their coefficients) as sorted list according to the decreasing infinite
575 08aa5d9e Serge Torres
      norm of f(x)?-?P(x). Do not edit since it is overwritten each time you
576 08aa5d9e Serge Torres
      run the <var>checkCandidates.sh</var> script.</dd>
577 08aa5d9e Serge Torres
  <dt>userFunc.sh</dt>
578 08aa5d9e Serge Torres
    <dd>This script tries to compile the definition of your function and full
579 08aa5d9e Serge Torres
      set of C programs that are invoked by the <var>prepareForPipXX.sh</var>
580 08aa5d9e Serge Torres
      script family and by the <var>filterCandidates.sh</var> script.</dd>
581 08aa5d9e Serge Torres
  <dt>w.txt</dt>
582 08aa5d9e Serge Torres
    <dd>This data file holds an offset vector that is applied to the
583 08aa5d9e Serge Torres
      solutions computed by PIP to find the actual values. The file is
584 08aa5d9e Serge Torres
      produced by the <var>prepareForPipXX.sh</var> script family. Do not
585 08aa5d9e Serge Torres
      edit since it is overwritten each time a member of the
586 08aa5d9e Serge Torres
      <var>prepareForPipXX.sh</var> script family is run.</dd>
587 08aa5d9e Serge Torres
</dl>
588 08aa5d9e Serge Torres
589 08aa5d9e Serge Torres
<h3>bin</h3>
590 08aa5d9e Serge Torres
591 08aa5d9e Serge Torres
<p>Most of the file in <var class="path">bin</var> are symbolic link to other
592 08aa5d9e Serge Torres
files. Only the binaries specific to your function are hard copied there.</p>
593 08aa5d9e Serge Torres
594 08aa5d9e Serge Torres
<p>Files should nor be edited:?this would not only break your workspace but
595 08aa5d9e Serge Torres
might break others as well!</p>
596 08aa5d9e Serge Torres
<dl>
597 08aa5d9e Serge Torres
  <dt>addBoundsToMkloops-01.pl</dt>
598 08aa5d9e Serge Torres
    <dd>This script computes the bounds for all coefficients and melts these
599 08aa5d9e Serge Torres
      data with those of the <var>mkloops.txt</var> file to generate the
600 08aa5d9e Serge Torres
      <var>mkloops-aug.txt</var> file.</dd>
601 08aa5d9e Serge Torres
  <dt>checkSolutions-02.pl</dt>
602 08aa5d9e Serge Torres
    <dd>The current version of the solution checker</dd>
603 08aa5d9e Serge Torres
  <dt>cleanUpSolutions-01.pl</dt>
604 08aa5d9e Serge Torres
    <dd>This script removes all the syntactic sugar around the candidates as
605 08aa5d9e Serge Torres
      outputted by GP/PARI from the <var>loops.txt</var> file.</dd>
606 08aa5d9e Serge Torres
  <dt>computeBoundsForMkloops-01.pl</dt>
607 08aa5d9e Serge Torres
    <dd>This script computes the bounds and is used to print them into the
608 08aa5d9e Serge Torres
      <var>mlkoops-bounds.txt</var> file.</dd>
609 08aa5d9e Serge Torres
  <dt>configPointsList.sh</dt>
610 08aa5d9e Serge Torres
    <dd>This scripts is used to extract the points list from the
611 08aa5d9e Serge Torres
      <var>config.txt</var> file.</dd>
612 08aa5d9e Serge Torres
  <dt>cppCodeGen.pl</dt>
613 08aa5d9e Serge Torres
    <dd>This script writes a C++ file holding the function definition given
614 08aa5d9e Serge Torres
      as a parameter to the <var>userFunc.sh</var> script.</dd>
615 08aa5d9e Serge Torres
  <dt>createVandermonde.pl</dt>
616 08aa5d9e Serge Torres
    <dd>This script creates a Vandermonde matrix. It is called by all the
617 08aa5d9e Serge Torres
      members of the <var>prepareForPipXX.sh</var> script family.</dd>
618 08aa5d9e Serge Torres
  <dt>filter-solutions</dt>
619 08aa5d9e Serge Torres
    <dd>This user function dependent binary is used to filter the
620 08aa5d9e Serge Torres
    candidates.</dd>
621 08aa5d9e Serge Torres
  <dt>generate-w-vector</dt>
622 08aa5d9e Serge Torres
    <dd>This user function dependent binary is used to generate the offset
623 08aa5d9e Serge Torres
      vector</dd>
624 08aa5d9e Serge Torres
  <dt>invVandermonde.pl</dt>
625 08aa5d9e Serge Torres
    <dd>This script is used to invert the Vandermonde matrix (called by the
626 08aa5d9e Serge Torres
      members of the <var>prepareForPipXX.sh</var> script family).</dd>
627 08aa5d9e Serge Torres
  <dt>machineFile.txt</dt>
628 08aa5d9e Serge Torres
    <dd>A data file used by MPI to scatter the job among the computers.</dd>
629 08aa5d9e Serge Torres
  <dt>makePariLoopsRationalBigInt-05.pl</dt>
630 08aa5d9e Serge Torres
    <dd>This script is used to run PIP in the serial mode. This particular
631 08aa5d9e Serge Torres
      version injects the bounds in the context.</dd>
632 08aa5d9e Serge Torres
  <dt>makePariLoopsRationalBigIntMpi-02.pl</dt>
633 08aa5d9e Serge Torres
    <dd>This script is used to run PIP in the parallel mode.</dd>
634 08aa5d9e Serge Torres
  <dt>mkloops-with-w</dt>
635 08aa5d9e Serge Torres
    <dd>This function dependent binary creates the <var>mkloops.txt</var>
636 08aa5d9e Serge Torres
      file taking into account the vector held in the <var>w.txt</var>
637 08aa5d9e Serge Torres
    file.</dd>
638 08aa5d9e Serge Torres
  <dt>pipMP</dt>
639 08aa5d9e Serge Torres
    <dd>This binary is a multiprecision (input, internal computations,
640 08aa5d9e Serge Torres
      output) version of PIP.</dd>
641 08aa5d9e Serge Torres
  <dt>printESPointsList.pl</dt>
642 08aa5d9e Serge Torres
    <dd>This script computes, for a given interval, a list of evenly spaced
643 08aa5d9e Serge Torres
      points.</dd>
644 08aa5d9e Serge Torres
  <dt>printGeneratorVector.pl</dt>
645 08aa5d9e Serge Torres
    <dd>This script computes a generator vector for a Vandermonde matrix</dd>
646 08aa5d9e Serge Torres
  <dt>printTCPointsList.pl</dt>
647 08aa5d9e Serge Torres
    <dd>This script computes, for a given interval, a list of Chebychev
648 08aa5d9e Serge Torres
      points.</dd>
649 08aa5d9e Serge Torres
  <dt>runMPI.sh</dt>
650 08aa5d9e Serge Torres
    <dd>This is script is wrapper used to run
651 08aa5d9e Serge Torres
      makePariLoopsRationalBigIntMpi-02.pl through MPI.</dd>
652 08aa5d9e Serge Torres
  <dt>sortPointsList.pl</dt>
653 08aa5d9e Serge Torres
    <dd>This script can be used to melt two lists of points. The result is
654 08aa5d9e Serge Torres
      sorted with all duplicates removed.</dd>
655 08aa5d9e Serge Torres
  <dt>zeroPoints-01.pl</dt>
656 08aa5d9e Serge Torres
    <dd>This script will use Maple? to compute the zeros of the differential
657 08aa5d9e Serge Torres
      of <var>f(x)-P<sub>r</sub>(x)</var> where P<sub>r</sub> is the Remez
658 08aa5d9e Serge Torres
      interpolation polynomial of <var>f</var>.</dd>
659 08aa5d9e Serge Torres
</dl>
660 08aa5d9e Serge Torres
661 08aa5d9e Serge Torres
<h3>pipData</h3>
662 08aa5d9e Serge Torres
663 08aa5d9e Serge Torres
<p>This directory holds the data fed to and generated by PIP to compute the
664 08aa5d9e Serge Torres
<var>loops.txt</var> file. Hence there are two main kinds of files : the "for
665 08aa5d9e Serge Torres
PIP" and the "from PIP" files. The name of a file reflects the category
666 08aa5d9e Serge Torres
(forPip, fromPip), the index of the coefficient it is related to
667 08aa5d9e Serge Torres
(a?&rarr;?index?==?0, b?&rarr;?index?==?1, etc.), and the type of search (min
668 08aa5d9e Serge Torres
or max).</p>
669 08aa5d9e Serge Torres
670 08aa5d9e Serge Torres
<p>Examples:</p>
671 08aa5d9e Serge Torres
<dl>
672 08aa5d9e Serge Torres
  <dt>forPip-e-min.txt</dt>
673 08aa5d9e Serge Torres
    <dd>PIP is fed with this file for minimum search of the coefficient of
674 08aa5d9e Serge Torres
      x<sup>4</sup>.</dd>
675 08aa5d9e Serge Torres
  <dt>fromPip-b-min.txt</dt>
676 08aa5d9e Serge Torres
    <dd>PIP generated this file in a maximum search for the coefficient of
677 08aa5d9e Serge Torres
      x<sup>1</sup>.</dd>
678 08aa5d9e Serge Torres
</dl>
679 08aa5d9e Serge Torres
680 08aa5d9e Serge Torres
<p>Checking these files may be useful to control the correctness of the
681 08aa5d9e Serge Torres
computations but also, when the progression of the processing is not
682 08aa5d9e Serge Torres
displayed, to know which is the current step (based on file dates).</p>
683 08aa5d9e Serge Torres
684 08aa5d9e Serge Torres
<p>Do not edit them since they will be overwritten when a member of the
685 08aa5d9e Serge Torres
<var>runPip*.sh</var> script family is run.</p>
686 08aa5d9e Serge Torres
687 08aa5d9e Serge Torres
<p>However it is possible to run PIP directly on one of the (edited) "forPip"
688 08aa5d9e Serge Torres
files to visually check the output. In this case do not forget the "-z"
689 08aa5d9e Serge Torres
command line parameter.</p>
690 08aa5d9e Serge Torres
691 08aa5d9e Serge Torres
<p>Example: <kbd>../bin/pipMP -z forPip-a-min.txt</kbd></p>
692 08aa5d9e Serge Torres
693 08aa5d9e Serge Torres
<h3>utils</h3>
694 08aa5d9e Serge Torres
695 08aa5d9e Serge Torres
<p>This is, essentially a set of PERL utilities (Vandermonde, Chebychev,
696 08aa5d9e Serge Torres
matrices stuff) used by the scripts in the <var class="path">bin</var>
697 08aa5d9e Serge Torres
directory. This material may move to another directory with a forecoming
698 08aa5d9e Serge Torres
version of the utilities. Do not edit (though the consequences are only
699 08aa5d9e Serge Torres
local).</p>
700 08aa5d9e Serge Torres
</body>
701 08aa5d9e Serge Torres
</html>