"Fossies" - the Fresh Open Source Software Archive

Member "doc/jruby/JAS/EF.html" (21 Apr 2019, 15785 Bytes) of package /linux/privat/jas-2.6.5988-doc.zip:


The requested HTML page contains a <FORM> tag that is unusable on "Fossies" in "automatic" (rendered) mode so that page is shown as HTML source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 <!DOCTYPE html>
    2 
    3 <html>
    4 <head>
    5 <meta charset="UTF-8">
    6 
    7 <title>class JAS::EF - Ruby to JAS</title>
    8 
    9 <script type="text/javascript">
   10   var rdoc_rel_prefix = "../";
   11 </script>
   12 
   13 <script src="../js/jquery.js"></script>
   14 <script src="../js/darkfish.js"></script>
   15 
   16 <link href="../css/fonts.css" rel="stylesheet">
   17 <link href="../css/rdoc.css" rel="stylesheet">
   18 
   19 
   20 
   21 <body id="top" role="document" class="class">
   22 <nav role="navigation">
   23   <div id="project-navigation">
   24     <div id="home-section" role="region" title="Quick navigation" class="nav-section">
   25   <h2>
   26     <a href="../index.html" rel="home">Home</a>
   27   </h2>
   28 
   29   <div id="table-of-contents-navigation">
   30     <a href="../table_of_contents.html#pages">Pages</a>
   31     <a href="../table_of_contents.html#classes">Classes</a>
   32     <a href="../table_of_contents.html#methods">Methods</a>
   33   </div>
   34 </div>
   35 
   36     <div id="search-section" role="search" class="project-section initially-hidden">
   37   <form action="#" method="get" accept-charset="utf-8">
   38     <div id="search-field-wrapper">
   39       <input id="search-field" role="combobox" aria-label="Search"
   40              aria-autocomplete="list" aria-controls="search-results"
   41              type="text" name="search" placeholder="Search" spellcheck="false"
   42              title="Type to search, Up and Down to navigate, Enter to load">
   43     </div>
   44 
   45     <ul id="search-results" aria-label="Search Results"
   46         aria-busy="false" aria-expanded="false"
   47         aria-atomic="false" class="initially-hidden"></ul>
   48   </form>
   49 </div>
   50 
   51   </div>
   52 
   53   
   54 
   55   <div id="class-metadata">
   56     
   57     <div id="parent-class-section" class="nav-section">
   58   <h3>Parent</h3>
   59 
   60   
   61   <p class="link"><a href="../Object.html">Object</a>
   62   
   63 </div>
   64 
   65     
   66     
   67     <!-- Method Quickref -->
   68 <div id="method-list-section" class="nav-section">
   69   <h3>Methods</h3>
   70 
   71   <ul class="link-list" role="directory">
   72     
   73     <li ><a href="#method-c-new">::new</a>
   74     
   75     <li ><a href="#method-i-build">#build</a>
   76     
   77     <li ><a href="#method-i-complexExtend">#complexExtend</a>
   78     
   79     <li ><a href="#method-i-extend">#extend</a>
   80     
   81     <li ><a href="#method-i-polynomial">#polynomial</a>
   82     
   83     <li ><a href="#method-i-realExtend">#realExtend</a>
   84     
   85     <li ><a href="#method-i-to_s">#to_s</a>
   86     
   87   </ul>
   88 </div>
   89 
   90   </div>
   91 </nav>
   92 
   93 <main role="main" aria-labelledby="class-JAS::EF">
   94   <h1 id="class-JAS::EF" class="class">
   95     class JAS::EF
   96   </h1>
   97 
   98   <section class="description">
   99     
  100 <p>Extension field builder. Construction of extension field towers according
  101 to then builder pattern.</p>
  102 
  103   </section>
  104 
  105   
  106   
  107   
  108   <section id="5Buntitled-5D" class="documentation-section">
  109     
  110 
  111     
  112 
  113     
  114 
  115     
  116     <section class="attribute-method-details" class="method-section">
  117       <header>
  118         <h3>Attributes</h3>
  119       </header>
  120 
  121       
  122       <div id="attribute-i-builder" class="method-detail">
  123         <div class="method-heading attribute-method-heading">
  124           <span class="method-name">builder</span><span
  125             class="attribute-access-type">[R]</span>
  126         </div>
  127 
  128         <div class="method-description">
  129         
  130         <p>the Java extension field builder</p>
  131         
  132         </div>
  133       </div>
  134       
  135     </section>
  136     
  137 
  138     
  139      <section id="public-class-5Buntitled-5D-method-details" class="method-section">
  140        <header>
  141          <h3>Public Class Methods</h3>
  142        </header>
  143 
  144     
  145       <div id="method-c-new" class="method-detail ">
  146         
  147         <div class="method-heading">
  148           <span class="method-name">new</span><span
  149             class="method-args">(base)</span>
  150           
  151           <span class="method-click-advice">click to toggle source</span>
  152           
  153         </div>
  154         
  155 
  156         <div class="method-description">
  157           
  158           <p>Constructor to set base field.</p>
  159           
  160           
  161 
  162           
  163           <div class="method-source-code" id="new-source">
  164             <pre><span class="ruby-comment"># File examples/jas.rb, line 5534</span>
  165 <span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">base</span>)
  166     <span class="ruby-keyword">if</span> <span class="ruby-identifier">base</span>.<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">RingElem</span>
  167         <span class="ruby-comment">#factory = base.elem;</span>
  168         <span class="ruby-identifier">factory</span> = <span class="ruby-identifier">base</span>.<span class="ruby-identifier">ring</span>;
  169     <span class="ruby-keyword">else</span>
  170         <span class="ruby-identifier">factory</span> = <span class="ruby-identifier">base</span>;
  171     <span class="ruby-keyword">end</span>
  172     <span class="ruby-keyword">begin</span>
  173         <span class="ruby-identifier">factory</span> = <span class="ruby-identifier">factory</span>.<span class="ruby-identifier">factory</span>();
  174     <span class="ruby-keyword">rescue</span>
  175         <span class="ruby-comment">#pass</span>
  176     <span class="ruby-keyword">end</span>
  177     <span class="ruby-identifier">puts</span> <span class="ruby-string">&quot;extension field factory: &quot;</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">factory</span>.<span class="ruby-identifier">toScript</span>(); <span class="ruby-comment"># + &quot; :: &quot; + factory.toString();</span>
  178     <span class="ruby-keyword">if</span> <span class="ruby-identifier">factory</span>.<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">ExtensionFieldBuilder</span>
  179         <span class="ruby-ivar">@builder</span> = <span class="ruby-identifier">factory</span>;
  180     <span class="ruby-keyword">else</span>
  181         <span class="ruby-ivar">@builder</span> = <span class="ruby-constant">ExtensionFieldBuilder</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">factory</span>);
  182     <span class="ruby-keyword">end</span>
  183 <span class="ruby-keyword">end</span></pre>
  184           </div>
  185           
  186         </div>
  187 
  188         
  189 
  190         
  191       </div>
  192 
  193     
  194     </section>
  195   
  196      <section id="public-instance-5Buntitled-5D-method-details" class="method-section">
  197        <header>
  198          <h3>Public Instance Methods</h3>
  199        </header>
  200 
  201     
  202       <div id="method-i-build" class="method-detail ">
  203         
  204         <div class="method-heading">
  205           <span class="method-name">build</span><span
  206             class="method-args">()</span>
  207           
  208           <span class="method-click-advice">click to toggle source</span>
  209           
  210         </div>
  211         
  212 
  213         <div class="method-description">
  214           
  215           <p>Get extension field tower.</p>
  216           
  217           
  218 
  219           
  220           <div class="method-source-code" id="build-source">
  221             <pre><span class="ruby-comment"># File examples/jas.rb, line 5605</span>
  222 <span class="ruby-keyword">def</span> <span class="ruby-identifier">build</span>()
  223     <span class="ruby-identifier">rf</span> = <span class="ruby-ivar">@builder</span>.<span class="ruby-identifier">build</span>();
  224     <span class="ruby-keyword">if</span> <span class="ruby-identifier">rf</span>.<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">GenPolynomialRing</span>
  225         <span class="ruby-keyword">return</span> <span class="ruby-constant">PolyRing</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">rf</span>.<span class="ruby-identifier">coFac</span>,<span class="ruby-identifier">rf</span>.<span class="ruby-identifier">getVars</span>(),<span class="ruby-identifier">rf</span>.<span class="ruby-identifier">tord</span>);
  226     <span class="ruby-keyword">else</span>
  227         <span class="ruby-keyword">return</span> <span class="ruby-constant">RingElem</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">rf</span>.<span class="ruby-identifier">getZERO</span>());
  228     <span class="ruby-keyword">end</span>
  229 <span class="ruby-keyword">end</span></pre>
  230           </div>
  231           
  232         </div>
  233 
  234         
  235 
  236         
  237       </div>
  238 
  239     
  240       <div id="method-i-complexExtend" class="method-detail ">
  241         
  242         <div class="method-heading">
  243           <span class="method-name">complexExtend</span><span
  244             class="method-args">(vars,algebraic,rectangle)</span>
  245           
  246           <span class="method-click-advice">click to toggle source</span>
  247           
  248         </div>
  249         
  250 
  251         <div class="method-description">
  252           
  253           <p>Create a complex extension field. Construct a complex algebraic extension
  254 field with an isolating rectangle for a complex root.</p>
  255           
  256           
  257 
  258           
  259           <div class="method-source-code" id="complexExtend-source">
  260             <pre><span class="ruby-comment"># File examples/jas.rb, line 5589</span>
  261 <span class="ruby-keyword">def</span> <span class="ruby-identifier">complexExtend</span>(<span class="ruby-identifier">vars</span>,<span class="ruby-identifier">algebraic</span>,<span class="ruby-identifier">rectangle</span>)
  262     <span class="ruby-identifier">ef</span> = <span class="ruby-ivar">@builder</span>.<span class="ruby-identifier">complexAlgebraicExtension</span>(<span class="ruby-identifier">vars</span>,<span class="ruby-identifier">algebraic</span>,<span class="ruby-identifier">rectangle</span>);
  263     <span class="ruby-keyword">return</span> <span class="ruby-constant">EF</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">ef</span>.<span class="ruby-identifier">build</span>());
  264 <span class="ruby-keyword">end</span></pre>
  265           </div>
  266           
  267         </div>
  268 
  269         
  270 
  271         
  272       </div>
  273 
  274     
  275       <div id="method-i-extend" class="method-detail ">
  276         
  277         <div class="method-heading">
  278           <span class="method-name">extend</span><span
  279             class="method-args">(vars,algebraic=nil)</span>
  280           
  281           <span class="method-click-advice">click to toggle source</span>
  282           
  283         </div>
  284         
  285 
  286         <div class="method-description">
  287           
  288           <p>Create an extension field.  If algebraic is given as string expression,
  289 then an algebraic extension field is constructed, else a transcendental
  290 extension field is constructed.</p>
  291           
  292           
  293 
  294           
  295           <div class="method-source-code" id="extend-source">
  296             <pre><span class="ruby-comment"># File examples/jas.rb, line 5567</span>
  297 <span class="ruby-keyword">def</span> <span class="ruby-identifier">extend</span>(<span class="ruby-identifier">vars</span>,<span class="ruby-identifier">algebraic</span>=<span class="ruby-keyword">nil</span>) 
  298     <span class="ruby-keyword">if</span> <span class="ruby-identifier">algebraic</span> <span class="ruby-operator">==</span> <span class="ruby-keyword">nil</span>
  299         <span class="ruby-identifier">ef</span> = <span class="ruby-ivar">@builder</span>.<span class="ruby-identifier">transcendentExtension</span>(<span class="ruby-identifier">vars</span>);
  300     <span class="ruby-keyword">else</span>
  301         <span class="ruby-identifier">ef</span> = <span class="ruby-ivar">@builder</span>.<span class="ruby-identifier">algebraicExtension</span>(<span class="ruby-identifier">vars</span>,<span class="ruby-identifier">algebraic</span>);
  302     <span class="ruby-keyword">end</span>
  303     <span class="ruby-keyword">return</span> <span class="ruby-constant">EF</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">ef</span>.<span class="ruby-identifier">build</span>());
  304 <span class="ruby-keyword">end</span></pre>
  305           </div>
  306           
  307         </div>
  308 
  309         
  310 
  311         
  312       </div>
  313 
  314     
  315       <div id="method-i-polynomial" class="method-detail ">
  316         
  317         <div class="method-heading">
  318           <span class="method-name">polynomial</span><span
  319             class="method-args">(vars)</span>
  320           
  321           <span class="method-click-advice">click to toggle source</span>
  322           
  323         </div>
  324         
  325 
  326         <div class="method-description">
  327           
  328           <p>Create an polynomial ring extension.</p>
  329           
  330           
  331 
  332           
  333           <div class="method-source-code" id="polynomial-source">
  334             <pre><span class="ruby-comment"># File examples/jas.rb, line 5597</span>
  335 <span class="ruby-keyword">def</span> <span class="ruby-identifier">polynomial</span>(<span class="ruby-identifier">vars</span>)
  336     <span class="ruby-identifier">ef</span> = <span class="ruby-ivar">@builder</span>.<span class="ruby-identifier">polynomialExtension</span>(<span class="ruby-identifier">vars</span>);
  337     <span class="ruby-keyword">return</span> <span class="ruby-constant">EF</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">ef</span>.<span class="ruby-identifier">build</span>());
  338 <span class="ruby-keyword">end</span></pre>
  339           </div>
  340           
  341         </div>
  342 
  343         
  344 
  345         
  346       </div>
  347 
  348     
  349       <div id="method-i-realExtend" class="method-detail ">
  350         
  351         <div class="method-heading">
  352           <span class="method-name">realExtend</span><span
  353             class="method-args">(vars,algebraic,interval)</span>
  354           
  355           <span class="method-click-advice">click to toggle source</span>
  356           
  357         </div>
  358         
  359 
  360         <div class="method-description">
  361           
  362           <p>Create a real extension field. Construct a real algebraic extension field
  363 with an isolating interval for a real root.</p>
  364           
  365           
  366 
  367           
  368           <div class="method-source-code" id="realExtend-source">
  369             <pre><span class="ruby-comment"># File examples/jas.rb, line 5580</span>
  370 <span class="ruby-keyword">def</span> <span class="ruby-identifier">realExtend</span>(<span class="ruby-identifier">vars</span>,<span class="ruby-identifier">algebraic</span>,<span class="ruby-identifier">interval</span>)
  371     <span class="ruby-identifier">ef</span> = <span class="ruby-ivar">@builder</span>.<span class="ruby-identifier">realAlgebraicExtension</span>(<span class="ruby-identifier">vars</span>,<span class="ruby-identifier">algebraic</span>,<span class="ruby-identifier">interval</span>);
  372     <span class="ruby-keyword">return</span> <span class="ruby-constant">EF</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">ef</span>.<span class="ruby-identifier">build</span>());
  373 <span class="ruby-keyword">end</span></pre>
  374           </div>
  375           
  376         </div>
  377 
  378         
  379 
  380         
  381       </div>
  382 
  383     
  384       <div id="method-i-to_s" class="method-detail ">
  385         
  386         <div class="method-heading">
  387           <span class="method-name">to_s</span><span
  388             class="method-args">()</span>
  389           
  390           <span class="method-click-advice">click to toggle source</span>
  391           
  392         </div>
  393         
  394 
  395         <div class="method-description">
  396           
  397           <p>Create a string representation.</p>
  398           
  399           
  400 
  401           
  402           <div class="method-source-code" id="to_s-source">
  403             <pre><span class="ruby-comment"># File examples/jas.rb, line 5557</span>
  404 <span class="ruby-keyword">def</span> <span class="ruby-identifier">to_s</span>()
  405     <span class="ruby-keyword">return</span> <span class="ruby-ivar">@builder</span>.<span class="ruby-identifier">toScript</span>(); 
  406     <span class="ruby-comment">#return @builder.toString(); </span>
  407 <span class="ruby-keyword">end</span></pre>
  408           </div>
  409           
  410         </div>
  411 
  412         
  413 
  414         
  415       </div>
  416 
  417     
  418     </section>
  419   
  420   </section>
  421 </main>
  422 
  423 
  424 <footer id="validator-badges" role="contentinfo">
  425   <p><a href="http://validator.w3.org/check/referer">Validate</a>
  426   <p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.0.
  427   <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
  428 </footer>
  429