prct09 1.0.0 → 1.1.0

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.
Files changed (115) hide show
  1. checksums.yaml +7 -0
  2. data/Rakefile +7 -2
  3. data/config/gemnasium.yml +10 -0
  4. data/doc/Fraccion.html +856 -0
  5. data/doc/Gemfile.html +280 -0
  6. data/doc/Guarfile.html +310 -0
  7. data/doc/LICENSE_txt.html +297 -0
  8. data/doc/Matriz.html +721 -0
  9. data/doc/Matriz_densa.html +605 -0
  10. data/doc/Matriz_dispersa.html +829 -0
  11. data/doc/Prct09.html +328 -0
  12. data/doc/Rakefile.html +318 -0
  13. data/doc/Test_Matriz.html +509 -0
  14. data/doc/bin/prct09.html +54 -0
  15. data/doc/classes/Fraccion.html +0 -0
  16. data/doc/classes/Fraccion.src/M000024.html +0 -0
  17. data/doc/classes/Fraccion.src/M000025.html +0 -0
  18. data/doc/classes/Fraccion.src/M000026.html +0 -0
  19. data/doc/classes/Fraccion.src/M000027.html +0 -0
  20. data/doc/classes/Fraccion.src/M000028.html +0 -0
  21. data/doc/classes/Fraccion.src/M000029.html +0 -0
  22. data/doc/classes/Fraccion.src/M000030.html +0 -0
  23. data/doc/classes/Fraccion.src/M000031.html +0 -0
  24. data/doc/classes/Fraccion.src/M000032.html +0 -0
  25. data/doc/classes/Fraccion.src/M000033.html +0 -0
  26. data/doc/classes/Fraccion.src/M000034.html +0 -0
  27. data/doc/classes/Fraccion.src/M000035.html +0 -0
  28. data/doc/classes/Fraccion.src/M000036.html +0 -0
  29. data/doc/classes/Matriz.html +0 -0
  30. data/doc/classes/Matriz.src/M000015.html +0 -0
  31. data/doc/classes/Matriz.src/M000016.html +0 -0
  32. data/doc/classes/Matriz.src/M000017.html +0 -0
  33. data/doc/classes/Matriz.src/M000018.html +0 -0
  34. data/doc/classes/Matriz.src/M000019.html +0 -0
  35. data/doc/classes/Matriz.src/M000020.html +0 -0
  36. data/doc/classes/Matriz.src/M000021.html +0 -0
  37. data/doc/classes/Matriz.src/M000022.html +0 -0
  38. data/doc/classes/Matriz.src/M000023.html +0 -0
  39. data/doc/classes/Matriz_densa.html +0 -0
  40. data/doc/classes/Matriz_densa.src/M000010.html +0 -0
  41. data/doc/classes/Matriz_densa.src/M000011.html +0 -0
  42. data/doc/classes/Matriz_densa.src/M000012.html +0 -0
  43. data/doc/classes/Matriz_densa.src/M000013.html +0 -0
  44. data/doc/classes/Matriz_densa.src/M000014.html +0 -0
  45. data/doc/classes/Matriz_dispersa.html +0 -0
  46. data/doc/classes/Matriz_dispersa.src/M000002.html +0 -0
  47. data/doc/classes/Matriz_dispersa.src/M000003.html +0 -0
  48. data/doc/classes/Matriz_dispersa.src/M000004.html +0 -0
  49. data/doc/classes/Matriz_dispersa.src/M000005.html +0 -0
  50. data/doc/classes/Matriz_dispersa.src/M000006.html +0 -0
  51. data/doc/classes/Matriz_dispersa.src/M000007.html +0 -0
  52. data/doc/classes/Matriz_dispersa.src/M000008.html +0 -0
  53. data/doc/classes/Matriz_dispersa.src/M000009.html +0 -0
  54. data/doc/classes/Prct09.html +0 -0
  55. data/doc/classes/Test_Matriz.html +0 -0
  56. data/doc/classes/Test_Matriz.src/M000037.html +0 -0
  57. data/doc/classes/Test_Matriz.src/M000038.html +0 -0
  58. data/doc/classes/Test_Matriz.src/M000039.html +0 -0
  59. data/doc/classes/Test_Matriz.src/M000040.html +0 -0
  60. data/doc/created.rid +125 -14
  61. data/doc/files/lib/Fraccion_rb.html +0 -0
  62. data/doc/files/lib/Matriz_densa_rb.html +0 -0
  63. data/doc/files/lib/Matriz_dispersa_rb.html +0 -0
  64. data/doc/files/lib/Matriz_rb.html +0 -0
  65. data/doc/files/lib/mcd_rb.html +0 -0
  66. data/doc/files/lib/mcd_rb.src/M000001.html +0 -0
  67. data/doc/files/lib/prct09/version_rb.html +0 -0
  68. data/doc/files/lib/prct09_rb.html +0 -0
  69. data/doc/files/spec/Matriz_spec_rb.html +0 -0
  70. data/doc/files/test/tc_matriz_rb.html +0 -0
  71. data/doc/fr_class_index.html +0 -0
  72. data/doc/fr_file_index.html +0 -0
  73. data/doc/fr_method_index.html +0 -0
  74. data/doc/images/brick.png +0 -0
  75. data/doc/images/brick_link.png +0 -0
  76. data/doc/images/bug.png +0 -0
  77. data/doc/images/bullet_black.png +0 -0
  78. data/doc/images/bullet_toggle_minus.png +0 -0
  79. data/doc/images/bullet_toggle_plus.png +0 -0
  80. data/doc/images/date.png +0 -0
  81. data/doc/images/find.png +0 -0
  82. data/doc/images/loadingAnimation.gif +0 -0
  83. data/doc/images/macFFBgHack.png +0 -0
  84. data/doc/images/package.png +0 -0
  85. data/doc/images/page_green.png +0 -0
  86. data/doc/images/page_white_text.png +0 -0
  87. data/doc/images/page_white_width.png +0 -0
  88. data/doc/images/plugin.png +0 -0
  89. data/doc/images/ruby.png +0 -0
  90. data/doc/images/tag_green.png +0 -0
  91. data/doc/images/wrench.png +0 -0
  92. data/doc/images/wrench_orange.png +0 -0
  93. data/doc/images/zoom.png +0 -0
  94. data/doc/index.html +254 -132
  95. data/doc/js/darkfish.js +155 -0
  96. data/doc/js/jquery.js +18 -0
  97. data/doc/js/quicksearch.js +114 -0
  98. data/doc/js/thickbox-compressed.js +10 -0
  99. data/doc/lib/Fraccion_rb.html +52 -0
  100. data/doc/lib/Matriz_densa_rb.html +56 -0
  101. data/doc/lib/Matriz_dispersa_rb.html +56 -0
  102. data/doc/lib/Matriz_rb.html +54 -0
  103. data/doc/lib/prct09/version_rb.html +52 -0
  104. data/doc/lib/prct09_rb.html +54 -0
  105. data/doc/rdoc-style.css +0 -0
  106. data/doc/rdoc.css +595 -0
  107. data/doc/spec/Matriz_spec_rb.html +62 -0
  108. data/doc/test/tc_matriz_rb.html +62 -0
  109. data/lib/Dsl.rb +82 -0
  110. data/lib/prct09/version.rb +1 -1
  111. data/prct09-1.0.0.gem +0 -0
  112. data/prct09.gemspec +1 -1
  113. data/spec/Dsl_spec.rb +92 -0
  114. metadata +66 -29
  115. data/prct09-0.0.1.gem +0 -0
@@ -0,0 +1,297 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
6
+
7
+ <title>LICENSE - 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="./Guarfile.html">Guarfile</a>
57
+
58
+ <li class="file"><a href="./LICENSE_txt.html">LICENSE</a>
59
+
60
+ <li class="file"><a href="./README_md.html">README</a>
61
+
62
+ <li class="file"><a href="./Rakefile.html">Rakefile</a>
63
+
64
+ <li class="file"><a href="./doc/Fraccion_html.html">Fraccion.html</a>
65
+
66
+ <li class="file"><a href="./doc/Gemfile_html.html">Gemfile.html</a>
67
+
68
+ <li class="file"><a href="./doc/Guarfile_html.html">Guarfile.html</a>
69
+
70
+ <li class="file"><a href="./doc/LICENSE_txt_html.html">LICENSE_txt.html</a>
71
+
72
+ <li class="file"><a href="./doc/Matriz_html.html">Matriz.html</a>
73
+
74
+ <li class="file"><a href="./doc/Matriz_densa_html.html">Matriz_densa.html</a>
75
+
76
+ <li class="file"><a href="./doc/Matriz_dispersa_html.html">Matriz_dispersa.html</a>
77
+
78
+ <li class="file"><a href="./doc/Prct09_html.html">Prct09.html</a>
79
+
80
+ <li class="file"><a href="./doc/Rakefile_html.html">Rakefile.html</a>
81
+
82
+ <li class="file"><a href="./doc/Test_Matriz_html.html">Test_Matriz.html</a>
83
+
84
+ <li class="file"><a href="./doc/bin/prct09_html.html">prct09.html</a>
85
+
86
+ <li class="file"><a href="./doc/classes/Fraccion_html.html">Fraccion.html</a>
87
+
88
+ <li class="file"><a href="./doc/classes/Fraccion_src/M000024_html.html">M000024.html</a>
89
+
90
+ <li class="file"><a href="./doc/classes/Fraccion_src/M000025_html.html">M000025.html</a>
91
+
92
+ <li class="file"><a href="./doc/classes/Fraccion_src/M000026_html.html">M000026.html</a>
93
+
94
+ <li class="file"><a href="./doc/classes/Fraccion_src/M000027_html.html">M000027.html</a>
95
+
96
+ <li class="file"><a href="./doc/classes/Fraccion_src/M000028_html.html">M000028.html</a>
97
+
98
+ <li class="file"><a href="./doc/classes/Fraccion_src/M000029_html.html">M000029.html</a>
99
+
100
+ <li class="file"><a href="./doc/classes/Fraccion_src/M000030_html.html">M000030.html</a>
101
+
102
+ <li class="file"><a href="./doc/classes/Fraccion_src/M000031_html.html">M000031.html</a>
103
+
104
+ <li class="file"><a href="./doc/classes/Fraccion_src/M000032_html.html">M000032.html</a>
105
+
106
+ <li class="file"><a href="./doc/classes/Fraccion_src/M000033_html.html">M000033.html</a>
107
+
108
+ <li class="file"><a href="./doc/classes/Fraccion_src/M000034_html.html">M000034.html</a>
109
+
110
+ <li class="file"><a href="./doc/classes/Fraccion_src/M000035_html.html">M000035.html</a>
111
+
112
+ <li class="file"><a href="./doc/classes/Fraccion_src/M000036_html.html">M000036.html</a>
113
+
114
+ <li class="file"><a href="./doc/classes/Matriz_html.html">Matriz.html</a>
115
+
116
+ <li class="file"><a href="./doc/classes/Matriz_src/M000015_html.html">M000015.html</a>
117
+
118
+ <li class="file"><a href="./doc/classes/Matriz_src/M000016_html.html">M000016.html</a>
119
+
120
+ <li class="file"><a href="./doc/classes/Matriz_src/M000017_html.html">M000017.html</a>
121
+
122
+ <li class="file"><a href="./doc/classes/Matriz_src/M000018_html.html">M000018.html</a>
123
+
124
+ <li class="file"><a href="./doc/classes/Matriz_src/M000019_html.html">M000019.html</a>
125
+
126
+ <li class="file"><a href="./doc/classes/Matriz_src/M000020_html.html">M000020.html</a>
127
+
128
+ <li class="file"><a href="./doc/classes/Matriz_src/M000021_html.html">M000021.html</a>
129
+
130
+ <li class="file"><a href="./doc/classes/Matriz_src/M000022_html.html">M000022.html</a>
131
+
132
+ <li class="file"><a href="./doc/classes/Matriz_src/M000023_html.html">M000023.html</a>
133
+
134
+ <li class="file"><a href="./doc/classes/Matriz_densa_html.html">Matriz_densa.html</a>
135
+
136
+ <li class="file"><a href="./doc/classes/Matriz_densa_src/M000010_html.html">M000010.html</a>
137
+
138
+ <li class="file"><a href="./doc/classes/Matriz_densa_src/M000011_html.html">M000011.html</a>
139
+
140
+ <li class="file"><a href="./doc/classes/Matriz_densa_src/M000012_html.html">M000012.html</a>
141
+
142
+ <li class="file"><a href="./doc/classes/Matriz_densa_src/M000013_html.html">M000013.html</a>
143
+
144
+ <li class="file"><a href="./doc/classes/Matriz_densa_src/M000014_html.html">M000014.html</a>
145
+
146
+ <li class="file"><a href="./doc/classes/Matriz_dispersa_html.html">Matriz_dispersa.html</a>
147
+
148
+ <li class="file"><a href="./doc/classes/Matriz_dispersa_src/M000002_html.html">M000002.html</a>
149
+
150
+ <li class="file"><a href="./doc/classes/Matriz_dispersa_src/M000003_html.html">M000003.html</a>
151
+
152
+ <li class="file"><a href="./doc/classes/Matriz_dispersa_src/M000004_html.html">M000004.html</a>
153
+
154
+ <li class="file"><a href="./doc/classes/Matriz_dispersa_src/M000005_html.html">M000005.html</a>
155
+
156
+ <li class="file"><a href="./doc/classes/Matriz_dispersa_src/M000006_html.html">M000006.html</a>
157
+
158
+ <li class="file"><a href="./doc/classes/Matriz_dispersa_src/M000007_html.html">M000007.html</a>
159
+
160
+ <li class="file"><a href="./doc/classes/Matriz_dispersa_src/M000008_html.html">M000008.html</a>
161
+
162
+ <li class="file"><a href="./doc/classes/Matriz_dispersa_src/M000009_html.html">M000009.html</a>
163
+
164
+ <li class="file"><a href="./doc/classes/Prct09_html.html">Prct09.html</a>
165
+
166
+ <li class="file"><a href="./doc/classes/Test_Matriz_html.html">Test_Matriz.html</a>
167
+
168
+ <li class="file"><a href="./doc/classes/Test_Matriz_src/M000037_html.html">M000037.html</a>
169
+
170
+ <li class="file"><a href="./doc/classes/Test_Matriz_src/M000038_html.html">M000038.html</a>
171
+
172
+ <li class="file"><a href="./doc/classes/Test_Matriz_src/M000039_html.html">M000039.html</a>
173
+
174
+ <li class="file"><a href="./doc/classes/Test_Matriz_src/M000040_html.html">M000040.html</a>
175
+
176
+ <li class="file"><a href="./doc/created_rid.html">created.rid</a>
177
+
178
+ <li class="file"><a href="./doc/files/lib/Fraccion_rb_html.html">Fraccion_rb.html</a>
179
+
180
+ <li class="file"><a href="./doc/files/lib/Matriz_densa_rb_html.html">Matriz_densa_rb.html</a>
181
+
182
+ <li class="file"><a href="./doc/files/lib/Matriz_dispersa_rb_html.html">Matriz_dispersa_rb.html</a>
183
+
184
+ <li class="file"><a href="./doc/files/lib/Matriz_rb_html.html">Matriz_rb.html</a>
185
+
186
+ <li class="file"><a href="./doc/files/lib/mcd_rb_html.html">mcd_rb.html</a>
187
+
188
+ <li class="file"><a href="./doc/files/lib/mcd_rb_src/M000001_html.html">M000001.html</a>
189
+
190
+ <li class="file"><a href="./doc/files/lib/prct09/version_rb_html.html">version_rb.html</a>
191
+
192
+ <li class="file"><a href="./doc/files/lib/prct09_rb_html.html">prct09_rb.html</a>
193
+
194
+ <li class="file"><a href="./doc/files/spec/Matriz_spec_rb_html.html">Matriz_spec_rb.html</a>
195
+
196
+ <li class="file"><a href="./doc/files/test/tc_matriz_rb_html.html">tc_matriz_rb.html</a>
197
+
198
+ <li class="file"><a href="./doc/fr_class_index_html.html">fr_class_index.html</a>
199
+
200
+ <li class="file"><a href="./doc/fr_file_index_html.html">fr_file_index.html</a>
201
+
202
+ <li class="file"><a href="./doc/fr_method_index_html.html">fr_method_index.html</a>
203
+
204
+ <li class="file"><a href="./doc/index_html.html">index.html</a>
205
+
206
+ <li class="file"><a href="./doc/js/darkfish_js.html">darkfish.js</a>
207
+
208
+ <li class="file"><a href="./doc/js/jquery_js.html">jquery.js</a>
209
+
210
+ <li class="file"><a href="./doc/js/quicksearch_js.html">quicksearch.js</a>
211
+
212
+ <li class="file"><a href="./doc/js/thickbox-compressed_js.html">thickbox-compressed.js</a>
213
+
214
+ <li class="file"><a href="./doc/lib/Fraccion_rb_html.html">Fraccion_rb.html</a>
215
+
216
+ <li class="file"><a href="./doc/lib/Matriz_densa_rb_html.html">Matriz_densa_rb.html</a>
217
+
218
+ <li class="file"><a href="./doc/lib/Matriz_dispersa_rb_html.html">Matriz_dispersa_rb.html</a>
219
+
220
+ <li class="file"><a href="./doc/lib/Matriz_rb_html.html">Matriz_rb.html</a>
221
+
222
+ <li class="file"><a href="./doc/lib/prct09/version_rb_html.html">version_rb.html</a>
223
+
224
+ <li class="file"><a href="./doc/lib/prct09_rb_html.html">prct09_rb.html</a>
225
+
226
+ <li class="file"><a href="./doc/rdoc-style_css.html">rdoc-style.css</a>
227
+
228
+ <li class="file"><a href="./doc/rdoc_css.html">rdoc.css</a>
229
+
230
+ <li class="file"><a href="./doc/spec/Matriz_spec_rb_html.html">Matriz_spec_rb.html</a>
231
+
232
+ <li class="file"><a href="./doc/test/tc_matriz_rb_html.html">tc_matriz_rb.html</a>
233
+
234
+ <li class="file"><a href="./prct09_gemspec.html">prct09.gemspec</a>
235
+
236
+ </ul>
237
+ </nav>
238
+
239
+ <nav id="classindex-section" class="section project-section">
240
+ <h3 class="section-header">Class and Module Index</h3>
241
+
242
+ <ul class="link-list">
243
+
244
+ <li><a href="./Dsl.html">Dsl</a>
245
+
246
+ <li><a href="./Fraccion.html">Fraccion</a>
247
+
248
+ <li><a href="./Matriz.html">Matriz</a>
249
+
250
+ <li><a href="./Matriz_densa.html">Matriz_densa</a>
251
+
252
+ <li><a href="./Matriz_dispersa.html">Matriz_dispersa</a>
253
+
254
+ <li><a href="./Prct09.html">Prct09</a>
255
+
256
+ <li><a href="./Test_Matriz.html">Test_Matriz</a>
257
+
258
+ </ul>
259
+ </nav>
260
+
261
+ </div>
262
+ </nav>
263
+
264
+ <div id="documentation" class="description">
265
+
266
+ <p>Copyright © 2013 Mauricio Cavalleri, katerine Cardona</p>
267
+
268
+ <p>MIT License</p>
269
+
270
+ <p>Permission is hereby granted, free of charge, to any person obtaining a
271
+ copy of this software and associated documentation files (the “Software”),
272
+ to deal in the Software without restriction, including without limitation
273
+ the rights to use, copy, modify, merge, publish, distribute, sublicense,
274
+ and/or sell copies of the Software, and to permit persons to whom the
275
+ Software is furnished to do so, subject to the following conditions:</p>
276
+
277
+ <p>The above copyright notice and this permission notice shall be included in
278
+ all copies or substantial portions of the Software.</p>
279
+
280
+ <p>THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
281
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
282
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
283
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
284
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
285
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
286
+ DEALINGS IN THE SOFTWARE.</p>
287
+
288
+ </div>
289
+
290
+
291
+
292
+ <footer id="validator-badges">
293
+ <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
294
+ <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 4.0.0.
295
+ <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
296
+ </footer>
297
+
data/doc/Matriz.html ADDED
@@ -0,0 +1,721 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
6
+
7
+ <title>class Matriz - 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/Matriz.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">Object
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-2A">#*</a>
79
+
80
+ <li ><a href="#method-i-2B">#+</a>
81
+
82
+ <li ><a href="#method-i-2D">#-</a>
83
+
84
+ <li ><a href="#method-i-comprobar">#comprobar</a>
85
+
86
+ <li ><a href="#method-i-max">#max</a>
87
+
88
+ <li ><a href="#method-i-min">#min</a>
89
+
90
+ <li ><a href="#method-i-to_s">#to_s</a>
91
+
92
+ <li ><a href="#method-i-traspuesta">#traspuesta</a>
93
+
94
+ </ul>
95
+ </nav>
96
+
97
+ </div>
98
+
99
+ <div id="project-metadata">
100
+ <nav id="fileindex-section" class="section project-section">
101
+ <h3 class="section-header">Pages</h3>
102
+
103
+ <ul>
104
+
105
+ <li class="file"><a href="./Gemfile.html">Gemfile</a>
106
+
107
+ <li class="file"><a href="./Guarfile.html">Guarfile</a>
108
+
109
+ <li class="file"><a href="./LICENSE_txt.html">LICENSE</a>
110
+
111
+ <li class="file"><a href="./README_md.html">README</a>
112
+
113
+ <li class="file"><a href="./Rakefile.html">Rakefile</a>
114
+
115
+ <li class="file"><a href="./doc/Fraccion_html.html">Fraccion.html</a>
116
+
117
+ <li class="file"><a href="./doc/Gemfile_html.html">Gemfile.html</a>
118
+
119
+ <li class="file"><a href="./doc/Guarfile_html.html">Guarfile.html</a>
120
+
121
+ <li class="file"><a href="./doc/LICENSE_txt_html.html">LICENSE_txt.html</a>
122
+
123
+ <li class="file"><a href="./doc/Matriz_html.html">Matriz.html</a>
124
+
125
+ <li class="file"><a href="./doc/Matriz_densa_html.html">Matriz_densa.html</a>
126
+
127
+ <li class="file"><a href="./doc/Matriz_dispersa_html.html">Matriz_dispersa.html</a>
128
+
129
+ <li class="file"><a href="./doc/Prct09_html.html">Prct09.html</a>
130
+
131
+ <li class="file"><a href="./doc/Rakefile_html.html">Rakefile.html</a>
132
+
133
+ <li class="file"><a href="./doc/Test_Matriz_html.html">Test_Matriz.html</a>
134
+
135
+ <li class="file"><a href="./doc/bin/prct09_html.html">prct09.html</a>
136
+
137
+ <li class="file"><a href="./doc/classes/Fraccion_html.html">Fraccion.html</a>
138
+
139
+ <li class="file"><a href="./doc/classes/Fraccion_src/M000024_html.html">M000024.html</a>
140
+
141
+ <li class="file"><a href="./doc/classes/Fraccion_src/M000025_html.html">M000025.html</a>
142
+
143
+ <li class="file"><a href="./doc/classes/Fraccion_src/M000026_html.html">M000026.html</a>
144
+
145
+ <li class="file"><a href="./doc/classes/Fraccion_src/M000027_html.html">M000027.html</a>
146
+
147
+ <li class="file"><a href="./doc/classes/Fraccion_src/M000028_html.html">M000028.html</a>
148
+
149
+ <li class="file"><a href="./doc/classes/Fraccion_src/M000029_html.html">M000029.html</a>
150
+
151
+ <li class="file"><a href="./doc/classes/Fraccion_src/M000030_html.html">M000030.html</a>
152
+
153
+ <li class="file"><a href="./doc/classes/Fraccion_src/M000031_html.html">M000031.html</a>
154
+
155
+ <li class="file"><a href="./doc/classes/Fraccion_src/M000032_html.html">M000032.html</a>
156
+
157
+ <li class="file"><a href="./doc/classes/Fraccion_src/M000033_html.html">M000033.html</a>
158
+
159
+ <li class="file"><a href="./doc/classes/Fraccion_src/M000034_html.html">M000034.html</a>
160
+
161
+ <li class="file"><a href="./doc/classes/Fraccion_src/M000035_html.html">M000035.html</a>
162
+
163
+ <li class="file"><a href="./doc/classes/Fraccion_src/M000036_html.html">M000036.html</a>
164
+
165
+ <li class="file"><a href="./doc/classes/Matriz_html.html">Matriz.html</a>
166
+
167
+ <li class="file"><a href="./doc/classes/Matriz_src/M000015_html.html">M000015.html</a>
168
+
169
+ <li class="file"><a href="./doc/classes/Matriz_src/M000016_html.html">M000016.html</a>
170
+
171
+ <li class="file"><a href="./doc/classes/Matriz_src/M000017_html.html">M000017.html</a>
172
+
173
+ <li class="file"><a href="./doc/classes/Matriz_src/M000018_html.html">M000018.html</a>
174
+
175
+ <li class="file"><a href="./doc/classes/Matriz_src/M000019_html.html">M000019.html</a>
176
+
177
+ <li class="file"><a href="./doc/classes/Matriz_src/M000020_html.html">M000020.html</a>
178
+
179
+ <li class="file"><a href="./doc/classes/Matriz_src/M000021_html.html">M000021.html</a>
180
+
181
+ <li class="file"><a href="./doc/classes/Matriz_src/M000022_html.html">M000022.html</a>
182
+
183
+ <li class="file"><a href="./doc/classes/Matriz_src/M000023_html.html">M000023.html</a>
184
+
185
+ <li class="file"><a href="./doc/classes/Matriz_densa_html.html">Matriz_densa.html</a>
186
+
187
+ <li class="file"><a href="./doc/classes/Matriz_densa_src/M000010_html.html">M000010.html</a>
188
+
189
+ <li class="file"><a href="./doc/classes/Matriz_densa_src/M000011_html.html">M000011.html</a>
190
+
191
+ <li class="file"><a href="./doc/classes/Matriz_densa_src/M000012_html.html">M000012.html</a>
192
+
193
+ <li class="file"><a href="./doc/classes/Matriz_densa_src/M000013_html.html">M000013.html</a>
194
+
195
+ <li class="file"><a href="./doc/classes/Matriz_densa_src/M000014_html.html">M000014.html</a>
196
+
197
+ <li class="file"><a href="./doc/classes/Matriz_dispersa_html.html">Matriz_dispersa.html</a>
198
+
199
+ <li class="file"><a href="./doc/classes/Matriz_dispersa_src/M000002_html.html">M000002.html</a>
200
+
201
+ <li class="file"><a href="./doc/classes/Matriz_dispersa_src/M000003_html.html">M000003.html</a>
202
+
203
+ <li class="file"><a href="./doc/classes/Matriz_dispersa_src/M000004_html.html">M000004.html</a>
204
+
205
+ <li class="file"><a href="./doc/classes/Matriz_dispersa_src/M000005_html.html">M000005.html</a>
206
+
207
+ <li class="file"><a href="./doc/classes/Matriz_dispersa_src/M000006_html.html">M000006.html</a>
208
+
209
+ <li class="file"><a href="./doc/classes/Matriz_dispersa_src/M000007_html.html">M000007.html</a>
210
+
211
+ <li class="file"><a href="./doc/classes/Matriz_dispersa_src/M000008_html.html">M000008.html</a>
212
+
213
+ <li class="file"><a href="./doc/classes/Matriz_dispersa_src/M000009_html.html">M000009.html</a>
214
+
215
+ <li class="file"><a href="./doc/classes/Prct09_html.html">Prct09.html</a>
216
+
217
+ <li class="file"><a href="./doc/classes/Test_Matriz_html.html">Test_Matriz.html</a>
218
+
219
+ <li class="file"><a href="./doc/classes/Test_Matriz_src/M000037_html.html">M000037.html</a>
220
+
221
+ <li class="file"><a href="./doc/classes/Test_Matriz_src/M000038_html.html">M000038.html</a>
222
+
223
+ <li class="file"><a href="./doc/classes/Test_Matriz_src/M000039_html.html">M000039.html</a>
224
+
225
+ <li class="file"><a href="./doc/classes/Test_Matriz_src/M000040_html.html">M000040.html</a>
226
+
227
+ <li class="file"><a href="./doc/created_rid.html">created.rid</a>
228
+
229
+ <li class="file"><a href="./doc/files/lib/Fraccion_rb_html.html">Fraccion_rb.html</a>
230
+
231
+ <li class="file"><a href="./doc/files/lib/Matriz_densa_rb_html.html">Matriz_densa_rb.html</a>
232
+
233
+ <li class="file"><a href="./doc/files/lib/Matriz_dispersa_rb_html.html">Matriz_dispersa_rb.html</a>
234
+
235
+ <li class="file"><a href="./doc/files/lib/Matriz_rb_html.html">Matriz_rb.html</a>
236
+
237
+ <li class="file"><a href="./doc/files/lib/mcd_rb_html.html">mcd_rb.html</a>
238
+
239
+ <li class="file"><a href="./doc/files/lib/mcd_rb_src/M000001_html.html">M000001.html</a>
240
+
241
+ <li class="file"><a href="./doc/files/lib/prct09/version_rb_html.html">version_rb.html</a>
242
+
243
+ <li class="file"><a href="./doc/files/lib/prct09_rb_html.html">prct09_rb.html</a>
244
+
245
+ <li class="file"><a href="./doc/files/spec/Matriz_spec_rb_html.html">Matriz_spec_rb.html</a>
246
+
247
+ <li class="file"><a href="./doc/files/test/tc_matriz_rb_html.html">tc_matriz_rb.html</a>
248
+
249
+ <li class="file"><a href="./doc/fr_class_index_html.html">fr_class_index.html</a>
250
+
251
+ <li class="file"><a href="./doc/fr_file_index_html.html">fr_file_index.html</a>
252
+
253
+ <li class="file"><a href="./doc/fr_method_index_html.html">fr_method_index.html</a>
254
+
255
+ <li class="file"><a href="./doc/index_html.html">index.html</a>
256
+
257
+ <li class="file"><a href="./doc/js/darkfish_js.html">darkfish.js</a>
258
+
259
+ <li class="file"><a href="./doc/js/jquery_js.html">jquery.js</a>
260
+
261
+ <li class="file"><a href="./doc/js/quicksearch_js.html">quicksearch.js</a>
262
+
263
+ <li class="file"><a href="./doc/js/thickbox-compressed_js.html">thickbox-compressed.js</a>
264
+
265
+ <li class="file"><a href="./doc/lib/Fraccion_rb_html.html">Fraccion_rb.html</a>
266
+
267
+ <li class="file"><a href="./doc/lib/Matriz_densa_rb_html.html">Matriz_densa_rb.html</a>
268
+
269
+ <li class="file"><a href="./doc/lib/Matriz_dispersa_rb_html.html">Matriz_dispersa_rb.html</a>
270
+
271
+ <li class="file"><a href="./doc/lib/Matriz_rb_html.html">Matriz_rb.html</a>
272
+
273
+ <li class="file"><a href="./doc/lib/prct09/version_rb_html.html">version_rb.html</a>
274
+
275
+ <li class="file"><a href="./doc/lib/prct09_rb_html.html">prct09_rb.html</a>
276
+
277
+ <li class="file"><a href="./doc/rdoc-style_css.html">rdoc-style.css</a>
278
+
279
+ <li class="file"><a href="./doc/rdoc_css.html">rdoc.css</a>
280
+
281
+ <li class="file"><a href="./doc/spec/Matriz_spec_rb_html.html">Matriz_spec_rb.html</a>
282
+
283
+ <li class="file"><a href="./doc/test/tc_matriz_rb_html.html">tc_matriz_rb.html</a>
284
+
285
+ <li class="file"><a href="./prct09_gemspec.html">prct09.gemspec</a>
286
+
287
+ </ul>
288
+ </nav>
289
+
290
+ <nav id="classindex-section" class="section project-section">
291
+ <h3 class="section-header">Class and Module Index</h3>
292
+
293
+ <ul class="link-list">
294
+
295
+ <li><a href="./Dsl.html">Dsl</a>
296
+
297
+ <li><a href="./Fraccion.html">Fraccion</a>
298
+
299
+ <li><a href="./Matriz.html">Matriz</a>
300
+
301
+ <li><a href="./Matriz_densa.html">Matriz_densa</a>
302
+
303
+ <li><a href="./Matriz_dispersa.html">Matriz_dispersa</a>
304
+
305
+ <li><a href="./Prct09.html">Prct09</a>
306
+
307
+ <li><a href="./Test_Matriz.html">Test_Matriz</a>
308
+
309
+ </ul>
310
+ </nav>
311
+
312
+ </div>
313
+ </nav>
314
+
315
+ <div id="documentation">
316
+ <h1 class="class">class Matriz</h1>
317
+
318
+ <div id="description" class="description">
319
+
320
+ </div><!-- description -->
321
+
322
+
323
+
324
+
325
+ <section id="5Buntitled-5D" class="documentation-section">
326
+
327
+
328
+
329
+
330
+
331
+
332
+
333
+ <!-- Attributes -->
334
+ <section id="attribute-method-details" class="method-section section">
335
+ <h3 class="section-header">Attributes</h3>
336
+
337
+
338
+ <div id="attribute-i-cols" class="method-detail">
339
+ <div class="method-heading attribute-method-heading">
340
+ <span class="method-name">cols</span><span
341
+ class="attribute-access-type">[RW]</span>
342
+ </div>
343
+
344
+ <div class="method-description">
345
+
346
+
347
+
348
+ </div>
349
+ </div>
350
+
351
+ <div id="attribute-i-filas" class="method-detail">
352
+ <div class="method-heading attribute-method-heading">
353
+ <span class="method-name">filas</span><span
354
+ class="attribute-access-type">[RW]</span>
355
+ </div>
356
+
357
+ <div class="method-description">
358
+
359
+
360
+
361
+ </div>
362
+ </div>
363
+
364
+ <div id="attribute-i-matriz" class="method-detail">
365
+ <div class="method-heading attribute-method-heading">
366
+ <span class="method-name">matriz</span><span
367
+ class="attribute-access-type">[RW]</span>
368
+ </div>
369
+
370
+ <div class="method-description">
371
+
372
+
373
+
374
+ </div>
375
+ </div>
376
+
377
+ </section><!-- attribute-method-details -->
378
+
379
+
380
+ <!-- Methods -->
381
+
382
+ <section id="public-class-5Buntitled-5D-method-details" class="method-section section">
383
+ <h3 class="section-header">Public Class Methods</h3>
384
+
385
+
386
+ <div id="method-c-new" class="method-detail ">
387
+
388
+ <div class="method-heading">
389
+ <span class="method-name">new</span><span
390
+ class="method-args">(m)</span>
391
+
392
+ <span class="method-click-advice">click to toggle source</span>
393
+
394
+ </div>
395
+
396
+
397
+ <div class="method-description">
398
+
399
+ <p>Constructor de la matriz</p>
400
+
401
+
402
+
403
+
404
+ <div class="method-source-code" id="new-source">
405
+ <pre><span class="ruby-comment"># File lib/Matriz.rb, line 7</span>
406
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">m</span>)
407
+ <span class="ruby-ivar">@filas</span> = <span class="ruby-identifier">m</span>.<span class="ruby-identifier">size</span>
408
+ <span class="ruby-ivar">@cols</span> = <span class="ruby-identifier">m</span>[<span class="ruby-value">1</span>].<span class="ruby-identifier">size</span>
409
+ <span class="ruby-ivar">@matriz</span> = <span class="ruby-identifier">m</span>
410
+ <span class="ruby-keyword">end</span></pre>
411
+ </div><!-- new-source -->
412
+
413
+ </div>
414
+
415
+
416
+
417
+
418
+ </div><!-- new-method -->
419
+
420
+
421
+ </section><!-- public-class-method-details -->
422
+
423
+ <section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
424
+ <h3 class="section-header">Public Instance Methods</h3>
425
+
426
+
427
+ <div id="method-i-2A" class="method-detail ">
428
+
429
+ <div class="method-heading">
430
+ <span class="method-name">*</span><span
431
+ class="method-args">(other)</span>
432
+
433
+ <span class="method-click-advice">click to toggle source</span>
434
+
435
+ </div>
436
+
437
+
438
+ <div class="method-description">
439
+
440
+ <p>Definición de la sobrecarga del operador *</p>
441
+
442
+
443
+
444
+
445
+ <div class="method-source-code" id="2A-source">
446
+ <pre><span class="ruby-comment"># File lib/Matriz.rb, line 29</span>
447
+ <span class="ruby-keyword">def</span> <span class="ruby-operator">*</span> (<span class="ruby-identifier">other</span>)
448
+ <span class="ruby-keyword">end</span></pre>
449
+ </div><!-- 2A-source -->
450
+
451
+ </div>
452
+
453
+
454
+
455
+
456
+ </div><!-- 2A-method -->
457
+
458
+
459
+ <div id="method-i-2B" class="method-detail ">
460
+
461
+ <div class="method-heading">
462
+ <span class="method-name">+</span><span
463
+ class="method-args">(other)</span>
464
+
465
+ <span class="method-click-advice">click to toggle source</span>
466
+
467
+ </div>
468
+
469
+
470
+ <div class="method-description">
471
+
472
+ <p>Definición de la sobrecarga del operador +</p>
473
+
474
+
475
+
476
+
477
+ <div class="method-source-code" id="2B-source">
478
+ <pre><span class="ruby-comment"># File lib/Matriz.rb, line 21</span>
479
+ <span class="ruby-keyword">def</span> <span class="ruby-operator">+</span> (<span class="ruby-identifier">other</span>)
480
+ <span class="ruby-keyword">end</span></pre>
481
+ </div><!-- 2B-source -->
482
+
483
+ </div>
484
+
485
+
486
+
487
+
488
+ </div><!-- 2B-method -->
489
+
490
+
491
+ <div id="method-i-2D" class="method-detail ">
492
+
493
+ <div class="method-heading">
494
+ <span class="method-name">-</span><span
495
+ class="method-args">(other)</span>
496
+
497
+ <span class="method-click-advice">click to toggle source</span>
498
+
499
+ </div>
500
+
501
+
502
+ <div class="method-description">
503
+
504
+ <p>Definición de la sobrecarga del operador -</p>
505
+
506
+
507
+
508
+
509
+ <div class="method-source-code" id="2D-source">
510
+ <pre><span class="ruby-comment"># File lib/Matriz.rb, line 25</span>
511
+ <span class="ruby-keyword">def</span> <span class="ruby-operator">-</span> (<span class="ruby-identifier">other</span>)
512
+ <span class="ruby-keyword">end</span></pre>
513
+ </div><!-- 2D-source -->
514
+
515
+ </div>
516
+
517
+
518
+
519
+
520
+ </div><!-- 2D-method -->
521
+
522
+
523
+ <div id="method-i-comprobar" class="method-detail ">
524
+
525
+ <div class="method-heading">
526
+ <span class="method-name">comprobar</span><span
527
+ class="method-args">()</span>
528
+
529
+ <span class="method-click-advice">click to toggle source</span>
530
+
531
+ </div>
532
+
533
+
534
+ <div class="method-description">
535
+
536
+ <p>Comprueba la matriz y la devuelve según su tipo</p>
537
+
538
+
539
+
540
+
541
+ <div class="method-source-code" id="comprobar-source">
542
+ <pre><span class="ruby-comment"># File lib/Matriz.rb, line 45</span>
543
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">comprobar</span>()
544
+ <span class="ruby-identifier">cont_total</span> = <span class="ruby-value">0</span>
545
+ <span class="ruby-identifier">cont_ceros</span> = <span class="ruby-value">0</span>
546
+ <span class="ruby-ivar">@filas</span>.<span class="ruby-identifier">times</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">i</span><span class="ruby-operator">|</span>
547
+ <span class="ruby-ivar">@cols</span>.<span class="ruby-identifier">times</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">j</span><span class="ruby-operator">|</span>
548
+ <span class="ruby-keyword">if</span> <span class="ruby-ivar">@matriz</span>[<span class="ruby-identifier">i</span>][<span class="ruby-identifier">j</span>] <span class="ruby-operator">==</span> <span class="ruby-value">0</span>
549
+ <span class="ruby-identifier">cont_ceros</span> = <span class="ruby-identifier">cont_ceros</span> <span class="ruby-operator">+</span> <span class="ruby-value">1</span>
550
+ <span class="ruby-keyword">end</span>
551
+ <span class="ruby-identifier">cont_total</span> = <span class="ruby-identifier">cont_total</span> <span class="ruby-operator">+</span> <span class="ruby-value">1</span>
552
+ <span class="ruby-keyword">end</span>
553
+ <span class="ruby-keyword">end</span>
554
+ <span class="ruby-keyword">if</span> <span class="ruby-identifier">cont_ceros</span> <span class="ruby-operator">&gt;=</span> (<span class="ruby-identifier">cont_total</span> <span class="ruby-operator">*</span> <span class="ruby-value">0.6</span>)
555
+ <span class="ruby-constant">Matriz_dispersa</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@matriz</span>)
556
+ <span class="ruby-keyword">else</span>
557
+ <span class="ruby-constant">Matriz_densa</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@matriz</span>)
558
+ <span class="ruby-keyword">end</span>
559
+ <span class="ruby-keyword">end</span></pre>
560
+ </div><!-- comprobar-source -->
561
+
562
+ </div>
563
+
564
+
565
+
566
+
567
+ </div><!-- comprobar-method -->
568
+
569
+
570
+ <div id="method-i-max" class="method-detail ">
571
+
572
+ <div class="method-heading">
573
+ <span class="method-name">max</span><span
574
+ class="method-args">()</span>
575
+
576
+ <span class="method-click-advice">click to toggle source</span>
577
+
578
+ </div>
579
+
580
+
581
+ <div class="method-description">
582
+
583
+ <p>Definición de el cálculo del máximo de una matriz</p>
584
+
585
+
586
+
587
+
588
+ <div class="method-source-code" id="max-source">
589
+ <pre><span class="ruby-comment"># File lib/Matriz.rb, line 64</span>
590
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">max</span>()
591
+ <span class="ruby-keyword">end</span></pre>
592
+ </div><!-- max-source -->
593
+
594
+ </div>
595
+
596
+
597
+
598
+
599
+ </div><!-- max-method -->
600
+
601
+
602
+ <div id="method-i-min" class="method-detail ">
603
+
604
+ <div class="method-heading">
605
+ <span class="method-name">min</span><span
606
+ class="method-args">()</span>
607
+
608
+ <span class="method-click-advice">click to toggle source</span>
609
+
610
+ </div>
611
+
612
+
613
+ <div class="method-description">
614
+
615
+ <p>Definición de el cálculo del mínimo de una matriz</p>
616
+
617
+
618
+
619
+
620
+ <div class="method-source-code" id="min-source">
621
+ <pre><span class="ruby-comment"># File lib/Matriz.rb, line 68</span>
622
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">min</span>()
623
+ <span class="ruby-keyword">end</span></pre>
624
+ </div><!-- min-source -->
625
+
626
+ </div>
627
+
628
+
629
+
630
+
631
+ </div><!-- min-method -->
632
+
633
+
634
+ <div id="method-i-to_s" class="method-detail ">
635
+
636
+ <div class="method-heading">
637
+ <span class="method-name">to_s</span><span
638
+ class="method-args">()</span>
639
+
640
+ <span class="method-click-advice">click to toggle source</span>
641
+
642
+ </div>
643
+
644
+
645
+ <div class="method-description">
646
+
647
+ <p>Función que imprime la matriz</p>
648
+
649
+
650
+
651
+
652
+ <div class="method-source-code" id="to_s-source">
653
+ <pre><span class="ruby-comment"># File lib/Matriz.rb, line 14</span>
654
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">to_s</span> ()
655
+ <span class="ruby-ivar">@matriz</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">fila</span><span class="ruby-operator">|</span>
656
+ <span class="ruby-identifier">puts</span> <span class="ruby-identifier">fila</span>.<span class="ruby-identifier">join</span>(<span class="ruby-string">&quot; &quot;</span>)
657
+ <span class="ruby-keyword">end</span>
658
+ <span class="ruby-keyword">end</span></pre>
659
+ </div><!-- to_s-source -->
660
+
661
+ </div>
662
+
663
+
664
+
665
+
666
+ </div><!-- to_s-method -->
667
+
668
+
669
+ <div id="method-i-traspuesta" class="method-detail ">
670
+
671
+ <div class="method-heading">
672
+ <span class="method-name">traspuesta</span><span
673
+ class="method-args">()</span>
674
+
675
+ <span class="method-click-advice">click to toggle source</span>
676
+
677
+ </div>
678
+
679
+
680
+ <div class="method-description">
681
+
682
+ <p>Calcula la traspuesta de una matriz y la devuelve según el tipo que sea</p>
683
+
684
+
685
+
686
+
687
+ <div class="method-source-code" id="traspuesta-source">
688
+ <pre><span class="ruby-comment"># File lib/Matriz.rb, line 33</span>
689
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">traspuesta</span> ()
690
+ <span class="ruby-identifier">aux_m</span> = <span class="ruby-constant">Array</span>.<span class="ruby-identifier">new</span>
691
+ <span class="ruby-ivar">@filas</span>.<span class="ruby-identifier">times</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">i</span><span class="ruby-operator">|</span>
692
+ <span class="ruby-identifier">aux_m</span>[<span class="ruby-identifier">i</span>] = <span class="ruby-constant">Array</span>.<span class="ruby-identifier">new</span>
693
+ <span class="ruby-ivar">@cols</span>.<span class="ruby-identifier">times</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">j</span><span class="ruby-operator">|</span>
694
+ <span class="ruby-identifier">aux_m</span>[<span class="ruby-identifier">i</span>][<span class="ruby-identifier">j</span>] = <span class="ruby-ivar">@matriz</span>[(<span class="ruby-ivar">@filas</span><span class="ruby-operator">-</span><span class="ruby-value">1</span>)<span class="ruby-operator">-</span><span class="ruby-identifier">i</span>][(<span class="ruby-ivar">@cols</span><span class="ruby-operator">-</span><span class="ruby-value">1</span>)<span class="ruby-operator">-</span><span class="ruby-identifier">j</span>]
695
+ <span class="ruby-keyword">end</span>
696
+ <span class="ruby-keyword">end</span>
697
+ <span class="ruby-constant">Matriz</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">aux_m</span>).<span class="ruby-identifier">comprobar</span>
698
+ <span class="ruby-keyword">end</span></pre>
699
+ </div><!-- traspuesta-source -->
700
+
701
+ </div>
702
+
703
+
704
+
705
+
706
+ </div><!-- traspuesta-method -->
707
+
708
+
709
+ </section><!-- public-instance-method-details -->
710
+
711
+ </section><!-- 5Buntitled-5D -->
712
+
713
+ </div><!-- documentation -->
714
+
715
+
716
+ <footer id="validator-badges">
717
+ <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
718
+ <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 4.0.0.
719
+ <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
720
+ </footer>
721
+