sparse_matrix 1.5.0 → 1.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +0 -2
- data/README.md +5 -0
- data/documentacion/Gemfile.html +114 -0
- data/documentacion/Gemfile_lock.html +179 -0
- data/documentacion/Guardfile.html +144 -0
- data/documentacion/LICENSE_txt.html +131 -0
- data/documentacion/Object.html +224 -0
- data/documentacion/README_md.html +169 -0
- data/documentacion/Rakefile.html +119 -0
- data/documentacion/SparseMatrix/AbstractMatrix.html +418 -0
- data/documentacion/SparseMatrix/DenseMatrix.html +462 -0
- data/documentacion/SparseMatrix/Fraction.html +749 -0
- data/documentacion/SparseMatrix/SparseMatrix.html +553 -0
- data/documentacion/SparseMatrix/SparseVector.html +292 -0
- data/documentacion/SparseMatrix.html +226 -0
- data/documentacion/created.rid +13 -0
- data/documentacion/documentacion/created_rid.html +109 -0
- data/documentacion/images/add.png +0 -0
- data/documentacion/images/arrow_up.png +0 -0
- data/documentacion/images/brick.png +0 -0
- data/documentacion/images/brick_link.png +0 -0
- data/documentacion/images/bug.png +0 -0
- data/documentacion/images/bullet_black.png +0 -0
- data/documentacion/images/bullet_toggle_minus.png +0 -0
- data/documentacion/images/bullet_toggle_plus.png +0 -0
- data/documentacion/images/date.png +0 -0
- data/documentacion/images/delete.png +0 -0
- data/documentacion/images/find.png +0 -0
- data/documentacion/images/loadingAnimation.gif +0 -0
- data/documentacion/images/macFFBgHack.png +0 -0
- data/documentacion/images/package.png +0 -0
- data/documentacion/images/page_green.png +0 -0
- data/documentacion/images/page_white_text.png +0 -0
- data/documentacion/images/page_white_width.png +0 -0
- data/documentacion/images/plugin.png +0 -0
- data/documentacion/images/ruby.png +0 -0
- data/documentacion/images/tag_blue.png +0 -0
- data/documentacion/images/tag_green.png +0 -0
- data/documentacion/images/transparent.png +0 -0
- data/documentacion/images/wrench.png +0 -0
- data/documentacion/images/wrench_orange.png +0 -0
- data/documentacion/images/zoom.png +0 -0
- data/documentacion/index.html +106 -0
- data/documentacion/js/darkfish.js +155 -0
- data/documentacion/js/jquery.js +18 -0
- data/documentacion/js/navigation.js +142 -0
- data/documentacion/js/search.js +94 -0
- data/documentacion/js/search_index.js +1 -0
- data/documentacion/js/searcher.js +228 -0
- data/documentacion/rdoc.css +595 -0
- data/documentacion/sparse_matrix_gemspec.html +138 -0
- data/documentacion/table_of_contents.html +178 -0
- data/lib/sparse_matrix/version.rb +1 -1
- data/lib/sparse_matrix.rb +194 -162
- metadata +51 -1
@@ -0,0 +1,292 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
6
|
+
|
7
|
+
<title>class SparseMatrix::SparseVector - RDoc Documentation</title>
|
8
|
+
|
9
|
+
<link type="text/css" media="screen" href="../rdoc.css" rel="stylesheet">
|
10
|
+
|
11
|
+
<script type="text/javascript">
|
12
|
+
var rdoc_rel_prefix = "../";
|
13
|
+
</script>
|
14
|
+
|
15
|
+
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
|
16
|
+
<script type="text/javascript" charset="utf-8" src="../js/navigation.js"></script>
|
17
|
+
<script type="text/javascript" charset="utf-8" src="../js/search_index.js"></script>
|
18
|
+
<script type="text/javascript" charset="utf-8" src="../js/search.js"></script>
|
19
|
+
<script type="text/javascript" charset="utf-8" src="../js/searcher.js"></script>
|
20
|
+
<script type="text/javascript" charset="utf-8" src="../js/darkfish.js"></script>
|
21
|
+
|
22
|
+
|
23
|
+
<body id="top" class="class">
|
24
|
+
<nav id="metadata">
|
25
|
+
<nav id="home-section" class="section">
|
26
|
+
<h3 class="section-header">
|
27
|
+
<a href="../index.html">Home</a>
|
28
|
+
<a href="../table_of_contents.html#classes">Classes</a>
|
29
|
+
<a href="../table_of_contents.html#methods">Methods</a>
|
30
|
+
</h3>
|
31
|
+
</nav>
|
32
|
+
|
33
|
+
|
34
|
+
<nav id="search-section" class="section project-section" class="initially-hidden">
|
35
|
+
<form action="#" method="get" accept-charset="utf-8">
|
36
|
+
<h3 class="section-header">
|
37
|
+
<input type="text" name="search" placeholder="Search" id="search-field"
|
38
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
39
|
+
</h3>
|
40
|
+
</form>
|
41
|
+
|
42
|
+
<ul id="search-results" class="initially-hidden"></ul>
|
43
|
+
</nav>
|
44
|
+
|
45
|
+
|
46
|
+
|
47
|
+
|
48
|
+
<div id="file-metadata">
|
49
|
+
<nav id="file-list-section" class="section">
|
50
|
+
<h3 class="section-header">Defined In</h3>
|
51
|
+
<ul>
|
52
|
+
<li>lib/sparse_matrix.rb
|
53
|
+
</ul>
|
54
|
+
</nav>
|
55
|
+
|
56
|
+
|
57
|
+
</div>
|
58
|
+
|
59
|
+
<div id="class-metadata">
|
60
|
+
|
61
|
+
<nav id="parent-class-section" class="section">
|
62
|
+
<h3 class="section-header">Parent</h3>
|
63
|
+
|
64
|
+
<p class="link"><a href="../Object.html">Object</a>
|
65
|
+
|
66
|
+
</nav>
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
<!-- Method Quickref -->
|
71
|
+
<nav id="method-list-section" class="section">
|
72
|
+
<h3 class="section-header">Methods</h3>
|
73
|
+
|
74
|
+
<ul class="link-list">
|
75
|
+
|
76
|
+
<li ><a href="#method-c-new">::new</a>
|
77
|
+
|
78
|
+
<li ><a href="#method-i-to_s">#to_s</a>
|
79
|
+
|
80
|
+
</ul>
|
81
|
+
</nav>
|
82
|
+
|
83
|
+
</div>
|
84
|
+
|
85
|
+
<div id="project-metadata">
|
86
|
+
<nav id="fileindex-section" class="section project-section">
|
87
|
+
<h3 class="section-header">Pages</h3>
|
88
|
+
|
89
|
+
<ul>
|
90
|
+
|
91
|
+
<li class="file"><a href="../Gemfile.html">Gemfile</a>
|
92
|
+
|
93
|
+
<li class="file"><a href="../Gemfile_lock.html">Gemfile.lock</a>
|
94
|
+
|
95
|
+
<li class="file"><a href="../Guardfile.html">Guardfile</a>
|
96
|
+
|
97
|
+
<li class="file"><a href="../LICENSE_txt.html">LICENSE</a>
|
98
|
+
|
99
|
+
<li class="file"><a href="../README_md.html">README</a>
|
100
|
+
|
101
|
+
<li class="file"><a href="../Rakefile.html">Rakefile</a>
|
102
|
+
|
103
|
+
<li class="file"><a href="../documentacion/created_rid.html">created.rid</a>
|
104
|
+
|
105
|
+
<li class="file"><a href="../sparse_matrix_gemspec.html">sparse_matrix.gemspec</a>
|
106
|
+
|
107
|
+
</ul>
|
108
|
+
</nav>
|
109
|
+
|
110
|
+
<nav id="classindex-section" class="section project-section">
|
111
|
+
<h3 class="section-header">Class and Module Index</h3>
|
112
|
+
|
113
|
+
<ul class="link-list">
|
114
|
+
|
115
|
+
<li><a href="../Object.html">Object</a>
|
116
|
+
|
117
|
+
<li><a href="../SparseMatrix.html">SparseMatrix</a>
|
118
|
+
|
119
|
+
<li><a href="../SparseMatrix/AbstractMatrix.html">SparseMatrix::AbstractMatrix</a>
|
120
|
+
|
121
|
+
<li><a href="../SparseMatrix/DenseMatrix.html">SparseMatrix::DenseMatrix</a>
|
122
|
+
|
123
|
+
<li><a href="../SparseMatrix/Fraction.html">SparseMatrix::Fraction</a>
|
124
|
+
|
125
|
+
<li><a href="../SparseMatrix/SparseMatrix.html">SparseMatrix::SparseMatrix</a>
|
126
|
+
|
127
|
+
<li><a href="../SparseMatrix/SparseVector.html">SparseMatrix::SparseVector</a>
|
128
|
+
|
129
|
+
</ul>
|
130
|
+
</nav>
|
131
|
+
|
132
|
+
</div>
|
133
|
+
</nav>
|
134
|
+
|
135
|
+
<div id="documentation">
|
136
|
+
<h1 class="class">class SparseMatrix::SparseVector</h1>
|
137
|
+
|
138
|
+
<div id="description" class="description">
|
139
|
+
|
140
|
+
</div><!-- description -->
|
141
|
+
|
142
|
+
|
143
|
+
|
144
|
+
|
145
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
146
|
+
|
147
|
+
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
|
152
|
+
|
153
|
+
<!-- Attributes -->
|
154
|
+
<section id="attribute-method-details" class="method-section section">
|
155
|
+
<h3 class="section-header">Attributes</h3>
|
156
|
+
|
157
|
+
|
158
|
+
<div id="attribute-i-i" class="method-detail">
|
159
|
+
<div class="method-heading attribute-method-heading">
|
160
|
+
<span class="method-name">i</span><span
|
161
|
+
class="attribute-access-type">[RW]</span>
|
162
|
+
</div>
|
163
|
+
|
164
|
+
<div class="method-description">
|
165
|
+
|
166
|
+
|
167
|
+
|
168
|
+
</div>
|
169
|
+
</div>
|
170
|
+
|
171
|
+
<div id="attribute-i-j" class="method-detail">
|
172
|
+
<div class="method-heading attribute-method-heading">
|
173
|
+
<span class="method-name">j</span><span
|
174
|
+
class="attribute-access-type">[RW]</span>
|
175
|
+
</div>
|
176
|
+
|
177
|
+
<div class="method-description">
|
178
|
+
|
179
|
+
|
180
|
+
|
181
|
+
</div>
|
182
|
+
</div>
|
183
|
+
|
184
|
+
<div id="attribute-i-value" class="method-detail">
|
185
|
+
<div class="method-heading attribute-method-heading">
|
186
|
+
<span class="method-name">value</span><span
|
187
|
+
class="attribute-access-type">[RW]</span>
|
188
|
+
</div>
|
189
|
+
|
190
|
+
<div class="method-description">
|
191
|
+
|
192
|
+
|
193
|
+
|
194
|
+
</div>
|
195
|
+
</div>
|
196
|
+
|
197
|
+
</section><!-- attribute-method-details -->
|
198
|
+
|
199
|
+
|
200
|
+
<!-- Methods -->
|
201
|
+
|
202
|
+
<section id="public-class-5Buntitled-5D-method-details" class="method-section section">
|
203
|
+
<h3 class="section-header">Public Class Methods</h3>
|
204
|
+
|
205
|
+
|
206
|
+
<div id="method-c-new" class="method-detail ">
|
207
|
+
|
208
|
+
<div class="method-heading">
|
209
|
+
<span class="method-name">new</span><span
|
210
|
+
class="method-args">(i=0,j=0,v=0)</span>
|
211
|
+
|
212
|
+
<span class="method-click-advice">click to toggle source</span>
|
213
|
+
|
214
|
+
</div>
|
215
|
+
|
216
|
+
|
217
|
+
<div class="method-description">
|
218
|
+
|
219
|
+
|
220
|
+
|
221
|
+
|
222
|
+
|
223
|
+
|
224
|
+
<div class="method-source-code" id="new-source">
|
225
|
+
<pre><span class="ruby-comment"># File lib/sparse_matrix.rb, line 62</span>
|
226
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">i</span>=<span class="ruby-value">0</span>,<span class="ruby-identifier">j</span>=<span class="ruby-value">0</span>,<span class="ruby-identifier">v</span>=<span class="ruby-value">0</span>)
|
227
|
+
<span class="ruby-ivar">@i</span> = <span class="ruby-identifier">i</span>
|
228
|
+
<span class="ruby-ivar">@j</span> = <span class="ruby-identifier">j</span>
|
229
|
+
<span class="ruby-ivar">@value</span> = <span class="ruby-identifier">v</span>
|
230
|
+
<span class="ruby-keyword">end</span></pre>
|
231
|
+
</div><!-- new-source -->
|
232
|
+
|
233
|
+
</div>
|
234
|
+
|
235
|
+
|
236
|
+
|
237
|
+
|
238
|
+
</div><!-- new-method -->
|
239
|
+
|
240
|
+
|
241
|
+
</section><!-- public-class-method-details -->
|
242
|
+
|
243
|
+
<section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
|
244
|
+
<h3 class="section-header">Public Instance Methods</h3>
|
245
|
+
|
246
|
+
|
247
|
+
<div id="method-i-to_s" class="method-detail ">
|
248
|
+
|
249
|
+
<div class="method-heading">
|
250
|
+
<span class="method-name">to_s</span><span
|
251
|
+
class="method-args">()</span>
|
252
|
+
|
253
|
+
<span class="method-click-advice">click to toggle source</span>
|
254
|
+
|
255
|
+
</div>
|
256
|
+
|
257
|
+
|
258
|
+
<div class="method-description">
|
259
|
+
|
260
|
+
|
261
|
+
|
262
|
+
|
263
|
+
|
264
|
+
|
265
|
+
<div class="method-source-code" id="to_s-source">
|
266
|
+
<pre><span class="ruby-comment"># File lib/sparse_matrix.rb, line 69</span>
|
267
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">to_s</span>
|
268
|
+
<span class="ruby-node">"#{@i},#{@j},#{@value}"</span>
|
269
|
+
<span class="ruby-keyword">end</span></pre>
|
270
|
+
</div><!-- to_s-source -->
|
271
|
+
|
272
|
+
</div>
|
273
|
+
|
274
|
+
|
275
|
+
|
276
|
+
|
277
|
+
</div><!-- to_s-method -->
|
278
|
+
|
279
|
+
|
280
|
+
</section><!-- public-instance-method-details -->
|
281
|
+
|
282
|
+
</section><!-- 5Buntitled-5D -->
|
283
|
+
|
284
|
+
</div><!-- documentation -->
|
285
|
+
|
286
|
+
|
287
|
+
<footer id="validator-badges">
|
288
|
+
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
289
|
+
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 4.0.1.
|
290
|
+
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
291
|
+
</footer>
|
292
|
+
|
@@ -0,0 +1,226 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
6
|
+
|
7
|
+
<title>module SparseMatrix - RDoc Documentation</title>
|
8
|
+
|
9
|
+
<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">
|
10
|
+
|
11
|
+
<script type="text/javascript">
|
12
|
+
var rdoc_rel_prefix = "./";
|
13
|
+
</script>
|
14
|
+
|
15
|
+
<script type="text/javascript" charset="utf-8" src="./js/jquery.js"></script>
|
16
|
+
<script type="text/javascript" charset="utf-8" src="./js/navigation.js"></script>
|
17
|
+
<script type="text/javascript" charset="utf-8" src="./js/search_index.js"></script>
|
18
|
+
<script type="text/javascript" charset="utf-8" src="./js/search.js"></script>
|
19
|
+
<script type="text/javascript" charset="utf-8" src="./js/searcher.js"></script>
|
20
|
+
<script type="text/javascript" charset="utf-8" src="./js/darkfish.js"></script>
|
21
|
+
|
22
|
+
|
23
|
+
<body id="top" class="module">
|
24
|
+
<nav id="metadata">
|
25
|
+
<nav id="home-section" class="section">
|
26
|
+
<h3 class="section-header">
|
27
|
+
<a href="./index.html">Home</a>
|
28
|
+
<a href="./table_of_contents.html#classes">Classes</a>
|
29
|
+
<a href="./table_of_contents.html#methods">Methods</a>
|
30
|
+
</h3>
|
31
|
+
</nav>
|
32
|
+
|
33
|
+
|
34
|
+
<nav id="search-section" class="section project-section" class="initially-hidden">
|
35
|
+
<form action="#" method="get" accept-charset="utf-8">
|
36
|
+
<h3 class="section-header">
|
37
|
+
<input type="text" name="search" placeholder="Search" id="search-field"
|
38
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
39
|
+
</h3>
|
40
|
+
</form>
|
41
|
+
|
42
|
+
<ul id="search-results" class="initially-hidden"></ul>
|
43
|
+
</nav>
|
44
|
+
|
45
|
+
|
46
|
+
|
47
|
+
|
48
|
+
<div id="file-metadata">
|
49
|
+
<nav id="file-list-section" class="section">
|
50
|
+
<h3 class="section-header">Defined In</h3>
|
51
|
+
<ul>
|
52
|
+
<li>lib/sparse_matrix.rb
|
53
|
+
<li>lib/sparse_matrix/version.rb
|
54
|
+
</ul>
|
55
|
+
</nav>
|
56
|
+
|
57
|
+
|
58
|
+
</div>
|
59
|
+
|
60
|
+
<div id="class-metadata">
|
61
|
+
|
62
|
+
|
63
|
+
|
64
|
+
|
65
|
+
<!-- Method Quickref -->
|
66
|
+
<nav id="method-list-section" class="section">
|
67
|
+
<h3 class="section-header">Methods</h3>
|
68
|
+
|
69
|
+
<ul class="link-list">
|
70
|
+
|
71
|
+
<li ><a href="#method-i-gcd">#gcd</a>
|
72
|
+
|
73
|
+
</ul>
|
74
|
+
</nav>
|
75
|
+
|
76
|
+
</div>
|
77
|
+
|
78
|
+
<div id="project-metadata">
|
79
|
+
<nav id="fileindex-section" class="section project-section">
|
80
|
+
<h3 class="section-header">Pages</h3>
|
81
|
+
|
82
|
+
<ul>
|
83
|
+
|
84
|
+
<li class="file"><a href="./Gemfile.html">Gemfile</a>
|
85
|
+
|
86
|
+
<li class="file"><a href="./Gemfile_lock.html">Gemfile.lock</a>
|
87
|
+
|
88
|
+
<li class="file"><a href="./Guardfile.html">Guardfile</a>
|
89
|
+
|
90
|
+
<li class="file"><a href="./LICENSE_txt.html">LICENSE</a>
|
91
|
+
|
92
|
+
<li class="file"><a href="./README_md.html">README</a>
|
93
|
+
|
94
|
+
<li class="file"><a href="./Rakefile.html">Rakefile</a>
|
95
|
+
|
96
|
+
<li class="file"><a href="./documentacion/created_rid.html">created.rid</a>
|
97
|
+
|
98
|
+
<li class="file"><a href="./sparse_matrix_gemspec.html">sparse_matrix.gemspec</a>
|
99
|
+
|
100
|
+
</ul>
|
101
|
+
</nav>
|
102
|
+
|
103
|
+
<nav id="classindex-section" class="section project-section">
|
104
|
+
<h3 class="section-header">Class and Module Index</h3>
|
105
|
+
|
106
|
+
<ul class="link-list">
|
107
|
+
|
108
|
+
<li><a href="./Object.html">Object</a>
|
109
|
+
|
110
|
+
<li><a href="./SparseMatrix.html">SparseMatrix</a>
|
111
|
+
|
112
|
+
<li><a href="./SparseMatrix/AbstractMatrix.html">SparseMatrix::AbstractMatrix</a>
|
113
|
+
|
114
|
+
<li><a href="./SparseMatrix/DenseMatrix.html">SparseMatrix::DenseMatrix</a>
|
115
|
+
|
116
|
+
<li><a href="./SparseMatrix/Fraction.html">SparseMatrix::Fraction</a>
|
117
|
+
|
118
|
+
<li><a href="./SparseMatrix/SparseMatrix.html">SparseMatrix::SparseMatrix</a>
|
119
|
+
|
120
|
+
<li><a href="./SparseMatrix/SparseVector.html">SparseMatrix::SparseVector</a>
|
121
|
+
|
122
|
+
</ul>
|
123
|
+
</nav>
|
124
|
+
|
125
|
+
</div>
|
126
|
+
</nav>
|
127
|
+
|
128
|
+
<div id="documentation">
|
129
|
+
<h1 class="module">module SparseMatrix</h1>
|
130
|
+
|
131
|
+
<div id="description" class="description">
|
132
|
+
|
133
|
+
<h2 id="label-Modulo+que+contiene+la+gema+para+el+trabajo+con+matrices.">Modulo que contiene la gema para el trabajo con matrices.<span><a href="#label-Modulo+que+contiene+la+gema+para+el+trabajo+con+matrices.">¶</a> <a href="#documentation">↑</a></span></h2>
|
134
|
+
|
135
|
+
<pre class="ruby"><span class="ruby-constant">Para</span> <span class="ruby-identifier">la</span> <span class="ruby-identifier">realizacion</span> <span class="ruby-identifier">de</span> <span class="ruby-identifier">esta</span> <span class="ruby-identifier">practica</span> <span class="ruby-identifier">se</span> <span class="ruby-identifier">ha</span> <span class="ruby-identifier">creado</span> <span class="ruby-identifier">una</span> <span class="ruby-identifier">jeraquia</span> <span class="ruby-identifier">de</span> <span class="ruby-identifier">clases</span>. <span class="ruby-constant">Todo</span> <span class="ruby-identifier">esta</span> <span class="ruby-identifier">integrado</span> <span class="ruby-identifier">en</span> <span class="ruby-identifier">un</span> <span class="ruby-keyword">module</span> <span class="ruby-identifier">llamado</span> <span class="ruby-constant">SparseMatrix</span>,
|
136
|
+
<span class="ruby-identifier">el</span> <span class="ruby-identifier">cual</span> <span class="ruby-identifier">contiene</span> <span class="ruby-identifier">la</span> <span class="ruby-identifier">clase</span> <span class="ruby-identifier">madre</span> <span class="ruby-identifier">abstracta</span> <span class="ruby-constant">AbstractMatrix</span> <span class="ruby-identifier">con</span> <span class="ruby-identifier">la</span> <span class="ruby-identifier">que</span> <span class="ruby-identifier">creamos</span> <span class="ruby-identifier">las</span> <span class="ruby-identifier">clases</span> <span class="ruby-constant">SparseMatrix</span> <span class="ruby-identifier">y</span> <span class="ruby-constant">DenseMatrix</span>.
|
137
|
+
<span class="ruby-constant">Para</span> <span class="ruby-identifier">almacenar</span> <span class="ruby-identifier">los</span> <span class="ruby-identifier">datos</span> <span class="ruby-identifier">de</span> <span class="ruby-identifier">la</span> <span class="ruby-identifier">matriz</span> <span class="ruby-identifier">dispersa</span> <span class="ruby-identifier">usamos</span> <span class="ruby-identifier">un</span> <span class="ruby-identifier">vector</span> <span class="ruby-identifier">de</span> <span class="ruby-identifier">duplas</span> <span class="ruby-identifier">usando</span> <span class="ruby-identifier">la</span> <span class="ruby-identifier">clase</span> <span class="ruby-constant">SparseVector</span>.
|
138
|
+
<span class="ruby-constant">Los</span> <span class="ruby-identifier">metodos</span> <span class="ruby-identifier">implementados</span> <span class="ruby-identifier">usando</span> <span class="ruby-identifier">metodologia</span> <span class="ruby-identifier">funcional</span> <span class="ruby-identifier">son</span><span class="ruby-operator">:</span>
|
139
|
+
|
140
|
+
<span class="ruby-operator">*</span> <span class="ruby-identifier">suma</span>
|
141
|
+
<span class="ruby-operator">*</span> <span class="ruby-identifier">multiplicacion</span>
|
142
|
+
</pre>
|
143
|
+
|
144
|
+
</div><!-- description -->
|
145
|
+
|
146
|
+
|
147
|
+
|
148
|
+
|
149
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
150
|
+
|
151
|
+
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
<!-- Constants -->
|
156
|
+
<section id="constants-list" class="section">
|
157
|
+
<h3 class="section-header">Constants</h3>
|
158
|
+
<dl>
|
159
|
+
|
160
|
+
<dt id="VERSION">VERSION
|
161
|
+
|
162
|
+
<dd class="description">
|
163
|
+
|
164
|
+
|
165
|
+
</dl>
|
166
|
+
</section>
|
167
|
+
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
<!-- Methods -->
|
172
|
+
|
173
|
+
<section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
|
174
|
+
<h3 class="section-header">Public Instance Methods</h3>
|
175
|
+
|
176
|
+
|
177
|
+
<div id="method-i-gcd" class="method-detail ">
|
178
|
+
|
179
|
+
<div class="method-heading">
|
180
|
+
<span class="method-name">gcd</span><span
|
181
|
+
class="method-args">(u, v)</span>
|
182
|
+
|
183
|
+
<span class="method-click-advice">click to toggle source</span>
|
184
|
+
|
185
|
+
</div>
|
186
|
+
|
187
|
+
|
188
|
+
<div class="method-description">
|
189
|
+
|
190
|
+
|
191
|
+
|
192
|
+
|
193
|
+
|
194
|
+
|
195
|
+
<div class="method-source-code" id="gcd-source">
|
196
|
+
<pre><span class="ruby-comment"># File lib/sparse_matrix.rb, line 379</span>
|
197
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">gcd</span>(<span class="ruby-identifier">u</span>, <span class="ruby-identifier">v</span>) <span class="ruby-comment">#maximo comun divisor</span>
|
198
|
+
<span class="ruby-identifier">u</span>, <span class="ruby-identifier">v</span> = <span class="ruby-identifier">u</span>.<span class="ruby-identifier">abs</span>, <span class="ruby-identifier">v</span>.<span class="ruby-identifier">abs</span>
|
199
|
+
<span class="ruby-keyword">while</span> <span class="ruby-identifier">v</span> <span class="ruby-operator">!=</span> <span class="ruby-value">0</span>
|
200
|
+
<span class="ruby-identifier">u</span>, <span class="ruby-identifier">v</span> = <span class="ruby-identifier">v</span>, <span class="ruby-identifier">u</span> <span class="ruby-operator">%</span> <span class="ruby-identifier">v</span>
|
201
|
+
<span class="ruby-keyword">end</span>
|
202
|
+
<span class="ruby-identifier">u</span>
|
203
|
+
<span class="ruby-keyword">end</span></pre>
|
204
|
+
</div><!-- gcd-source -->
|
205
|
+
|
206
|
+
</div>
|
207
|
+
|
208
|
+
|
209
|
+
|
210
|
+
|
211
|
+
</div><!-- gcd-method -->
|
212
|
+
|
213
|
+
|
214
|
+
</section><!-- public-instance-method-details -->
|
215
|
+
|
216
|
+
</section><!-- 5Buntitled-5D -->
|
217
|
+
|
218
|
+
</div><!-- documentation -->
|
219
|
+
|
220
|
+
|
221
|
+
<footer id="validator-badges">
|
222
|
+
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
223
|
+
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 4.0.1.
|
224
|
+
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
225
|
+
</footer>
|
226
|
+
|
@@ -0,0 +1,13 @@
|
|
1
|
+
Mon, 25 Nov 2013 21:29:03 +0000
|
2
|
+
./LICENSE.txt Mon, 25 Nov 2013 19:16:17 +0000
|
3
|
+
./Gemfile Mon, 25 Nov 2013 19:16:17 +0000
|
4
|
+
./sparse_matrix.gemspec Mon, 25 Nov 2013 19:16:17 +0000
|
5
|
+
./README.md Mon, 25 Nov 2013 19:16:17 +0000
|
6
|
+
./Guardfile Mon, 25 Nov 2013 19:16:17 +0000
|
7
|
+
./documentacion/created.rid Mon, 25 Nov 2013 21:29:03 +0000
|
8
|
+
./spec/spec_helper.rb Mon, 25 Nov 2013 19:16:17 +0000
|
9
|
+
./spec/sparsematrix_spec.rb Mon, 25 Nov 2013 19:16:17 +0000
|
10
|
+
./Rakefile Mon, 25 Nov 2013 19:16:17 +0000
|
11
|
+
./lib/sparse_matrix.rb Mon, 25 Nov 2013 21:27:36 +0000
|
12
|
+
./lib/sparse_matrix/version.rb Mon, 25 Nov 2013 19:16:17 +0000
|
13
|
+
./Gemfile.lock Mon, 25 Nov 2013 19:49:47 +0000
|
@@ -0,0 +1,109 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
6
|
+
|
7
|
+
<title>created.rid - RDoc Documentation</title>
|
8
|
+
|
9
|
+
<link type="text/css" media="screen" href="../rdoc.css" rel="stylesheet">
|
10
|
+
|
11
|
+
<script type="text/javascript">
|
12
|
+
var rdoc_rel_prefix = "../";
|
13
|
+
</script>
|
14
|
+
|
15
|
+
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
|
16
|
+
<script type="text/javascript" charset="utf-8" src="../js/navigation.js"></script>
|
17
|
+
<script type="text/javascript" charset="utf-8" src="../js/search_index.js"></script>
|
18
|
+
<script type="text/javascript" charset="utf-8" src="../js/search.js"></script>
|
19
|
+
<script type="text/javascript" charset="utf-8" src="../js/searcher.js"></script>
|
20
|
+
<script type="text/javascript" charset="utf-8" src="../js/darkfish.js"></script>
|
21
|
+
|
22
|
+
|
23
|
+
<body class="file">
|
24
|
+
<nav id="metadata">
|
25
|
+
<nav id="home-section" class="section">
|
26
|
+
<h3 class="section-header">
|
27
|
+
<a href="../index.html">Home</a>
|
28
|
+
<a href="../table_of_contents.html#classes">Classes</a>
|
29
|
+
<a href="../table_of_contents.html#methods">Methods</a>
|
30
|
+
</h3>
|
31
|
+
</nav>
|
32
|
+
|
33
|
+
|
34
|
+
<nav id="search-section" class="section project-section" class="initially-hidden">
|
35
|
+
<form action="#" method="get" accept-charset="utf-8">
|
36
|
+
<h3 class="section-header">
|
37
|
+
<input type="text" name="search" placeholder="Search" id="search-field"
|
38
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
39
|
+
</h3>
|
40
|
+
</form>
|
41
|
+
|
42
|
+
<ul id="search-results" class="initially-hidden"></ul>
|
43
|
+
</nav>
|
44
|
+
|
45
|
+
|
46
|
+
|
47
|
+
|
48
|
+
<div id="project-metadata">
|
49
|
+
<nav id="fileindex-section" class="section project-section">
|
50
|
+
<h3 class="section-header">Pages</h3>
|
51
|
+
|
52
|
+
<ul>
|
53
|
+
|
54
|
+
<li class="file"><a href="../Gemfile.html">Gemfile</a>
|
55
|
+
|
56
|
+
<li class="file"><a href="../Gemfile_lock.html">Gemfile.lock</a>
|
57
|
+
|
58
|
+
<li class="file"><a href="../Guardfile.html">Guardfile</a>
|
59
|
+
|
60
|
+
<li class="file"><a href="../LICENSE_txt.html">LICENSE</a>
|
61
|
+
|
62
|
+
<li class="file"><a href="../README_md.html">README</a>
|
63
|
+
|
64
|
+
<li class="file"><a href="../Rakefile.html">Rakefile</a>
|
65
|
+
|
66
|
+
<li class="file"><a href="../documentacion/created_rid.html">created.rid</a>
|
67
|
+
|
68
|
+
<li class="file"><a href="../sparse_matrix_gemspec.html">sparse_matrix.gemspec</a>
|
69
|
+
|
70
|
+
</ul>
|
71
|
+
</nav>
|
72
|
+
|
73
|
+
<nav id="classindex-section" class="section project-section">
|
74
|
+
<h3 class="section-header">Class and Module Index</h3>
|
75
|
+
|
76
|
+
<ul class="link-list">
|
77
|
+
|
78
|
+
<li><a href="../Object.html">Object</a>
|
79
|
+
|
80
|
+
<li><a href="../SparseMatrix.html">SparseMatrix</a>
|
81
|
+
|
82
|
+
<li><a href="../SparseMatrix/AbstractMatrix.html">SparseMatrix::AbstractMatrix</a>
|
83
|
+
|
84
|
+
<li><a href="../SparseMatrix/DenseMatrix.html">SparseMatrix::DenseMatrix</a>
|
85
|
+
|
86
|
+
<li><a href="../SparseMatrix/Fraction.html">SparseMatrix::Fraction</a>
|
87
|
+
|
88
|
+
<li><a href="../SparseMatrix/SparseMatrix.html">SparseMatrix::SparseMatrix</a>
|
89
|
+
|
90
|
+
<li><a href="../SparseMatrix/SparseVector.html">SparseMatrix::SparseVector</a>
|
91
|
+
|
92
|
+
</ul>
|
93
|
+
</nav>
|
94
|
+
|
95
|
+
</div>
|
96
|
+
</nav>
|
97
|
+
|
98
|
+
<div id="documentation" class="description">
|
99
|
+
|
100
|
+
</div>
|
101
|
+
|
102
|
+
|
103
|
+
|
104
|
+
<footer id="validator-badges">
|
105
|
+
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
106
|
+
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 4.0.1.
|
107
|
+
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
108
|
+
</footer>
|
109
|
+
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|