Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > c5653a35bb94fee65ffe21230992c863 > files > 697

linbox-doc-1.2.1-1.fc15.noarch.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>linbox: ChineseRemainderSeq&lt; CRABase &gt; Struct Template Reference</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.7.4 -->
<script type="text/javascript">
function hasClass(ele,cls) {
  return ele.className.match(new RegExp('(\\s|^)'+cls+'(\\s|$)'));
}

function addClass(ele,cls) {
  if (!this.hasClass(ele,cls)) ele.className += " "+cls;
}

function removeClass(ele,cls) {
  if (hasClass(ele,cls)) {
    var reg = new RegExp('(\\s|^)'+cls+'(\\s|$)');
    ele.className=ele.className.replace(reg,' ');
  }
}

function toggleVisibility(linkObj) {
 var base = linkObj.getAttribute('id');
 var summary = document.getElementById(base + '-summary');
 var content = document.getElementById(base + '-content');
 var trigger = document.getElementById(base + '-trigger');
 if ( hasClass(linkObj,'closed') ) {
   summary.style.display = 'none';
   content.style.display = 'block';
   trigger.src = 'open.png';
   removeClass(linkObj,'closed');
   addClass(linkObj,'opened');
 } else if ( hasClass(linkObj,'opened') ) {
   summary.style.display = 'block';
   content.style.display = 'none';
   trigger.src = 'closed.png';
   removeClass(linkObj,'opened');
   addClass(linkObj,'closed');
 }
 return false;
}
</script>
<div id="top">
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">linbox</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li><a href="dirs.html"><span>Directories</span></a></li>
      <li><a href="examples.html"><span>Examples</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Data&#160;Fields</span></a></li>
    </ul>
  </div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="namespace_lin_box.html">LinBox</a>      </li>
      <li class="navelem"><a class="el" href="struct_lin_box_1_1_chinese_remainder_seq.html">ChineseRemainderSeq</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">ChineseRemainderSeq&lt; CRABase &gt; Struct Template Reference<div class="ingroups"><a class="el" href="group___c_r_a.html">Chinese Remaindering Algorithm</a></div></div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="LinBox::ChineseRemainderSeq" -->
<p>No doc.  
 <a href="struct_lin_box_1_1_chinese_remainder_seq.html#details">More...</a></p>

<p><code>#include &lt;cra-domain-seq.h&gt;</code></p>
<div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-0-trigger" src="closed.png"/> Inheritance diagram for ChineseRemainderSeq&lt; CRABase &gt;:</div>
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
 <div class="center">
  <img src="struct_lin_box_1_1_chinese_remainder_seq.png" usemap="#ChineseRemainderSeq&lt; CRABase &gt;_map" alt=""/>
  <map id="ChineseRemainderSeq&lt; CRABase &gt;_map" name="ChineseRemainderSeq&lt; CRABase &gt;_map">
<area href="struct_lin_box_1_1_chinese_remainder.html" title="Wrapper around OMP/SEQ version of ChineseRemainderXXX&lt;CRABase&gt;." alt="ChineseRemainder&lt; CRABase &gt;" shape="rect" coords="0,56,217,80"/>
</map>
 </div></div>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memTemplParams" colspan="2">template&lt;class Function , class PrimeIterator &gt; </td></tr>
<tr><td class="memTemplItemLeft" align="right" valign="top">Integer &amp;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="struct_lin_box_1_1_chinese_remainder_seq.html#aedaf2fd69b9e24a5e1bf45b243c60ca9">operator()</a> (Integer &amp;res, Function &amp;Iteration, PrimeIterator &amp;primeiter)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">The <a class="el" href="group___c_r_a.html">Chinese Remaindering Algorithm</a> loop.  <a href="#aedaf2fd69b9e24a5e1bf45b243c60ca9"></a><br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><h3>template&lt;class CRABase&gt;<br/>
struct LinBox::ChineseRemainderSeq&lt; CRABase &gt;</h3>

<p>No doc. </p>
</div><hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="aedaf2fd69b9e24a5e1bf45b243c60ca9"></a><!-- doxytag: member="LinBox::ChineseRemainderSeq::operator()" ref="aedaf2fd69b9e24a5e1bf45b243c60ca9" args="(Integer &amp;res, Function &amp;Iteration, PrimeIterator &amp;primeiter)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Integer&amp; operator() </td>
          <td>(</td>
          <td class="paramtype">Integer &amp;&#160;</td>
          <td class="paramname"><em>res</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Function &amp;&#160;</td>
          <td class="paramname"><em>Iteration</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">PrimeIterator &amp;&#160;</td>
          <td class="paramname"><em>primeiter</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>The <a class="el" href="group___c_r_a.html">Chinese Remaindering Algorithm</a> loop. </p>
<p>Given a function to generate residues <code>mod</code> a single prime, this loop produces the residues resulting from the Chinese remainder process on sufficiently many primes to meet the termination condition.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">Iteration</td><td>Function object of two arguments, <code>Iteration(r, F)</code>, given prime field <code>F</code> it outputs residue(s) <code>r</code>. This loop may be parallelized. <code>Iteration</code> must be reentrant, thread safe. For example, <code>Iteration</code> may be returning the coefficients of the minimal polynomial of a matrix <code>mod</code> <code>F</code>.</td></tr>
  </table>
  </dd>
</dl>
<dl class="warning"><dt><b>Warning:</b></dt><dd>We won't detect bad primes.</dd></dl>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir"></td><td class="paramname">primeiter</td><td>iterator for generating primes.</td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">res</td><td>an integer </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/>The documentation for this struct was generated from the following file:<ul>
<li><a class="el" href="cra-domain-seq_8h.html">cra-domain-seq.h</a></li>
</ul>
</div>
<hr class="footer"/><address class="footer"><small>Generated on Tue Aug 30 2011 for linbox by&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.4 </small></address>
</body>
</html>