Sophie

Sophie

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

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>isLLL -- is a basis an LLL basis?</title>
<link rel="stylesheet" type="text/css" href="../../../../Macaulay2/Style/doc.css"/>
</head>
<body>
<table class="buttons">
  <tr>
    <td><div><a href="___B__K__Z.html">next</a> | <a href="_gramm.html">previous</a> | forward | <a href="_gramm.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="_is__L__L__L.html" title="is a basis an LLL basis?">isLLL</a></div>
<hr/>
<div><h1>isLLL -- is a basis an LLL basis?</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>isLLL m</tt></div>
</dd></dl>
</div>
</li>
<li><div class="single">Inputs:<ul><li><span><tt>m</tt>, <span>a <a href="../../Macaulay2Doc/html/___Matrix.html">matrix</a></span>, over <a href="../../Macaulay2Doc/html/___Z__Z.html" title="the class of all integers">ZZ</a>, whose columns are linearly independent</span></li>
</ul>
</div>
</li>
<li><div class="single">Outputs:<ul><li><span><span>a <a href="../../Macaulay2Doc/html/___Boolean.html">Boolean value</a></span>, Whether the columns of the matrix form an LLL basis with respect to the Threshold (which has default 3/4)</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>Threshold => ...</tt> (missing documentation<!-- tag: isLLL(..., 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/>
If the matrix is not in LLL reduced form, then the offending conditions are displayed.  For example,<table class="examples"><tr><td><pre>i1 : m = matrix {{1, 0}, {1, 1}, {1, 2}, {1, 3}}

o1 = | 1 0 |
     | 1 1 |
     | 1 2 |
     | 1 3 |

              4        2
o1 : Matrix ZZ  &lt;--- ZZ</pre>
</td></tr>
<tr><td><pre>i2 : isLLL m
LLL size failure 1,0: 1.5
LLL Lovasz failure 1: -.833333

o2 = false</pre>
</td></tr>
<tr><td><pre>i3 : n = LLL m

o3 = | 1 -1 |
     | 1 0  |
     | 1 1  |
     | 1 2  |

              4        2
o3 : Matrix ZZ  &lt;--- ZZ</pre>
</td></tr>
<tr><td><pre>i4 : isLLL n

o4 = true</pre>
</td></tr>
</table>
If the optional argument Threshold is given, the conditions are checked using that value.<table class="examples"><tr><td><pre>i5 : m = matrix {{1, 0}, {1, 1}, {1, 2}, {1, 3}}

o5 = | 1 0 |
     | 1 1 |
     | 1 2 |
     | 1 3 |

              4        2
o5 : Matrix ZZ  &lt;--- ZZ</pre>
</td></tr>
<tr><td><pre>i6 : isLLL(m, Threshold=>1)
LLL size failure 1,0: 1.5
LLL Lovasz failure 1: -1

o6 = false</pre>
</td></tr>
</table>
</div>
</div>
<div class="single"><h2>Caveat</h2>
<div>A Gram-Schmidt reduction is done over QQ, so this can be computationally intensive for larger matrix sizes.  It is usually easier and faster to see if LLL returns the same matrix.  This routine was used to debug and test the LLL routines here, and is provided as an alternate check of correctness.The matrix must be defined over the ring ZZ.  It should be possible to allow real and rational matrices too, but this is not yet implemented.</div>
</div>
<div class="single"><h2>See also</h2>
<ul><li><span><a href="___L__L__L.html" title="compute an LLL basis">LLL</a> -- compute an LLL basis</span></li>
<li><span><a href="_gcd__L__L__L.html" title="compute the gcd of integers, and small multipliers">gcdLLL</a> -- compute the gcd of integers, and small multipliers</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>isLLL</tt> :</h2>
<ul><li>isLLL(Matrix)</li>
</ul>
</div>
</div>
</body>
</html>