Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 7ebd25ac536d248d499a3ce2acda963a > files > 2131

Macaulay2-1.3.1-8.fc15.i686.rpm

<?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>gcdLLL -- compute the gcd of integers, and small multipliers</title>
<link rel="stylesheet" type="text/css" href="../../../../Macaulay2/Style/doc.css"/>
</head>
<body>
<table class="buttons">
  <tr>
    <td><div><a href="_hermite.html">next</a> | <a href="_kernel__L__L__L.html">previous</a> | <a href="_hermite.html">forward</a> | <a href="_kernel__L__L__L.html">backward</a> | <a href="index.html">up</a> | <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>
<div><a href="index.html" title="lattice reduction (Lenstra-Lenstra-Lovasz bases)">LLLBases</a> > <a href="_gcd__L__L__L.html" title="compute the gcd of integers, and small multipliers">gcdLLL</a></div>
<hr/>
<div><h1>gcdLLL -- compute the gcd of integers, and small multipliers</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>(g,z) = gcdLLL m</tt></div>
</dd></dl>
</div>
</li>
<li><div class="single">Inputs:<ul><li><span><tt>m</tt>, <span>a <a href="../../Macaulay2Doc/html/___List.html">list</a></span>, of integers</span></li>
</ul>
</div>
</li>
<li><div class="single">Outputs:<ul><li><span><tt>g</tt>, <span>an <a href="../../Macaulay2Doc/html/___Z__Z.html">integer</a></span>, the gcd of the integers in the list s</span></li>
<li><span><tt>z</tt>, <span>a <a href="../../Macaulay2Doc/html/___Matrix.html">matrix</a></span>,  of integers</span></li>
</ul>
</div>
</li>
<li><div class="single"><a href="../../Macaulay2Doc/html/_using_spfunctions_spwith_spoptional_spinputs.html">Optional inputs</a>:<ul><li><span><tt>Strategy => ...</tt> (missing documentation<!-- tag: gcdLLL(..., Strategy => ...) -->), </span></li>
<li><span><tt>Threshold => ...</tt> (missing documentation<!-- tag: gcdLLL(..., Threshold => ...) -->), </span></li>
</ul>
</div>
</li>
</ul>
</div>
<div class="single"><h2>Description</h2>
<div>This function is provided by the package <a href="index.html" title="lattice reduction (Lenstra-Lenstra-Lovasz bases)">LLLBases</a>.<p/>
The first n-1 columns of the matrix z form a basis of the kernel of the n integers of the list s, and the dot product of the last column of z and s is the gcd g.<p/>
The method used is described in the paper:<p/>
Havas, Majewski, Matthews, <em>Extended GCD and Hermite Normal Form Algorithms via Lattice Basis Reduction</em>, Experimental Mathematics 7:2 p. 125 (1998).<p/>
For an example,<table class="examples"><tr><td><pre>i1 : s = apply(5,i->372*(random 1000000))

o1 = {330441276, 107988252, 326524488, 42328020, 219662280}

o1 : List</pre>
</td></tr>
<tr><td><pre>i2 : (g,z) = gcdLLL s

o2 = (372, | 2   7   -1  -44 7   |)
           | -14 -18 -9  -15 -6  |
           | 7   -7  13  18  -11 |
           | 18  -17 -28 -1  4   |
           | -10 12  -8  47  8   |

o2 : Sequence</pre>
</td></tr>
<tr><td><pre>i3 : matrix{s} * z

o3 = | 0 0 0 0 372 |

              1        5
o3 : Matrix ZZ  &lt;--- ZZ</pre>
</td></tr>
</table>
</div>
</div>
<div class="single"><h2>See also</h2>
<ul><li><span><a href="index.html" title="lattice reduction (Lenstra-Lenstra-Lovasz bases)">LLLBases</a> -- lattice reduction (Lenstra-Lenstra-Lovasz bases)</span></li>
<li><span><a href="___L__L__L.html" title="compute an LLL basis">LLL</a> -- compute an LLL basis</span></li>
<li><span><tt>kernelLLL</tt> (missing documentation<!-- tag: kernelLLL -->)</span></li>
<li><span><tt>hermite</tt> (missing documentation<!-- tag: hermite -->)</span></li>
</ul>
</div>
<div class="waystouse"><h2>Ways to use <tt>gcdLLL</tt> :</h2>
<ul><li>gcdLLL(List)</li>
</ul>
</div>
</div>
</body>
</html>