linmeric 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +5 -5
- data/Rakefile +31 -0
- data/bin/linmeric +6 -3
- data/doc/Archive.html +3 -2
- data/doc/Calculator.html +2 -1
- data/doc/Calculator/Evaluator.html +3 -2
- data/doc/Calculator/Lexer.html +3 -2
- data/doc/Calculator/Token.html +3 -2
- data/doc/Dim.html +6 -5
- data/doc/Filename.html +5 -4
- data/doc/Fixnum.html +13 -152
- data/doc/Float.html +6 -5
- data/doc/Function.html +3 -2
- data/doc/InputError.html +2 -1
- data/doc/IntNum.html +249 -0
- data/doc/Integer.html +114 -0
- data/doc/Integrators.html +2 -1
- data/doc/LU.html +2 -1
- data/doc/Lexer.html +3 -2
- data/doc/Linmeric.html +2 -1
- data/doc/Listener.html +3 -2
- data/doc/Matrix.html +37 -36
- data/doc/MyArgError.html +2 -1
- data/doc/NilClass.html +5 -4
- data/doc/Numeric.html +6 -5
- data/doc/Object.html +117 -0
- data/doc/Parser.html +9 -8
- data/doc/PrintError.html +2 -1
- data/doc/README_md.html +16 -14
- data/doc/Scp.html +3 -2
- data/doc/Sizer.html +9 -5
- data/doc/String.html +12 -11
- data/doc/Token.html +3 -2
- data/doc/Tool.html +2 -1
- data/doc/created.rid +18 -18
- data/doc/css/fonts.css +6 -6
- data/doc/index.html +22 -14
- data/doc/js/darkfish.js +7 -7
- data/doc/js/jquery.js +4 -9404
- data/doc/js/navigation.js.gz +0 -0
- data/doc/js/search_index.js +1 -1
- data/doc/js/search_index.js.gz +0 -0
- data/doc/js/searcher.js +3 -2
- data/doc/js/searcher.js.gz +0 -0
- data/doc/table_of_contents.html +23 -13
- data/lib/linmeric/CnGal_Matrix_class.rb +11 -5
- data/lib/linmeric/CnGal_new_classes.rb +14 -2
- data/lib/linmeric/Parser.rb +6 -6
- data/lib/linmeric/Sizer.rb +3 -0
- data/lib/linmeric/version.rb +1 -1
- data/lib/linmeric_bin.rb +2 -1
- metadata +9 -6
- data/doc/Instructions_en.txt +0 -207
- data/doc/Instructions_it.txt +0 -211
data/doc/Integrators.html
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
<script type="text/javascript">
|
|
10
10
|
var rdoc_rel_prefix = "./";
|
|
11
|
+
var index_rel_prefix = "./";
|
|
11
12
|
</script>
|
|
12
13
|
|
|
13
14
|
<script src="./js/jquery.js"></script>
|
|
@@ -430,7 +431,7 @@ href="mailto:max.codeware@gmail.com">max.codeware@gmail.com</a>)</p>
|
|
|
430
431
|
|
|
431
432
|
<footer id="validator-badges" role="contentinfo">
|
|
432
433
|
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
|
433
|
-
<p>Generated by <a href="
|
|
434
|
+
<p>Generated by <a href="https://rdoc.github.io/rdoc">RDoc</a> 5.0.0.
|
|
434
435
|
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
|
435
436
|
</footer>
|
|
436
437
|
|
data/doc/LU.html
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
<script type="text/javascript">
|
|
10
10
|
var rdoc_rel_prefix = "./";
|
|
11
|
+
var index_rel_prefix = "./";
|
|
11
12
|
</script>
|
|
12
13
|
|
|
13
14
|
<script src="./js/jquery.js"></script>
|
|
@@ -429,7 +430,7 @@ system</p>
|
|
|
429
430
|
|
|
430
431
|
<footer id="validator-badges" role="contentinfo">
|
|
431
432
|
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
|
432
|
-
<p>Generated by <a href="
|
|
433
|
+
<p>Generated by <a href="https://rdoc.github.io/rdoc">RDoc</a> 5.0.0.
|
|
433
434
|
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
|
434
435
|
</footer>
|
|
435
436
|
|
data/doc/Lexer.html
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
<script type="text/javascript">
|
|
10
10
|
var rdoc_rel_prefix = "./";
|
|
11
|
+
var index_rel_prefix = "./";
|
|
11
12
|
</script>
|
|
12
13
|
|
|
13
14
|
<script src="./js/jquery.js"></script>
|
|
@@ -58,7 +59,7 @@
|
|
|
58
59
|
<h3>Parent</h3>
|
|
59
60
|
|
|
60
61
|
|
|
61
|
-
<p class="link">Object
|
|
62
|
+
<p class="link"><a href="Object.html">Object</a>
|
|
62
63
|
|
|
63
64
|
</div>
|
|
64
65
|
|
|
@@ -255,7 +256,7 @@ href="Token.html">Token</a> )</p>
|
|
|
255
256
|
|
|
256
257
|
<footer id="validator-badges" role="contentinfo">
|
|
257
258
|
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
|
258
|
-
<p>Generated by <a href="
|
|
259
|
+
<p>Generated by <a href="https://rdoc.github.io/rdoc">RDoc</a> 5.0.0.
|
|
259
260
|
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
|
260
261
|
</footer>
|
|
261
262
|
|
data/doc/Linmeric.html
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
<script type="text/javascript">
|
|
10
10
|
var rdoc_rel_prefix = "./";
|
|
11
|
+
var index_rel_prefix = "./";
|
|
11
12
|
</script>
|
|
12
13
|
|
|
13
14
|
<script src="./js/jquery.js"></script>
|
|
@@ -103,7 +104,7 @@
|
|
|
103
104
|
|
|
104
105
|
<footer id="validator-badges" role="contentinfo">
|
|
105
106
|
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
|
106
|
-
<p>Generated by <a href="
|
|
107
|
+
<p>Generated by <a href="https://rdoc.github.io/rdoc">RDoc</a> 5.0.0.
|
|
107
108
|
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
|
108
109
|
</footer>
|
|
109
110
|
|
data/doc/Listener.html
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
<script type="text/javascript">
|
|
10
10
|
var rdoc_rel_prefix = "./";
|
|
11
|
+
var index_rel_prefix = "./";
|
|
11
12
|
</script>
|
|
12
13
|
|
|
13
14
|
<script src="./js/jquery.js"></script>
|
|
@@ -58,7 +59,7 @@
|
|
|
58
59
|
<h3>Parent</h3>
|
|
59
60
|
|
|
60
61
|
|
|
61
|
-
<p class="link">Object
|
|
62
|
+
<p class="link"><a href="Object.html">Object</a>
|
|
62
63
|
|
|
63
64
|
</div>
|
|
64
65
|
|
|
@@ -599,7 +600,7 @@ command line after they pressed return.</p>
|
|
|
599
600
|
|
|
600
601
|
<footer id="validator-badges" role="contentinfo">
|
|
601
602
|
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
|
602
|
-
<p>Generated by <a href="
|
|
603
|
+
<p>Generated by <a href="https://rdoc.github.io/rdoc">RDoc</a> 5.0.0.
|
|
603
604
|
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
|
604
605
|
</footer>
|
|
605
606
|
|
data/doc/Matrix.html
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
<script type="text/javascript">
|
|
10
10
|
var rdoc_rel_prefix = "./";
|
|
11
|
+
var index_rel_prefix = "./";
|
|
11
12
|
</script>
|
|
12
13
|
|
|
13
14
|
<script src="./js/jquery.js"></script>
|
|
@@ -58,7 +59,7 @@
|
|
|
58
59
|
<h3>Parent</h3>
|
|
59
60
|
|
|
60
61
|
|
|
61
|
-
<p class="link">Object
|
|
62
|
+
<p class="link"><a href="Object.html">Object</a>
|
|
62
63
|
|
|
63
64
|
</div>
|
|
64
65
|
|
|
@@ -194,7 +195,7 @@ href="mailto:max.codeware@gmail.com">max.codeware@gmail.com</a>)</p>
|
|
|
194
195
|
|
|
195
196
|
|
|
196
197
|
<div class="method-source-code" id="from_file-source">
|
|
197
|
-
<pre><span class="ruby-comment"># File lib/linmeric/CnGal_Matrix_class.rb, line
|
|
198
|
+
<pre><span class="ruby-comment"># File lib/linmeric/CnGal_Matrix_class.rb, line 82</span>
|
|
198
199
|
<span class="ruby-keyword">def</span> <span class="ruby-constant">Matrix</span>.<span class="ruby-identifier">from_file</span>(<span class="ruby-identifier">filename</span> = <span class="ruby-string">""</span>)
|
|
199
200
|
<span class="ruby-ivar">@mx</span> = []
|
|
200
201
|
<span class="ruby-ivar">@MyCls</span> = <span class="ruby-value">0</span>
|
|
@@ -254,9 +255,9 @@ href="mailto:max.codeware@gmail.com">max.codeware@gmail.com</a>)</p>
|
|
|
254
255
|
|
|
255
256
|
|
|
256
257
|
<div class="method-source-code" id="identity-source">
|
|
257
|
-
<pre><span class="ruby-comment"># File lib/linmeric/CnGal_Matrix_class.rb, line
|
|
258
|
+
<pre><span class="ruby-comment"># File lib/linmeric/CnGal_Matrix_class.rb, line 404</span>
|
|
258
259
|
<span class="ruby-keyword">def</span> <span class="ruby-constant">Matrix</span>.<span class="ruby-identifier">identity</span>(<span class="ruby-identifier">n</span>)
|
|
259
|
-
<span class="ruby-identifier">raise</span> <span class="ruby-constant">MyArgError</span>, <span class="ruby-node">"Argument Error: expecting Fixnum value, but #{n.class} found"</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">n</span>.<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">
|
|
260
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-constant">MyArgError</span>, <span class="ruby-node">"Argument Error: expecting Fixnum value, but #{n.class} found"</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">n</span>.<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">Int</span>
|
|
260
261
|
<span class="ruby-keyword">return</span> <span class="ruby-constant">Matrix</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">n</span>,<span class="ruby-identifier">n</span>) { <span class="ruby-operator">|</span><span class="ruby-identifier">i</span>,<span class="ruby-identifier">j</span><span class="ruby-operator">|</span> (<span class="ruby-identifier">i</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">j</span>) <span class="ruby-operator">?</span> <span class="ruby-value">1</span> <span class="ruby-operator">:</span> <span class="ruby-value">0</span> }
|
|
261
262
|
<span class="ruby-keyword">end</span></pre>
|
|
262
263
|
</div>
|
|
@@ -302,14 +303,14 @@ href="Calculator.html">Calculator</a></p>
|
|
|
302
303
|
|
|
303
304
|
|
|
304
305
|
<div class="method-source-code" id="new-source">
|
|
305
|
-
<pre><span class="ruby-comment"># File lib/linmeric/CnGal_Matrix_class.rb, line
|
|
306
|
+
<pre><span class="ruby-comment"># File lib/linmeric/CnGal_Matrix_class.rb, line 35</span>
|
|
306
307
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">rws</span> = <span class="ruby-value">0</span>,<span class="ruby-identifier">cls</span> = <span class="ruby-value">0</span>)
|
|
307
308
|
<span class="ruby-identifier">listener</span> = <span class="ruby-constant">Listener</span>.<span class="ruby-identifier">new</span>
|
|
308
309
|
<span class="ruby-keyword">if</span> <span class="ruby-identifier">rws</span> <span class="ruby-operator">==</span> <span class="ruby-value">0</span> <span class="ruby-keyword">or</span> <span class="ruby-identifier">cls</span> <span class="ruby-operator">==</span> <span class="ruby-value">0</span> <span class="ruby-keyword">or</span> <span class="ruby-identifier">rws</span>.<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">Float</span> <span class="ruby-keyword">or</span> <span class="ruby-identifier">cls</span>.<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">Float</span> <span class="ruby-keyword">then</span>
|
|
309
310
|
<span class="ruby-identifier">raise</span> <span class="ruby-constant">MyArgError</span>,<span class="ruby-node">" Argument Error: invalid dimension #{rws}x#{cls} for Matrix object"</span>
|
|
310
|
-
<span class="ruby-keyword">elsif</span> <span class="ruby-operator">!</span>(<span class="ruby-identifier">rws</span>.<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">
|
|
311
|
-
<span class="ruby-identifier">e</span> = <span class="ruby-identifier">rws</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">e</span>.<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">
|
|
312
|
-
<span class="ruby-identifier">e</span> = <span class="ruby-identifier">cls</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">cls</span>.<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">
|
|
311
|
+
<span class="ruby-keyword">elsif</span> <span class="ruby-operator">!</span>(<span class="ruby-identifier">rws</span>.<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">Int</span>) <span class="ruby-keyword">or</span> <span class="ruby-operator">!</span>(<span class="ruby-identifier">cls</span>.<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">Int</span>) <span class="ruby-keyword">then</span>
|
|
312
|
+
<span class="ruby-identifier">e</span> = <span class="ruby-identifier">rws</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">e</span>.<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">Int</span>
|
|
313
|
+
<span class="ruby-identifier">e</span> = <span class="ruby-identifier">cls</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">cls</span>.<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">Int</span>
|
|
313
314
|
<span class="ruby-identifier">raise</span> <span class="ruby-constant">MyArgError</span>,<span class="ruby-node">" Argument Error: colums and rows in Integer format expected but #{e.class} found"</span>
|
|
314
315
|
<span class="ruby-keyword">else</span>
|
|
315
316
|
<span class="ruby-ivar">@MyRws</span> = <span class="ruby-identifier">rws</span>; <span class="ruby-ivar">@MyCls</span> = <span class="ruby-identifier">cls</span>
|
|
@@ -388,7 +389,7 @@ are different; <code>false</code> else</p>
|
|
|
388
389
|
|
|
389
390
|
|
|
390
391
|
<div class="method-source-code" id="21-3D-source">
|
|
391
|
-
<pre><span class="ruby-comment"># File lib/linmeric/CnGal_Matrix_class.rb, line
|
|
392
|
+
<pre><span class="ruby-comment"># File lib/linmeric/CnGal_Matrix_class.rb, line 236</span>
|
|
392
393
|
<span class="ruby-keyword">def</span> <span class="ruby-operator">!=</span>(<span class="ruby-identifier">obj</span>)
|
|
393
394
|
<span class="ruby-keyword">if</span> <span class="ruby-identifier">obj</span>.<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">Matrix</span> <span class="ruby-keyword">then</span>
|
|
394
395
|
<span class="ruby-keyword">self</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">obj</span> <span class="ruby-operator">?</span> (<span class="ruby-keyword">return</span> <span class="ruby-keyword">false</span>) <span class="ruby-operator">:</span> (<span class="ruby-keyword">return</span> <span class="ruby-keyword">true</span>)
|
|
@@ -430,7 +431,7 @@ are different; <code>false</code> else</p>
|
|
|
430
431
|
|
|
431
432
|
|
|
432
433
|
<div class="method-source-code" id="2A-source">
|
|
433
|
-
<pre><span class="ruby-comment"># File lib/linmeric/CnGal_Matrix_class.rb, line
|
|
434
|
+
<pre><span class="ruby-comment"># File lib/linmeric/CnGal_Matrix_class.rb, line 307</span>
|
|
434
435
|
<span class="ruby-keyword">def</span> <span class="ruby-operator">*</span>(<span class="ruby-identifier">ob</span>)
|
|
435
436
|
<span class="ruby-keyword">case</span>
|
|
436
437
|
<span class="ruby-keyword">when</span> (<span class="ruby-identifier">ob</span>.<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">Numeric</span>)
|
|
@@ -488,7 +489,7 @@ are different; <code>false</code> else</p>
|
|
|
488
489
|
|
|
489
490
|
|
|
490
491
|
<div class="method-source-code" id="2A-2A-source">
|
|
491
|
-
<pre><span class="ruby-comment"># File lib/linmeric/CnGal_Matrix_class.rb, line
|
|
492
|
+
<pre><span class="ruby-comment"># File lib/linmeric/CnGal_Matrix_class.rb, line 352</span>
|
|
492
493
|
<span class="ruby-keyword">def</span> <span class="ruby-operator">**</span>(<span class="ruby-identifier">obj</span>)
|
|
493
494
|
<span class="ruby-keyword">return</span> <span class="ruby-constant">Matrix</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@MyRws</span>,<span class="ruby-ivar">@MyCls</span>) { <span class="ruby-operator">|</span><span class="ruby-identifier">i</span>,<span class="ruby-identifier">j</span><span class="ruby-operator">|</span> <span class="ruby-keyword">self</span>[<span class="ruby-identifier">i</span>,<span class="ruby-identifier">j</span>] <span class="ruby-operator">**</span> <span class="ruby-identifier">obj</span>} <span class="ruby-keyword">if</span> <span class="ruby-identifier">obj</span>.<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">Numeric</span>
|
|
494
495
|
<span class="ruby-identifier">raise</span> <span class="ruby-constant">MyArgError</span>, <span class="ruby-node">" Argument Error: Invalid power Matrix-#{obj.class} "</span>
|
|
@@ -527,7 +528,7 @@ are different; <code>false</code> else</p>
|
|
|
527
528
|
|
|
528
529
|
|
|
529
530
|
<div class="method-source-code" id="2B-source">
|
|
530
|
-
<pre><span class="ruby-comment"># File lib/linmeric/CnGal_Matrix_class.rb, line
|
|
531
|
+
<pre><span class="ruby-comment"># File lib/linmeric/CnGal_Matrix_class.rb, line 261</span>
|
|
531
532
|
<span class="ruby-keyword">def</span> <span class="ruby-operator">+</span>(<span class="ruby-identifier">m</span>)
|
|
532
533
|
<span class="ruby-keyword">if</span> <span class="ruby-identifier">m</span>.<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">Matrix</span> <span class="ruby-keyword">then</span>
|
|
533
534
|
<span class="ruby-keyword">if</span> <span class="ruby-identifier">m</span>.<span class="ruby-identifier">similar_to?</span> <span class="ruby-keyword">self</span> <span class="ruby-keyword">then</span>
|
|
@@ -573,7 +574,7 @@ are different; <code>false</code> else</p>
|
|
|
573
574
|
|
|
574
575
|
|
|
575
576
|
<div class="method-source-code" id="2D-source">
|
|
576
|
-
<pre><span class="ruby-comment"># File lib/linmeric/CnGal_Matrix_class.rb, line
|
|
577
|
+
<pre><span class="ruby-comment"># File lib/linmeric/CnGal_Matrix_class.rb, line 277</span>
|
|
577
578
|
<span class="ruby-keyword">def</span> <span class="ruby-operator">-</span>(<span class="ruby-identifier">m</span>)
|
|
578
579
|
<span class="ruby-keyword">if</span> <span class="ruby-identifier">m</span>.<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">Matrix</span> <span class="ruby-keyword">then</span>
|
|
579
580
|
<span class="ruby-keyword">if</span> <span class="ruby-identifier">m</span>.<span class="ruby-identifier">similar_to?</span> <span class="ruby-keyword">self</span> <span class="ruby-keyword">then</span>
|
|
@@ -619,7 +620,7 @@ are different; <code>false</code> else</p>
|
|
|
619
620
|
|
|
620
621
|
|
|
621
622
|
<div class="method-source-code" id="2F-source">
|
|
622
|
-
<pre><span class="ruby-comment"># File lib/linmeric/CnGal_Matrix_class.rb, line
|
|
623
|
+
<pre><span class="ruby-comment"># File lib/linmeric/CnGal_Matrix_class.rb, line 343</span>
|
|
623
624
|
<span class="ruby-keyword">def</span> <span class="ruby-operator">/</span>(<span class="ruby-identifier">obj</span>)
|
|
624
625
|
<span class="ruby-keyword">return</span> <span class="ruby-constant">Matrix</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@MyRws</span>,<span class="ruby-ivar">@MyCls</span>) { <span class="ruby-operator">|</span><span class="ruby-identifier">i</span>,<span class="ruby-identifier">j</span><span class="ruby-operator">|</span> <span class="ruby-keyword">self</span>[<span class="ruby-identifier">i</span>,<span class="ruby-identifier">j</span>] <span class="ruby-operator">/</span> <span class="ruby-identifier">obj</span>.<span class="ruby-identifier">to_f</span>} <span class="ruby-keyword">if</span> <span class="ruby-identifier">obj</span>.<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">Numeric</span>
|
|
625
626
|
<span class="ruby-identifier">raise</span> <span class="ruby-constant">MyArgError</span>, <span class="ruby-node">" Argument Error: Invalid division between Matrix and #{obj.class} "</span>
|
|
@@ -659,7 +660,7 @@ compered; <code>false</code> else</p>
|
|
|
659
660
|
|
|
660
661
|
|
|
661
662
|
<div class="method-source-code" id="3D-3D-source">
|
|
662
|
-
<pre><span class="ruby-comment"># File lib/linmeric/CnGal_Matrix_class.rb, line
|
|
663
|
+
<pre><span class="ruby-comment"># File lib/linmeric/CnGal_Matrix_class.rb, line 223</span>
|
|
663
664
|
<span class="ruby-keyword">def</span> <span class="ruby-operator">==</span>(<span class="ruby-identifier">obj</span>)
|
|
664
665
|
<span class="ruby-keyword">if</span> <span class="ruby-identifier">obj</span>.<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">Matrix</span> <span class="ruby-keyword">then</span>
|
|
665
666
|
<span class="ruby-keyword">if</span> (<span class="ruby-keyword">self</span>.<span class="ruby-identifier">getCls</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">obj</span>.<span class="ruby-identifier">getCls</span> <span class="ruby-operator">&&</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">getRws</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">obj</span>.<span class="ruby-identifier">getRws</span> ) <span class="ruby-keyword">then</span>
|
|
@@ -707,7 +708,7 @@ required; `Matrix` else</p>
|
|
|
707
708
|
|
|
708
709
|
|
|
709
710
|
<div class="method-source-code" id="5B-5D-source">
|
|
710
|
-
<pre><span class="ruby-comment"># File lib/linmeric/CnGal_Matrix_class.rb, line
|
|
711
|
+
<pre><span class="ruby-comment"># File lib/linmeric/CnGal_Matrix_class.rb, line 182</span>
|
|
711
712
|
<span class="ruby-keyword">def</span> <span class="ruby-operator">[]</span>(<span class="ruby-identifier">x</span>,<span class="ruby-identifier">y</span>)
|
|
712
713
|
<span class="ruby-keyword">if</span> <span class="ruby-identifier">x</span>.<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">Numeric</span> <span class="ruby-keyword">and</span> <span class="ruby-identifier">y</span>.<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">Numeric</span> <span class="ruby-keyword">then</span>
|
|
713
714
|
<span class="ruby-keyword">return</span> <span class="ruby-ivar">@mx</span>[<span class="ruby-identifier">x</span><span class="ruby-operator">*</span><span class="ruby-ivar">@MyCls</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">y</span>]
|
|
@@ -770,7 +771,7 @@ required; `Matrix` else</p>
|
|
|
770
771
|
|
|
771
772
|
|
|
772
773
|
<div class="method-source-code" id="5B-5D-3D-source">
|
|
773
|
-
<pre><span class="ruby-comment"># File lib/linmeric/CnGal_Matrix_class.rb, line
|
|
774
|
+
<pre><span class="ruby-comment"># File lib/linmeric/CnGal_Matrix_class.rb, line 214</span>
|
|
774
775
|
<span class="ruby-keyword">def</span> <span class="ruby-operator">[]=</span>(<span class="ruby-identifier">i</span>,<span class="ruby-identifier">j</span>,<span class="ruby-identifier">val</span>)
|
|
775
776
|
<span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, <span class="ruby-node">" Argument Error: Numeric value expected but #{val.class} found"</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">val</span>.<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">Numeric</span>
|
|
776
777
|
<span class="ruby-ivar">@mx</span>[<span class="ruby-identifier">i</span><span class="ruby-operator">*</span><span class="ruby-ivar">@MyCls</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">j</span>] = <span class="ruby-identifier">val</span>
|
|
@@ -810,7 +811,7 @@ href="Numeric.html">Numeric</a>; <code>false</code> else</p>
|
|
|
810
811
|
|
|
811
812
|
|
|
812
813
|
<div class="method-source-code" id="can_divide-3F-source">
|
|
813
|
-
<pre><span class="ruby-comment"># File lib/linmeric/CnGal_Matrix_class.rb, line
|
|
814
|
+
<pre><span class="ruby-comment"># File lib/linmeric/CnGal_Matrix_class.rb, line 335</span>
|
|
814
815
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">can_divide?</span>(<span class="ruby-identifier">obj</span>)
|
|
815
816
|
<span class="ruby-keyword">return</span> (<span class="ruby-identifier">obj</span>.<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">Numeric</span>)
|
|
816
817
|
<span class="ruby-keyword">end</span></pre>
|
|
@@ -851,7 +852,7 @@ good `Matrix` for '*' operation;</p>
|
|
|
851
852
|
|
|
852
853
|
|
|
853
854
|
<div class="method-source-code" id="can_multiply-3F-source">
|
|
854
|
-
<pre><span class="ruby-comment"># File lib/linmeric/CnGal_Matrix_class.rb, line
|
|
855
|
+
<pre><span class="ruby-comment"># File lib/linmeric/CnGal_Matrix_class.rb, line 294</span>
|
|
855
856
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">can_multiply?</span>(<span class="ruby-identifier">obj</span>)
|
|
856
857
|
<span class="ruby-keyword">if</span> <span class="ruby-identifier">obj</span>.<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">Matrix</span> <span class="ruby-keyword">then</span>
|
|
857
858
|
(<span class="ruby-keyword">self</span>.<span class="ruby-identifier">getCls</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">obj</span>.<span class="ruby-identifier">getRws</span>) <span class="ruby-operator">?</span> (<span class="ruby-keyword">return</span> <span class="ruby-keyword">true</span>) <span class="ruby-operator">:</span> (<span class="ruby-keyword">return</span> <span class="ruby-keyword">false</span>)
|
|
@@ -889,7 +890,7 @@ good `Matrix` for '*' operation;</p>
|
|
|
889
890
|
|
|
890
891
|
|
|
891
892
|
<div class="method-source-code" id="coerce-source">
|
|
892
|
-
<pre><span class="ruby-comment"># File lib/linmeric/CnGal_Matrix_class.rb, line
|
|
893
|
+
<pre><span class="ruby-comment"># File lib/linmeric/CnGal_Matrix_class.rb, line 409</span>
|
|
893
894
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">coerce</span>(<span class="ruby-identifier">val</span>)
|
|
894
895
|
<span class="ruby-keyword">return</span> [<span class="ruby-keyword">self</span>, <span class="ruby-identifier">val</span>]
|
|
895
896
|
<span class="ruby-keyword">end</span></pre>
|
|
@@ -931,10 +932,10 @@ good `Matrix` for '*' operation;</p>
|
|
|
931
932
|
|
|
932
933
|
|
|
933
934
|
<div class="method-source-code" id="del_rwcl-source">
|
|
934
|
-
<pre><span class="ruby-comment"># File lib/linmeric/CnGal_Matrix_class.rb, line
|
|
935
|
+
<pre><span class="ruby-comment"># File lib/linmeric/CnGal_Matrix_class.rb, line 421</span>
|
|
935
936
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">del_rwcl</span>(<span class="ruby-identifier">mx</span>,<span class="ruby-identifier">rw</span>,<span class="ruby-identifier">cl</span>)
|
|
936
937
|
[<span class="ruby-identifier">rw</span>,<span class="ruby-identifier">cl</span>].<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">arg</span><span class="ruby-operator">|</span>
|
|
937
|
-
<span class="ruby-identifier">raise</span> <span class="ruby-constant">MyArgError</span>,<span class="ruby-node">"Argument Error: row and column in Fixnum format expected, but #{arg.class} found"</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">arg</span>.<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">
|
|
938
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-constant">MyArgError</span>,<span class="ruby-node">"Argument Error: row and column in Fixnum format expected, but #{arg.class} found"</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">arg</span>.<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">Int</span>
|
|
938
939
|
<span class="ruby-keyword">end</span>
|
|
939
940
|
<span class="ruby-identifier">rd</span> = <span class="ruby-identifier">mx</span>.<span class="ruby-identifier">export</span>.<span class="ruby-identifier">clone</span>
|
|
940
941
|
<span class="ruby-identifier">cols</span> = <span class="ruby-identifier">mx</span>.<span class="ruby-identifier">getCls</span>
|
|
@@ -978,7 +979,7 @@ good `Matrix` for '*' operation;</p>
|
|
|
978
979
|
|
|
979
980
|
|
|
980
981
|
<div class="method-source-code" id="export-source">
|
|
981
|
-
<pre><span class="ruby-comment"># File lib/linmeric/CnGal_Matrix_class.rb, line
|
|
982
|
+
<pre><span class="ruby-comment"># File lib/linmeric/CnGal_Matrix_class.rb, line 152</span>
|
|
982
983
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">export</span>()
|
|
983
984
|
<span class="ruby-keyword">return</span> <span class="ruby-ivar">@mx</span>
|
|
984
985
|
<span class="ruby-keyword">end</span></pre>
|
|
@@ -1013,7 +1014,7 @@ good `Matrix` for '*' operation;</p>
|
|
|
1013
1014
|
|
|
1014
1015
|
|
|
1015
1016
|
<div class="method-source-code" id="getCls-source">
|
|
1016
|
-
<pre><span class="ruby-comment"># File lib/linmeric/CnGal_Matrix_class.rb, line
|
|
1017
|
+
<pre><span class="ruby-comment"># File lib/linmeric/CnGal_Matrix_class.rb, line 142</span>
|
|
1017
1018
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">getCls</span>()
|
|
1018
1019
|
<span class="ruby-keyword">return</span> <span class="ruby-ivar">@MyCls</span>
|
|
1019
1020
|
<span class="ruby-keyword">end</span></pre>
|
|
@@ -1048,7 +1049,7 @@ good `Matrix` for '*' operation;</p>
|
|
|
1048
1049
|
|
|
1049
1050
|
|
|
1050
1051
|
<div class="method-source-code" id="getRws-source">
|
|
1051
|
-
<pre><span class="ruby-comment"># File lib/linmeric/CnGal_Matrix_class.rb, line
|
|
1052
|
+
<pre><span class="ruby-comment"># File lib/linmeric/CnGal_Matrix_class.rb, line 147</span>
|
|
1052
1053
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">getRws</span>()
|
|
1053
1054
|
<span class="ruby-keyword">return</span> <span class="ruby-ivar">@MyRws</span>
|
|
1054
1055
|
<span class="ruby-keyword">end</span></pre>
|
|
@@ -1085,7 +1086,7 @@ good `Matrix` for '*' operation;</p>
|
|
|
1085
1086
|
|
|
1086
1087
|
|
|
1087
1088
|
<div class="method-source-code" id="is_squared-3F-source">
|
|
1088
|
-
<pre><span class="ruby-comment"># File lib/linmeric/CnGal_Matrix_class.rb, line
|
|
1089
|
+
<pre><span class="ruby-comment"># File lib/linmeric/CnGal_Matrix_class.rb, line 379</span>
|
|
1089
1090
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">is_squared?</span>()
|
|
1090
1091
|
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">getCls</span> <span class="ruby-operator">==</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">getRws</span> <span class="ruby-operator">?</span> (<span class="ruby-keyword">return</span> <span class="ruby-keyword">true</span>) <span class="ruby-operator">:</span> (<span class="ruby-keyword">return</span> <span class="ruby-keyword">false</span>)
|
|
1091
1092
|
<span class="ruby-keyword">end</span></pre>
|
|
@@ -1121,7 +1122,7 @@ good `Matrix` for '*' operation;</p>
|
|
|
1121
1122
|
|
|
1122
1123
|
|
|
1123
1124
|
<div class="method-source-code" id="laplace-source">
|
|
1124
|
-
<pre><span class="ruby-comment"># File lib/linmeric/CnGal_Matrix_class.rb, line
|
|
1125
|
+
<pre><span class="ruby-comment"># File lib/linmeric/CnGal_Matrix_class.rb, line 386</span>
|
|
1125
1126
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">laplace</span>
|
|
1126
1127
|
<span class="ruby-keyword">if</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">is_squared?</span> <span class="ruby-keyword">then</span>
|
|
1127
1128
|
<span class="ruby-keyword">return</span> (<span class="ruby-keyword">self</span>[<span class="ruby-value">0</span>,<span class="ruby-value">0</span>] <span class="ruby-operator">*</span> <span class="ruby-keyword">self</span>[<span class="ruby-value">1</span>,<span class="ruby-value">1</span>]) <span class="ruby-operator">-</span> (<span class="ruby-keyword">self</span>[<span class="ruby-value">0</span>,<span class="ruby-value">1</span>] <span class="ruby-operator">*</span> <span class="ruby-keyword">self</span>[<span class="ruby-value">1</span>,<span class="ruby-value">0</span>]) <span class="ruby-keyword">if</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">getRws</span> <span class="ruby-operator">==</span> <span class="ruby-value">2</span>
|
|
@@ -1168,7 +1169,7 @@ href="i,j">sqrt(sum(m</a>**2))</p>
|
|
|
1168
1169
|
|
|
1169
1170
|
|
|
1170
1171
|
<div class="method-source-code" id="norm-source">
|
|
1171
|
-
<pre><span class="ruby-comment"># File lib/linmeric/CnGal_Matrix_class.rb, line
|
|
1172
|
+
<pre><span class="ruby-comment"># File lib/linmeric/CnGal_Matrix_class.rb, line 368</span>
|
|
1172
1173
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">norm</span>()
|
|
1173
1174
|
<span class="ruby-identifier">sum</span>=<span class="ruby-value">0</span>
|
|
1174
1175
|
<span class="ruby-ivar">@mx</span>.<span class="ruby-identifier">map</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">e</span><span class="ruby-operator">|</span>
|
|
@@ -1213,7 +1214,7 @@ has the same rows and colum number;</p>
|
|
|
1213
1214
|
|
|
1214
1215
|
|
|
1215
1216
|
<div class="method-source-code" id="similar_to-3F-source">
|
|
1216
|
-
<pre><span class="ruby-comment"># File lib/linmeric/CnGal_Matrix_class.rb, line
|
|
1217
|
+
<pre><span class="ruby-comment"># File lib/linmeric/CnGal_Matrix_class.rb, line 249</span>
|
|
1217
1218
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">similar_to?</span>(<span class="ruby-identifier">obj</span>)
|
|
1218
1219
|
<span class="ruby-keyword">if</span> <span class="ruby-identifier">obj</span>.<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">Matrix</span> <span class="ruby-keyword">then</span>
|
|
1219
1220
|
(<span class="ruby-keyword">self</span>.<span class="ruby-identifier">getCls</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">obj</span>.<span class="ruby-identifier">getCls</span> <span class="ruby-operator">&&</span>
|
|
@@ -1253,7 +1254,7 @@ has the same rows and colum number;</p>
|
|
|
1253
1254
|
|
|
1254
1255
|
|
|
1255
1256
|
<div class="method-source-code" id="to_file-source">
|
|
1256
|
-
<pre><span class="ruby-comment"># File lib/linmeric/CnGal_Matrix_class.rb, line
|
|
1257
|
+
<pre><span class="ruby-comment"># File lib/linmeric/CnGal_Matrix_class.rb, line 111</span>
|
|
1257
1258
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">to_file</span>(<span class="ruby-identifier">filename</span> = <span class="ruby-string">""</span>)
|
|
1258
1259
|
<span class="ruby-keyword">if</span> <span class="ruby-operator">!</span>(<span class="ruby-constant">Dir</span>.<span class="ruby-identifier">exist?</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">dirname</span>(<span class="ruby-identifier">filename</span>)) <span class="ruby-keyword">or</span> <span class="ruby-identifier">filename</span> <span class="ruby-operator">==</span> <span class="ruby-string">""</span> <span class="ruby-keyword">then</span>
|
|
1259
1260
|
<span class="ruby-identifier">raise</span> <span class="ruby-constant">MyArgError</span>, <span class="ruby-string">" Argument Error: Invalid directory; Directory not found"</span>
|
|
@@ -1297,7 +1298,7 @@ has the same rows and colum number;</p>
|
|
|
1297
1298
|
|
|
1298
1299
|
|
|
1299
1300
|
<div class="method-source-code" id="to_s-source">
|
|
1300
|
-
<pre><span class="ruby-comment"># File lib/linmeric/CnGal_Matrix_class.rb, line
|
|
1301
|
+
<pre><span class="ruby-comment"># File lib/linmeric/CnGal_Matrix_class.rb, line 127</span>
|
|
1301
1302
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">to_s</span>()
|
|
1302
1303
|
<span class="ruby-identifier">max</span> = <span class="ruby-value">0</span>
|
|
1303
1304
|
<span class="ruby-identifier">str</span> = <span class="ruby-string">""</span>
|
|
@@ -1576,7 +1577,7 @@ has the same rows and colum number;</p>
|
|
|
1576
1577
|
<span class="ruby-comment"># * **argument**: `Fixnum` of the matrix dimension</span>
|
|
1577
1578
|
<span class="ruby-comment"># * **returns**: `Matrix` object</span>
|
|
1578
1579
|
<span class="ruby-keyword">def</span> <span class="ruby-constant">Matrix</span>.<span class="ruby-identifier">identity</span>(<span class="ruby-identifier">n</span>)
|
|
1579
|
-
<span class="ruby-identifier">raise</span> <span class="ruby-constant">MyArgError</span>, <span class="ruby-node">"Argument Error: expecting Fixnum value, but #{n.class} found"</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">n</span>.<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">
|
|
1580
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-constant">MyArgError</span>, <span class="ruby-node">"Argument Error: expecting Fixnum value, but #{n.class} found"</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">n</span>.<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">Int</span>
|
|
1580
1581
|
<span class="ruby-keyword">return</span> <span class="ruby-constant">Matrix</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">n</span>,<span class="ruby-identifier">n</span>) { <span class="ruby-operator">|</span><span class="ruby-identifier">i</span>,<span class="ruby-identifier">j</span><span class="ruby-operator">|</span> (<span class="ruby-identifier">i</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">j</span>) <span class="ruby-operator">?</span> <span class="ruby-value">1</span> <span class="ruby-operator">:</span> <span class="ruby-value">0</span> }
|
|
1581
1582
|
<span class="ruby-keyword">end</span>
|
|
1582
1583
|
|
|
@@ -1594,7 +1595,7 @@ has the same rows and colum number;</p>
|
|
|
1594
1595
|
<span class="ruby-comment"># * **returns**: `Matrix` object </span>
|
|
1595
1596
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">del_rwcl</span>(<span class="ruby-identifier">mx</span>,<span class="ruby-identifier">rw</span>,<span class="ruby-identifier">cl</span>)
|
|
1596
1597
|
[<span class="ruby-identifier">rw</span>,<span class="ruby-identifier">cl</span>].<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">arg</span><span class="ruby-operator">|</span>
|
|
1597
|
-
<span class="ruby-identifier">raise</span> <span class="ruby-constant">MyArgError</span>,<span class="ruby-node">"Argument Error: row and column in Fixnum format expected, but #{arg.class} found"</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">arg</span>.<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">
|
|
1598
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-constant">MyArgError</span>,<span class="ruby-node">"Argument Error: row and column in Fixnum format expected, but #{arg.class} found"</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">arg</span>.<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">Int</span>
|
|
1598
1599
|
<span class="ruby-keyword">end</span>
|
|
1599
1600
|
<span class="ruby-identifier">rd</span> = <span class="ruby-identifier">mx</span>.<span class="ruby-identifier">export</span>.<span class="ruby-identifier">clone</span>
|
|
1600
1601
|
<span class="ruby-identifier">cols</span> = <span class="ruby-identifier">mx</span>.<span class="ruby-identifier">getCls</span>
|
|
@@ -1641,7 +1642,7 @@ has the same rows and colum number;</p>
|
|
|
1641
1642
|
|
|
1642
1643
|
|
|
1643
1644
|
<div class="method-source-code" id="tr-source">
|
|
1644
|
-
<pre><span class="ruby-comment"># File lib/linmeric/CnGal_Matrix_class.rb, line
|
|
1645
|
+
<pre><span class="ruby-comment"># File lib/linmeric/CnGal_Matrix_class.rb, line 360</span>
|
|
1645
1646
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">tr</span>()
|
|
1646
1647
|
<span class="ruby-keyword">return</span> <span class="ruby-constant">Matrix</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@MyCls</span>,<span class="ruby-ivar">@MyRws</span>) { <span class="ruby-operator">|</span><span class="ruby-identifier">i</span>,<span class="ruby-identifier">j</span><span class="ruby-operator">|</span> <span class="ruby-ivar">@mx</span>[<span class="ruby-identifier">j</span> <span class="ruby-operator">*</span> <span class="ruby-ivar">@MyCls</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">i</span>]}
|
|
1647
1648
|
<span class="ruby-keyword">end</span></pre>
|
|
@@ -1682,7 +1683,7 @@ modified</p>
|
|
|
1682
1683
|
|
|
1683
1684
|
|
|
1684
1685
|
<div class="method-source-code" id="update-source">
|
|
1685
|
-
<pre><span class="ruby-comment"># File lib/linmeric/CnGal_Matrix_class.rb, line
|
|
1686
|
+
<pre><span class="ruby-comment"># File lib/linmeric/CnGal_Matrix_class.rb, line 162</span>
|
|
1686
1687
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">update</span>(<span class="ruby-identifier">mat</span>,<span class="ruby-identifier">rws</span>,<span class="ruby-identifier">cls</span>)
|
|
1687
1688
|
<span class="ruby-keyword">if</span> <span class="ruby-operator">!</span>(<span class="ruby-identifier">mat</span>.<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">Array</span>) <span class="ruby-keyword">then</span>
|
|
1688
1689
|
<span class="ruby-identifier">raise</span> <span class="ruby-constant">MyArgError</span>, <span class="ruby-string">" Argument Error: invalid matrix array found"</span>
|
|
@@ -1713,7 +1714,7 @@ modified</p>
|
|
|
1713
1714
|
|
|
1714
1715
|
<footer id="validator-badges" role="contentinfo">
|
|
1715
1716
|
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
|
1716
|
-
<p>Generated by <a href="
|
|
1717
|
+
<p>Generated by <a href="https://rdoc.github.io/rdoc">RDoc</a> 5.0.0.
|
|
1717
1718
|
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
|
1718
1719
|
</footer>
|
|
1719
1720
|
|
data/doc/MyArgError.html
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
<script type="text/javascript">
|
|
10
10
|
var rdoc_rel_prefix = "./";
|
|
11
|
+
var index_rel_prefix = "./";
|
|
11
12
|
</script>
|
|
12
13
|
|
|
13
14
|
<script src="./js/jquery.js"></script>
|
|
@@ -96,7 +97,7 @@
|
|
|
96
97
|
|
|
97
98
|
<footer id="validator-badges" role="contentinfo">
|
|
98
99
|
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
|
99
|
-
<p>Generated by <a href="
|
|
100
|
+
<p>Generated by <a href="https://rdoc.github.io/rdoc">RDoc</a> 5.0.0.
|
|
100
101
|
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
|
101
102
|
</footer>
|
|
102
103
|
|
data/doc/NilClass.html
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
<script type="text/javascript">
|
|
10
10
|
var rdoc_rel_prefix = "./";
|
|
11
|
+
var index_rel_prefix = "./";
|
|
11
12
|
</script>
|
|
12
13
|
|
|
13
14
|
<script src="./js/jquery.js"></script>
|
|
@@ -58,7 +59,7 @@
|
|
|
58
59
|
<h3>Parent</h3>
|
|
59
60
|
|
|
60
61
|
|
|
61
|
-
<p class="link">Object
|
|
62
|
+
<p class="link"><a href="Object.html">Object</a>
|
|
62
63
|
|
|
63
64
|
</div>
|
|
64
65
|
|
|
@@ -139,7 +140,7 @@ href="mailto:max.codeware@gmail.com">max.codeware@gmail.com</a>)</p>
|
|
|
139
140
|
|
|
140
141
|
|
|
141
142
|
<div class="method-source-code" id="size-source">
|
|
142
|
-
<pre><span class="ruby-comment"># File lib/linmeric/CnGal_new_classes.rb, line
|
|
143
|
+
<pre><span class="ruby-comment"># File lib/linmeric/CnGal_new_classes.rb, line 134</span>
|
|
143
144
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">size</span>
|
|
144
145
|
<span class="ruby-keyword">return</span> <span class="ruby-value">0</span>
|
|
145
146
|
<span class="ruby-keyword">end</span></pre>
|
|
@@ -174,7 +175,7 @@ href="mailto:max.codeware@gmail.com">max.codeware@gmail.com</a>)</p>
|
|
|
174
175
|
|
|
175
176
|
|
|
176
177
|
<div class="method-source-code" id="to_s-source">
|
|
177
|
-
<pre><span class="ruby-comment"># File lib/linmeric/CnGal_new_classes.rb, line
|
|
178
|
+
<pre><span class="ruby-comment"># File lib/linmeric/CnGal_new_classes.rb, line 129</span>
|
|
178
179
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">to_s</span>
|
|
179
180
|
<span class="ruby-keyword">return</span> <span class="ruby-string">"nil"</span>
|
|
180
181
|
<span class="ruby-keyword">end</span></pre>
|
|
@@ -196,7 +197,7 @@ href="mailto:max.codeware@gmail.com">max.codeware@gmail.com</a>)</p>
|
|
|
196
197
|
|
|
197
198
|
<footer id="validator-badges" role="contentinfo">
|
|
198
199
|
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
|
199
|
-
<p>Generated by <a href="
|
|
200
|
+
<p>Generated by <a href="https://rdoc.github.io/rdoc">RDoc</a> 5.0.0.
|
|
200
201
|
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
|
201
202
|
</footer>
|
|
202
203
|
|