"Fossies" - the Fresh Open Source Software Archive

Member "doc/jruby/JAS/SolvableModule.html" (21 Apr 2019, 13165 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::SolvableModule - 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="CommutativeModule.html">JAS::CommutativeModule</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-element">#element</a>
   76     
   77     <li ><a href="#method-i-submodul">#submodul</a>
   78     
   79     <li ><a href="#method-i-to_s">#to_s</a>
   80     
   81   </ul>
   82 </div>
   83 
   84   </div>
   85 </nav>
   86 
   87 <main role="main" aria-labelledby="class-JAS::SolvableModule">
   88   <h1 id="class-JAS::SolvableModule" class="class">
   89     class JAS::SolvableModule
   90   </h1>
   91 
   92   <section class="description">
   93     
   94 <p>Represents a <a href="../JAS.html">JAS</a> module over a solvable
   95 polynomial ring.</p>
   96 
   97 <p>Method to create solvable sub-modules.</p>
   98 
   99   </section>
  100 
  101   
  102   
  103   
  104   <section id="5Buntitled-5D" class="documentation-section">
  105     
  106 
  107     
  108 
  109     
  110 
  111     
  112     <section class="attribute-method-details" class="method-section">
  113       <header>
  114         <h3>Attributes</h3>
  115       </header>
  116 
  117       
  118       <div id="attribute-i-cols" class="method-detail">
  119         <div class="method-heading attribute-method-heading">
  120           <span class="method-name">cols</span><span
  121             class="attribute-access-type">[R]</span>
  122         </div>
  123 
  124         <div class="method-description">
  125         
  126         <p>the Java polynomial ring, number of columns, module list</p>
  127         
  128         </div>
  129       </div>
  130       
  131       <div id="attribute-i-mset" class="method-detail">
  132         <div class="method-heading attribute-method-heading">
  133           <span class="method-name">mset</span><span
  134             class="attribute-access-type">[R]</span>
  135         </div>
  136 
  137         <div class="method-description">
  138         
  139         <p>the Java polynomial ring, number of columns, module list</p>
  140         
  141         </div>
  142       </div>
  143       
  144       <div id="attribute-i-ring" class="method-detail">
  145         <div class="method-heading attribute-method-heading">
  146           <span class="method-name">ring</span><span
  147             class="attribute-access-type">[R]</span>
  148         </div>
  149 
  150         <div class="method-description">
  151         
  152         <p>the Java polynomial ring, number of columns, module list</p>
  153         
  154         </div>
  155       </div>
  156       
  157     </section>
  158     
  159 
  160     
  161      <section id="public-class-5Buntitled-5D-method-details" class="method-section">
  162        <header>
  163          <h3>Public Class Methods</h3>
  164        </header>
  165 
  166     
  167       <div id="method-c-new" class="method-detail ">
  168         
  169         <div class="method-heading">
  170           <span class="method-name">new</span><span
  171             class="method-args">(modstr="",ring=nil,cols=0)</span>
  172           
  173           <span class="method-click-advice">click to toggle source</span>
  174           
  175         </div>
  176         
  177 
  178         <div class="method-description">
  179           
  180           <p>Solvable module constructor.</p>
  181           
  182           
  183 
  184           
  185           <div class="method-source-code" id="new-source">
  186             <pre><span class="ruby-comment"># File examples/jas.rb, line 4594</span>
  187 <span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">modstr</span>=<span class="ruby-string">&quot;&quot;</span>,<span class="ruby-identifier">ring</span>=<span class="ruby-keyword">nil</span>,<span class="ruby-identifier">cols</span>=<span class="ruby-value">0</span>)
  188     <span class="ruby-keyword">if</span> <span class="ruby-identifier">ring</span> <span class="ruby-operator">==</span> <span class="ruby-keyword">nil</span>
  189        <span class="ruby-identifier">sr</span> = <span class="ruby-constant">StringReader</span>.<span class="ruby-identifier">new</span>( <span class="ruby-identifier">modstr</span> );
  190        <span class="ruby-identifier">tok</span> = <span class="ruby-constant">RingFactoryTokenizer</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">sr</span>);
  191        <span class="ruby-identifier">pfac</span> = <span class="ruby-identifier">tok</span>.<span class="ruby-identifier">nextSolvablePolynomialRing</span>();
  192        <span class="ruby-comment">#tok = GenPolynomialTokenizer.new(sr);</span>
  193        <span class="ruby-comment">#@mset = tok.nextSolvableSubModuleSet();</span>
  194        <span class="ruby-comment">#if @mset.cols &gt;= 0</span>
  195        <span class="ruby-comment">#    @cols = @mset.cols;</span>
  196        <span class="ruby-comment">#end</span>
  197        <span class="ruby-ivar">@ring</span> = <span class="ruby-identifier">pfac</span>;
  198     <span class="ruby-keyword">else</span>
  199        <span class="ruby-keyword">if</span> <span class="ruby-identifier">ring</span>.<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">Ring</span>
  200           <span class="ruby-ivar">@ring</span> = <span class="ruby-identifier">ring</span>.<span class="ruby-identifier">ring</span>
  201        <span class="ruby-keyword">else</span> 
  202           <span class="ruby-ivar">@ring</span> = <span class="ruby-identifier">ring</span>;
  203        <span class="ruby-keyword">end</span>
  204     <span class="ruby-keyword">end</span>
  205     <span class="ruby-ivar">@mset</span> = <span class="ruby-constant">ModuleList</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@ring</span>,<span class="ruby-keyword">nil</span>);
  206     <span class="ruby-keyword">if</span> <span class="ruby-identifier">cols</span> <span class="ruby-operator">&lt;</span> <span class="ruby-value">0</span> 
  207        <span class="ruby-identifier">cols</span> = <span class="ruby-value">0</span>;
  208     <span class="ruby-keyword">end</span>
  209     <span class="ruby-ivar">@cols</span> = <span class="ruby-identifier">cols</span>;
  210 <span class="ruby-keyword">end</span></pre>
  211           </div>
  212           
  213         </div>
  214 
  215         
  216 
  217         
  218       </div>
  219 
  220     
  221     </section>
  222   
  223      <section id="public-instance-5Buntitled-5D-method-details" class="method-section">
  224        <header>
  225          <h3>Public Instance Methods</h3>
  226        </header>
  227 
  228     
  229       <div id="method-i-element" class="method-detail ">
  230         
  231         <div class="method-heading">
  232           <span class="method-name">element</span><span
  233             class="method-args">(mods)</span>
  234           
  235           <span class="method-click-advice">click to toggle source</span>
  236           
  237         </div>
  238         
  239 
  240         <div class="method-description">
  241           
  242           <p>Create an element from a string.</p>
  243           
  244           
  245 
  246           
  247           <div class="method-source-code" id="element-source">
  248             <pre><span class="ruby-comment"># File examples/jas.rb, line 4636</span>
  249 <span class="ruby-keyword">def</span> <span class="ruby-identifier">element</span>(<span class="ruby-identifier">mods</span>)
  250     <span class="ruby-keyword">if</span> <span class="ruby-keyword">not</span> <span class="ruby-identifier">mods</span>.<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">String</span> 
  251        <span class="ruby-keyword">begin</span>
  252           <span class="ruby-keyword">if</span> <span class="ruby-ivar">@ring</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">mods</span>.<span class="ruby-identifier">ring</span> 
  253              <span class="ruby-keyword">return</span> <span class="ruby-constant">RingElem</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">mods</span>);
  254           <span class="ruby-keyword">end</span>
  255        <span class="ruby-keyword">rescue</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">e</span>
  256           <span class="ruby-comment"># pass</span>
  257        <span class="ruby-keyword">end</span>
  258        <span class="ruby-identifier">mods</span> = <span class="ruby-identifier">str</span>(<span class="ruby-identifier">mods</span>);
  259     <span class="ruby-keyword">end</span>
  260     <span class="ruby-identifier">ii</span> = <span class="ruby-constant">SolvableSubModule</span>.<span class="ruby-identifier">new</span>( <span class="ruby-string">&quot;( &quot;</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">mods</span> <span class="ruby-operator">+</span> <span class="ruby-string">&quot; )&quot;</span>);
  261     <span class="ruby-identifier">list</span> = <span class="ruby-identifier">ii</span>.<span class="ruby-identifier">mset</span>.<span class="ruby-identifier">list</span>;
  262     <span class="ruby-keyword">if</span> <span class="ruby-identifier">list</span>.<span class="ruby-identifier">size</span> <span class="ruby-operator">&gt;</span> <span class="ruby-value">0</span>
  263         <span class="ruby-keyword">return</span> <span class="ruby-constant">RingElem</span>.<span class="ruby-identifier">new</span>( <span class="ruby-identifier">list</span>[<span class="ruby-value">0</span>] );
  264     <span class="ruby-keyword">end</span>
  265 <span class="ruby-keyword">end</span></pre>
  266           </div>
  267           
  268         </div>
  269 
  270         
  271 
  272         
  273       </div>
  274 
  275     
  276       <div id="method-i-submodul" class="method-detail ">
  277         
  278         <div class="method-heading">
  279           <span class="method-name">submodul</span><span
  280             class="method-args">(modstr="",list=nil)</span>
  281           
  282           <span class="method-click-advice">click to toggle source</span>
  283           
  284         </div>
  285         
  286 
  287         <div class="method-description">
  288           
  289           <p>Create a solvable sub-module.</p>
  290           
  291           
  292 
  293           
  294           <div class="method-source-code" id="submodul-source">
  295             <pre><span class="ruby-comment"># File examples/jas.rb, line 4629</span>
  296 <span class="ruby-keyword">def</span> <span class="ruby-identifier">submodul</span>(<span class="ruby-identifier">modstr</span>=<span class="ruby-string">&quot;&quot;</span>,<span class="ruby-identifier">list</span>=<span class="ruby-keyword">nil</span>)
  297     <span class="ruby-keyword">return</span> <span class="ruby-constant">SolvableSubModule</span>.<span class="ruby-identifier">new</span>(<span class="ruby-keyword">self</span>,<span class="ruby-identifier">modstr</span>,<span class="ruby-identifier">list</span>);
  298 <span class="ruby-keyword">end</span></pre>
  299           </div>
  300           
  301         </div>
  302 
  303         
  304 
  305         
  306       </div>
  307 
  308     
  309       <div id="method-i-to_s" class="method-detail ">
  310         
  311         <div class="method-heading">
  312           <span class="method-name">to_s</span><span
  313             class="method-args">()</span>
  314           
  315           <span class="method-click-advice">click to toggle source</span>
  316           
  317         </div>
  318         
  319 
  320         <div class="method-description">
  321           
  322           <p>Create a string representation.</p>
  323           
  324           
  325 
  326           
  327           <div class="method-source-code" id="to_s-source">
  328             <pre><span class="ruby-comment"># File examples/jas.rb, line 4622</span>
  329 <span class="ruby-keyword">def</span> <span class="ruby-identifier">to_s</span>()
  330     <span class="ruby-keyword">return</span> <span class="ruby-ivar">@mset</span>.<span class="ruby-identifier">toScript</span>();
  331 <span class="ruby-keyword">end</span></pre>
  332           </div>
  333           
  334         </div>
  335 
  336         
  337 
  338         
  339       </div>
  340 
  341     
  342     </section>
  343   
  344   </section>
  345 </main>
  346 
  347 
  348 <footer id="validator-badges" role="contentinfo">
  349   <p><a href="http://validator.w3.org/check/referer">Validate</a>
  350   <p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.0.
  351   <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
  352 </footer>
  353