p10lppt13 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 (131) hide show
  1. data/.gitignore +0 -2
  2. data/.travis.yml +0 -1
  3. data/Gemfile.lock +1 -1
  4. data/lib/doc/Densa.html +451 -0
  5. data/lib/doc/Dispersa.html +462 -0
  6. data/lib/doc/Fraccion.html +1023 -0
  7. data/lib/doc/Matriz.html +985 -0
  8. data/lib/doc/Object.html +349 -0
  9. data/lib/doc/P10lppt13.html +303 -0
  10. data/lib/doc/VectorDisperso.html +444 -0
  11. data/lib/doc/created.rid +89 -0
  12. data/lib/doc/doc/Densa_html.html +659 -0
  13. data/lib/doc/doc/Dispersa_html.html +669 -0
  14. data/lib/doc/doc/Fraccion_html.html +1193 -0
  15. data/lib/doc/doc/Matriz_html.html +1159 -0
  16. data/lib/doc/doc/Object_html.html +557 -0
  17. data/lib/doc/doc/P10lppt13_html.html +509 -0
  18. data/lib/doc/doc/VectorDisperso_html.html +646 -0
  19. data/lib/doc/doc/created_rid.html +336 -0
  20. data/lib/doc/doc/doc/Densa_html_html.html +908 -0
  21. data/lib/doc/doc/doc/Dispersa_html_html.html +949 -0
  22. data/lib/doc/doc/doc/Fraccion_html_html.html +1713 -0
  23. data/lib/doc/doc/doc/Matriz_html_html.html +1684 -0
  24. data/lib/doc/doc/doc/Object_html_html.html +816 -0
  25. data/lib/doc/doc/doc/P10lppt13_html_html.html +754 -0
  26. data/lib/doc/doc/doc/VectorDisperso_html_html.html +887 -0
  27. data/lib/doc/doc/doc/created_rid_html.html +536 -0
  28. data/lib/doc/doc/doc/doc/Densa_html_html_html.html +1191 -0
  29. data/lib/doc/doc/doc/doc/Dispersa_html_html_html.html +1260 -0
  30. data/lib/doc/doc/doc/doc/Fraccion_html_html_html.html +2174 -0
  31. data/lib/doc/doc/doc/doc/Matriz_html_html_html.html +2235 -0
  32. data/lib/doc/doc/doc/doc/Object_html_html_html.html +1099 -0
  33. data/lib/doc/doc/doc/doc/P10lppt13_html_html_html.html +1028 -0
  34. data/lib/doc/doc/doc/doc/VectorDisperso_html_html_html.html +1168 -0
  35. data/lib/doc/doc/doc/doc/created_rid_html_html.html +722 -0
  36. data/lib/doc/doc/doc/doc/doc/Densa_html_html_html_html.html +1424 -0
  37. data/lib/doc/doc/doc/doc/doc/Dispersa_html_html_html_html.html +1502 -0
  38. data/lib/doc/doc/doc/doc/doc/Fraccion_html_html_html_html.html +2619 -0
  39. data/lib/doc/doc/doc/doc/doc/Matriz_html_html_html_html.html +2764 -0
  40. data/lib/doc/doc/doc/doc/doc/Object_html_html_html_html.html +1315 -0
  41. data/lib/doc/doc/doc/doc/doc/P10lppt13_html_html_html_html.html +1227 -0
  42. data/lib/doc/doc/doc/doc/doc/VectorDisperso_html_html_html_html.html +1403 -0
  43. data/lib/doc/doc/doc/doc/doc/created_rid_html_html_html.html +920 -0
  44. data/lib/doc/doc/doc/doc/doc/doc/created_rid_html_html_html_html.html +1089 -0
  45. data/lib/doc/doc/doc/doc/doc/fraccion_rb~_html_html_html_html.html +1754 -0
  46. data/lib/doc/doc/doc/doc/doc/index_html_html_html_html.html +1086 -0
  47. data/lib/doc/doc/doc/doc/doc/js/darkfish_js_html_html_html.html +1207 -0
  48. data/lib/doc/doc/doc/doc/doc/js/jquery_js_html_html_html.html +3210 -0
  49. data/lib/doc/doc/doc/doc/doc/js/navigation_js_html_html_html.html +1122 -0
  50. data/lib/doc/doc/doc/doc/doc/js/search_index_js_html_html_html.html +1031 -0
  51. data/lib/doc/doc/doc/doc/doc/js/search_js_html_html_html.html +1058 -0
  52. data/lib/doc/doc/doc/doc/doc/js/searcher_js_html_html_html.html +1295 -0
  53. data/lib/doc/doc/doc/doc/doc/rdoc_css_html_html_html.html +1827 -0
  54. data/lib/doc/doc/doc/doc/doc/table_of_contents_html_html_html_html.html +1727 -0
  55. data/lib/doc/doc/doc/doc/fraccion_rb~_html_html_html.html +1509 -0
  56. data/lib/doc/doc/doc/doc/index_html_html_html.html +911 -0
  57. data/lib/doc/doc/doc/doc/js/darkfish_js_html_html.html +920 -0
  58. data/lib/doc/doc/doc/doc/js/jquery_js_html_html.html +2908 -0
  59. data/lib/doc/doc/doc/doc/js/navigation_js_html_html.html +852 -0
  60. data/lib/doc/doc/doc/doc/js/search_index_js_html_html.html +889 -0
  61. data/lib/doc/doc/doc/doc/js/search_js_html_html.html +802 -0
  62. data/lib/doc/doc/doc/doc/js/searcher_js_html_html.html +975 -0
  63. data/lib/doc/doc/doc/doc/p10lppt13_rb~_html_html_html.html +1996 -0
  64. data/lib/doc/doc/doc/doc/rdoc_css_html_html.html +1443 -0
  65. data/lib/doc/doc/doc/doc/table_of_contents_html_html_html.html +1503 -0
  66. data/lib/doc/doc/doc/fraccion_rb~_html_html.html +1052 -0
  67. data/lib/doc/doc/doc/index_html_html.html +669 -0
  68. data/lib/doc/doc/doc/js/darkfish_js_html.html +667 -0
  69. data/lib/doc/doc/doc/js/jquery_js_html.html +213 -0
  70. data/lib/doc/doc/doc/js/navigation_js_html.html +557 -0
  71. data/lib/doc/doc/doc/js/search_index_js_html.html +589 -0
  72. data/lib/doc/doc/doc/js/search_js_html.html +499 -0
  73. data/lib/doc/doc/doc/js/searcher_js_html.html +655 -0
  74. data/lib/doc/doc/doc/p10lppt13_rb~_html_html.html +1361 -0
  75. data/lib/doc/doc/doc/rdoc_css_html.html +1039 -0
  76. data/lib/doc/doc/doc/table_of_contents_html_html.html +1134 -0
  77. data/lib/doc/doc/fraccion_rb~_html.html +582 -0
  78. data/lib/doc/doc/index_html.html +389 -0
  79. data/lib/doc/doc/js/darkfish_js.html +386 -0
  80. data/lib/doc/doc/js/jquery_js.html +1611 -0
  81. data/lib/doc/doc/js/navigation_js.html +354 -0
  82. data/lib/doc/doc/js/search_index_js.html +427 -0
  83. data/lib/doc/doc/js/search_js.html +308 -0
  84. data/lib/doc/doc/js/searcher_js.html +441 -0
  85. data/lib/doc/doc/p10lppt13_rb~_html.html +810 -0
  86. data/lib/doc/doc/rdoc_css.html +939 -0
  87. data/lib/doc/doc/table_of_contents_html.html +489 -0
  88. data/lib/doc/fraccion_rb~.html +356 -0
  89. data/lib/doc/images/add.png +0 -0
  90. data/lib/doc/images/arrow_up.png +0 -0
  91. data/lib/doc/images/brick.png +0 -0
  92. data/lib/doc/images/brick_link.png +0 -0
  93. data/lib/doc/images/bug.png +0 -0
  94. data/lib/doc/images/bullet_black.png +0 -0
  95. data/lib/doc/images/bullet_toggle_minus.png +0 -0
  96. data/lib/doc/images/bullet_toggle_plus.png +0 -0
  97. data/lib/doc/images/date.png +0 -0
  98. data/lib/doc/images/delete.png +0 -0
  99. data/lib/doc/images/find.png +0 -0
  100. data/lib/doc/images/loadingAnimation.gif +0 -0
  101. data/lib/doc/images/macFFBgHack.png +0 -0
  102. data/lib/doc/images/package.png +0 -0
  103. data/lib/doc/images/page_green.png +0 -0
  104. data/lib/doc/images/page_white_text.png +0 -0
  105. data/lib/doc/images/page_white_width.png +0 -0
  106. data/lib/doc/images/plugin.png +0 -0
  107. data/lib/doc/images/ruby.png +0 -0
  108. data/lib/doc/images/tag_blue.png +0 -0
  109. data/lib/doc/images/tag_green.png +0 -0
  110. data/lib/doc/images/transparent.png +0 -0
  111. data/lib/doc/images/wrench.png +0 -0
  112. data/lib/doc/images/wrench_orange.png +0 -0
  113. data/lib/doc/images/zoom.png +0 -0
  114. data/lib/doc/index.html +248 -0
  115. data/lib/doc/js/darkfish.js +155 -0
  116. data/lib/doc/js/jquery.js +18 -0
  117. data/lib/doc/js/navigation.js +142 -0
  118. data/lib/doc/js/search.js +94 -0
  119. data/lib/doc/js/search_index.js +1 -0
  120. data/lib/doc/js/searcher.js +228 -0
  121. data/lib/doc/p10lppt13_rb~.html +522 -0
  122. data/lib/doc/rdoc.css +595 -0
  123. data/lib/doc/table_of_contents.html +360 -0
  124. data/lib/fraccion.rb +18 -3
  125. data/lib/p10lppt13.rb +71 -41
  126. data/lib/p10lppt13/version.rb +3 -1
  127. data/spec/p10lppt13_spec.rb +16 -6
  128. data/test/tc_p10lppt13.rb +2 -0
  129. metadata +166 -26
  130. checksums.yaml +0 -7
  131. data/lib/gcd.rb +0 -7
@@ -0,0 +1,1159 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
6
+
7
+ <title>Matriz.html - 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="../doc/Densa_html.html">Densa.html</a>
55
+
56
+ <li class="file"><a href="../doc/Dispersa_html.html">Dispersa.html</a>
57
+
58
+ <li class="file"><a href="../doc/Fraccion_html.html">Fraccion.html</a>
59
+
60
+ <li class="file"><a href="../doc/Matriz_html.html">Matriz.html</a>
61
+
62
+ <li class="file"><a href="../doc/Object_html.html">Object.html</a>
63
+
64
+ <li class="file"><a href="../doc/P10lppt13_html.html">P10lppt13.html</a>
65
+
66
+ <li class="file"><a href="../doc/VectorDisperso_html.html">VectorDisperso.html</a>
67
+
68
+ <li class="file"><a href="../doc/created_rid.html">created.rid</a>
69
+
70
+ <li class="file"><a href="../doc/doc/Densa_html_html.html">Densa_html.html</a>
71
+
72
+ <li class="file"><a href="../doc/doc/Dispersa_html_html.html">Dispersa_html.html</a>
73
+
74
+ <li class="file"><a href="../doc/doc/Fraccion_html_html.html">Fraccion_html.html</a>
75
+
76
+ <li class="file"><a href="../doc/doc/Matriz_html_html.html">Matriz_html.html</a>
77
+
78
+ <li class="file"><a href="../doc/doc/Object_html_html.html">Object_html.html</a>
79
+
80
+ <li class="file"><a href="../doc/doc/P10lppt13_html_html.html">P10lppt13_html.html</a>
81
+
82
+ <li class="file"><a href="../doc/doc/VectorDisperso_html_html.html">VectorDisperso_html.html</a>
83
+
84
+ <li class="file"><a href="../doc/doc/created_rid_html.html">created_rid.html</a>
85
+
86
+ <li class="file"><a href="../doc/doc/doc/Densa_html_html_html.html">Densa_html_html.html</a>
87
+
88
+ <li class="file"><a href="../doc/doc/doc/Dispersa_html_html_html.html">Dispersa_html_html.html</a>
89
+
90
+ <li class="file"><a href="../doc/doc/doc/Fraccion_html_html_html.html">Fraccion_html_html.html</a>
91
+
92
+ <li class="file"><a href="../doc/doc/doc/Matriz_html_html_html.html">Matriz_html_html.html</a>
93
+
94
+ <li class="file"><a href="../doc/doc/doc/Object_html_html_html.html">Object_html_html.html</a>
95
+
96
+ <li class="file"><a href="../doc/doc/doc/P10lppt13_html_html_html.html">P10lppt13_html_html.html</a>
97
+
98
+ <li class="file"><a href="../doc/doc/doc/VectorDisperso_html_html_html.html">VectorDisperso_html_html.html</a>
99
+
100
+ <li class="file"><a href="../doc/doc/doc/created_rid_html_html.html">created_rid_html.html</a>
101
+
102
+ <li class="file"><a href="../doc/doc/doc/doc/Densa_html_html_html_html.html">Densa_html_html_html.html</a>
103
+
104
+ <li class="file"><a href="../doc/doc/doc/doc/Dispersa_html_html_html_html.html">Dispersa_html_html_html.html</a>
105
+
106
+ <li class="file"><a href="../doc/doc/doc/doc/Fraccion_html_html_html_html.html">Fraccion_html_html_html.html</a>
107
+
108
+ <li class="file"><a href="../doc/doc/doc/doc/Matriz_html_html_html_html.html">Matriz_html_html_html.html</a>
109
+
110
+ <li class="file"><a href="../doc/doc/doc/doc/Object_html_html_html_html.html">Object_html_html_html.html</a>
111
+
112
+ <li class="file"><a href="../doc/doc/doc/doc/P10lppt13_html_html_html_html.html">P10lppt13_html_html_html.html</a>
113
+
114
+ <li class="file"><a href="../doc/doc/doc/doc/VectorDisperso_html_html_html_html.html">VectorDisperso_html_html_html.html</a>
115
+
116
+ <li class="file"><a href="../doc/doc/doc/doc/created_rid_html_html_html.html">created_rid_html_html.html</a>
117
+
118
+ <li class="file"><a href="../doc/doc/doc/doc/doc/created_rid_html_html_html_html.html">created_rid_html_html_html.html</a>
119
+
120
+ <li class="file"><a href="../doc/doc/doc/doc/fraccion_rb~_html_html_html_html.html">fraccion_rb~_html_html_html.html</a>
121
+
122
+ <li class="file"><a href="../doc/doc/doc/doc/index_html_html_html_html.html">index_html_html_html.html</a>
123
+
124
+ <li class="file"><a href="../doc/doc/doc/doc/js/darkfish_js_html_html_html.html">darkfish_js_html_html.html</a>
125
+
126
+ <li class="file"><a href="../doc/doc/doc/doc/js/jquery_js_html_html_html.html">jquery_js_html_html.html</a>
127
+
128
+ <li class="file"><a href="../doc/doc/doc/doc/js/navigation_js_html_html_html.html">navigation_js_html_html.html</a>
129
+
130
+ <li class="file"><a href="../doc/doc/doc/doc/js/search_index_js_html_html_html.html">search_index_js_html_html.html</a>
131
+
132
+ <li class="file"><a href="../doc/doc/doc/doc/js/search_js_html_html_html.html">search_js_html_html.html</a>
133
+
134
+ <li class="file"><a href="../doc/doc/doc/doc/js/searcher_js_html_html_html.html">searcher_js_html_html.html</a>
135
+
136
+ <li class="file"><a href="../doc/doc/doc/doc/rdoc_css_html_html_html.html">rdoc_css_html_html.html</a>
137
+
138
+ <li class="file"><a href="../doc/doc/doc/doc/table_of_contents_html_html_html_html.html">table_of_contents_html_html_html.html</a>
139
+
140
+ <li class="file"><a href="../doc/doc/doc/fraccion_rb~_html_html_html.html">fraccion_rb~_html_html.html</a>
141
+
142
+ <li class="file"><a href="../doc/doc/doc/index_html_html_html.html">index_html_html.html</a>
143
+
144
+ <li class="file"><a href="../doc/doc/doc/js/darkfish_js_html_html.html">darkfish_js_html.html</a>
145
+
146
+ <li class="file"><a href="../doc/doc/doc/js/jquery_js_html_html.html">jquery_js_html.html</a>
147
+
148
+ <li class="file"><a href="../doc/doc/doc/js/navigation_js_html_html.html">navigation_js_html.html</a>
149
+
150
+ <li class="file"><a href="../doc/doc/doc/js/search_index_js_html_html.html">search_index_js_html.html</a>
151
+
152
+ <li class="file"><a href="../doc/doc/doc/js/search_js_html_html.html">search_js_html.html</a>
153
+
154
+ <li class="file"><a href="../doc/doc/doc/js/searcher_js_html_html.html">searcher_js_html.html</a>
155
+
156
+ <li class="file"><a href="../doc/doc/doc/p10lppt13_rb~_html_html_html.html">p10lppt13_rb~_html_html.html</a>
157
+
158
+ <li class="file"><a href="../doc/doc/doc/rdoc_css_html_html.html">rdoc_css_html.html</a>
159
+
160
+ <li class="file"><a href="../doc/doc/doc/table_of_contents_html_html_html.html">table_of_contents_html_html.html</a>
161
+
162
+ <li class="file"><a href="../doc/doc/fraccion_rb~_html_html.html">fraccion_rb~_html.html</a>
163
+
164
+ <li class="file"><a href="../doc/doc/index_html_html.html">index_html.html</a>
165
+
166
+ <li class="file"><a href="../doc/doc/js/darkfish_js_html.html">darkfish_js.html</a>
167
+
168
+ <li class="file"><a href="../doc/doc/js/jquery_js_html.html">jquery_js.html</a>
169
+
170
+ <li class="file"><a href="../doc/doc/js/navigation_js_html.html">navigation_js.html</a>
171
+
172
+ <li class="file"><a href="../doc/doc/js/search_index_js_html.html">search_index_js.html</a>
173
+
174
+ <li class="file"><a href="../doc/doc/js/search_js_html.html">search_js.html</a>
175
+
176
+ <li class="file"><a href="../doc/doc/js/searcher_js_html.html">searcher_js.html</a>
177
+
178
+ <li class="file"><a href="../doc/doc/p10lppt13_rb~_html_html.html">p10lppt13_rb~_html.html</a>
179
+
180
+ <li class="file"><a href="../doc/doc/rdoc_css_html.html">rdoc_css.html</a>
181
+
182
+ <li class="file"><a href="../doc/doc/table_of_contents_html_html.html">table_of_contents_html.html</a>
183
+
184
+ <li class="file"><a href="../doc/fraccion_rb~_html.html">fraccion_rb~.html</a>
185
+
186
+ <li class="file"><a href="../doc/index_html.html">index.html</a>
187
+
188
+ <li class="file"><a href="../doc/js/darkfish_js.html">darkfish.js</a>
189
+
190
+ <li class="file"><a href="../doc/js/jquery_js.html">jquery.js</a>
191
+
192
+ <li class="file"><a href="../doc/js/navigation_js.html">navigation.js</a>
193
+
194
+ <li class="file"><a href="../doc/js/search_js.html">search.js</a>
195
+
196
+ <li class="file"><a href="../doc/js/search_index_js.html">search_index.js</a>
197
+
198
+ <li class="file"><a href="../doc/js/searcher_js.html">searcher.js</a>
199
+
200
+ <li class="file"><a href="../doc/p10lppt13_rb~_html.html">p10lppt13_rb~.html</a>
201
+
202
+ <li class="file"><a href="../doc/rdoc_css.html">rdoc.css</a>
203
+
204
+ <li class="file"><a href="../doc/table_of_contents_html.html">table_of_contents.html</a>
205
+
206
+ <li class="file"><a href="../fraccion_rb~.html">fraccion.rb~</a>
207
+
208
+ <li class="file"><a href="../gcd_rb~.html">gcd.rb~</a>
209
+
210
+ <li class="file"><a href="../p10lppt13_rb~.html">p10lppt13.rb~</a>
211
+
212
+ </ul>
213
+ </nav>
214
+
215
+ <nav id="classindex-section" class="section project-section">
216
+ <h3 class="section-header">Class and Module Index</h3>
217
+
218
+ <ul class="link-list">
219
+
220
+ <li><a href="../Densa.html">Densa</a>
221
+
222
+ <li><a href="../Dispersa.html">Dispersa</a>
223
+
224
+ <li><a href="../Fraccion.html">Fraccion</a>
225
+
226
+ <li><a href="../Matriz.html">Matriz</a>
227
+
228
+ <li><a href="../Object.html">Object</a>
229
+
230
+ <li><a href="../P10lppt13.html">P10lppt13</a>
231
+
232
+ <li><a href="../VectorDisperso.html">VectorDisperso</a>
233
+
234
+ </ul>
235
+ </nav>
236
+
237
+ </div>
238
+ </nav>
239
+
240
+ <div id="documentation" class="description">
241
+
242
+ <p>&lt;!DOCTYPE html&gt;</p>
243
+
244
+ <p>&lt;html&gt; &lt;head&gt; &lt;meta content=“text/html; charset=UTF-8”
245
+ http-equiv=“Content-Type”&gt;</p>
246
+
247
+ <p>&lt;title&gt;class <a href="../Matriz.html">Matriz</a> - RDoc
248
+ Documentation&lt;/title&gt;</p>
249
+
250
+ <p>&lt;link type=“text/css” media=“screen” href=“./rdoc.css”
251
+ rel=“stylesheet”&gt;</p>
252
+
253
+ <p>&lt;script type=“text/javascript”&gt;</p>
254
+
255
+ <pre>var rdoc_rel_prefix = &quot;./&quot;;</pre>
256
+
257
+ <p>&lt;/script&gt;</p>
258
+
259
+ <p>&lt;script type=“text/javascript” charset=“utf-8”
260
+ src=“./js/jquery.js”&gt;&lt;/script&gt; &lt;script type=“text/javascript”
261
+ charset=“utf-8” src=“./js/navigation.js”&gt;&lt;/script&gt; &lt;script
262
+ type=“text/javascript” charset=“utf-8”
263
+ src=“./js/search_index.js”&gt;&lt;/script&gt; &lt;script
264
+ type=“text/javascript” charset=“utf-8”
265
+ src=“./js/search.js”&gt;&lt;/script&gt; &lt;script type=“text/javascript”
266
+ charset=“utf-8” src=“./js/searcher.js”&gt;&lt;/script&gt; &lt;script
267
+ type=“text/javascript” charset=“utf-8”
268
+ src=“./js/darkfish.js”&gt;&lt;/script&gt;</p>
269
+
270
+ <p>&lt;body id=“top” class=“class”&gt; &lt;nav id=“metadata”&gt;</p>
271
+
272
+ <pre>&lt;nav id=&quot;home-section&quot; class=&quot;section&quot;&gt;
273
+ &lt;h3 class=&quot;section-header&quot;&gt;
274
+ &lt;a href=&quot;./index.html&quot;&gt;Home&lt;/a&gt;
275
+ &lt;a href=&quot;./table_of_contents.html#classes&quot;&gt;Classes&lt;/a&gt;
276
+ &lt;a href=&quot;./table_of_contents.html#methods&quot;&gt;Methods&lt;/a&gt;
277
+ &lt;/h3&gt;</pre>
278
+
279
+ <p>&lt;/nav&gt;</p>
280
+
281
+ <pre>&lt;nav id=&quot;search-section&quot; class=&quot;section project-section&quot; class=&quot;initially-hidden&quot;&gt;
282
+ &lt;form action=&quot;#&quot; method=&quot;get&quot; accept-charset=&quot;utf-8&quot;&gt;
283
+ &lt;h3 class=&quot;section-header&quot;&gt;
284
+ &lt;input type=&quot;text&quot; name=&quot;search&quot; placeholder=&quot;Search&quot; id=&quot;search-field&quot;
285
+ title=&quot;Type to search, Up and Down to navigate, Enter to load&quot;&gt;
286
+ &lt;/h3&gt;
287
+ &lt;/form&gt;
288
+
289
+ &lt;ul id=&quot;search-results&quot; class=&quot;initially-hidden&quot;&gt;&lt;/ul&gt;</pre>
290
+
291
+ <p>&lt;/nav&gt;</p>
292
+
293
+ <pre>&lt;div id=&quot;file-metadata&quot;&gt;
294
+ &lt;nav id=&quot;file-list-section&quot; class=&quot;section&quot;&gt;
295
+ &lt;h3 class=&quot;section-header&quot;&gt;Defined In&lt;/h3&gt;
296
+ &lt;ul&gt;
297
+ &lt;li&gt;p10lppt13.rb
298
+ &lt;/ul&gt;</pre>
299
+
300
+ <p>&lt;/nav&gt;</p>
301
+
302
+ <pre>&lt;/div&gt;
303
+
304
+ &lt;div id=&quot;class-metadata&quot;&gt;
305
+
306
+ &lt;nav id=&quot;parent-class-section&quot; class=&quot;section&quot;&gt;
307
+ &lt;h3 class=&quot;section-header&quot;&gt;Parent&lt;/h3&gt;
308
+
309
+ &lt;p class=&quot;link&quot;&gt;&lt;a href=&quot;Object.html&quot;&gt;Object&lt;/a&gt;</pre>
310
+
311
+ <p>&lt;/nav&gt;</p>
312
+
313
+ <pre>&lt;!-- Method Quickref --&gt;</pre>
314
+
315
+ <p>&lt;nav id=“method-list-section” class=“section”&gt;</p>
316
+
317
+ <pre>&lt;h3 class=&quot;section-header&quot;&gt;Methods&lt;/h3&gt;
318
+
319
+ &lt;ul class=&quot;link-list&quot;&gt;
320
+
321
+ &lt;li &gt;&lt;a href=&quot;#method-c-new&quot;&gt;::new&lt;/a&gt;
322
+
323
+ &lt;li &gt;&lt;a href=&quot;#method-i-2A&quot;&gt;#*&lt;/a&gt;
324
+
325
+ &lt;li &gt;&lt;a href=&quot;#method-i-2B&quot;&gt;#+&lt;/a&gt;
326
+
327
+ &lt;li &gt;&lt;a href=&quot;#method-i-2D&quot;&gt;#-&lt;/a&gt;
328
+
329
+ &lt;li &gt;&lt;a href=&quot;#method-i-colum&quot;&gt;#colum&lt;/a&gt;
330
+
331
+ &lt;li &gt;&lt;a href=&quot;#method-i-filas&quot;&gt;#filas&lt;/a&gt;
332
+
333
+ &lt;li &gt;&lt;a href=&quot;#method-i-max&quot;&gt;#max&lt;/a&gt;
334
+
335
+ &lt;li &gt;&lt;a href=&quot;#method-i-min&quot;&gt;#min&lt;/a&gt;
336
+
337
+ &lt;li &gt;&lt;a href=&quot;#method-i-por&quot;&gt;#por&lt;/a&gt;
338
+
339
+ &lt;li &gt;&lt;a href=&quot;#method-i-porf&quot;&gt;#porf&lt;/a&gt;
340
+
341
+ &lt;li &gt;&lt;a href=&quot;#method-i-primervalor&quot;&gt;#primervalor&lt;/a&gt;
342
+
343
+ &lt;li &gt;&lt;a href=&quot;#method-i-to_s&quot;&gt;#to_s&lt;/a&gt;
344
+
345
+ &lt;li &gt;&lt;a href=&quot;#method-i-trasponer&quot;&gt;#trasponer&lt;/a&gt;
346
+
347
+ &lt;li &gt;&lt;a href=&quot;#method-i-vectorizar&quot;&gt;#vectorizar&lt;/a&gt;
348
+
349
+ &lt;/ul&gt;</pre>
350
+
351
+ <p>&lt;/nav&gt;</p>
352
+
353
+ <pre>&lt;/div&gt;
354
+
355
+ &lt;div id=&quot;project-metadata&quot;&gt;
356
+ &lt;nav id=&quot;fileindex-section&quot; class=&quot;section project-section&quot;&gt;
357
+ &lt;h3 class=&quot;section-header&quot;&gt;Pages&lt;/h3&gt;
358
+
359
+ &lt;ul&gt;
360
+
361
+ &lt;li class=&quot;file&quot;&gt;&lt;a href=&quot;./doc/Densa_html.html&quot;&gt;Densa.html&lt;/a&gt;
362
+
363
+ &lt;li class=&quot;file&quot;&gt;&lt;a href=&quot;./doc/Dispersa_html.html&quot;&gt;Dispersa.html&lt;/a&gt;
364
+
365
+ &lt;li class=&quot;file&quot;&gt;&lt;a href=&quot;./doc/Fraccion_html.html&quot;&gt;Fraccion.html&lt;/a&gt;
366
+
367
+ &lt;li class=&quot;file&quot;&gt;&lt;a href=&quot;./doc/Matriz_html.html&quot;&gt;Matriz.html&lt;/a&gt;
368
+
369
+ &lt;li class=&quot;file&quot;&gt;&lt;a href=&quot;./doc/Object_html.html&quot;&gt;Object.html&lt;/a&gt;
370
+
371
+ &lt;li class=&quot;file&quot;&gt;&lt;a href=&quot;./doc/P10lppt13_html.html&quot;&gt;P10lppt13.html&lt;/a&gt;
372
+
373
+ &lt;li class=&quot;file&quot;&gt;&lt;a href=&quot;./doc/VectorDisperso_html.html&quot;&gt;VectorDisperso.html&lt;/a&gt;
374
+
375
+ &lt;li class=&quot;file&quot;&gt;&lt;a href=&quot;./doc/created_rid.html&quot;&gt;created.rid&lt;/a&gt;
376
+
377
+ &lt;li class=&quot;file&quot;&gt;&lt;a href=&quot;./doc/doc/Densa_html_html.html&quot;&gt;Densa_html.html&lt;/a&gt;
378
+
379
+ &lt;li class=&quot;file&quot;&gt;&lt;a href=&quot;./doc/doc/Dispersa_html_html.html&quot;&gt;Dispersa_html.html&lt;/a&gt;
380
+
381
+ &lt;li class=&quot;file&quot;&gt;&lt;a href=&quot;./doc/doc/Fraccion_html_html.html&quot;&gt;Fraccion_html.html&lt;/a&gt;
382
+
383
+ &lt;li class=&quot;file&quot;&gt;&lt;a href=&quot;./doc/doc/Matriz_html_html.html&quot;&gt;Matriz_html.html&lt;/a&gt;
384
+
385
+ &lt;li class=&quot;file&quot;&gt;&lt;a href=&quot;./doc/doc/Object_html_html.html&quot;&gt;Object_html.html&lt;/a&gt;
386
+
387
+ &lt;li class=&quot;file&quot;&gt;&lt;a href=&quot;./doc/doc/P10lppt13_html_html.html&quot;&gt;P10lppt13_html.html&lt;/a&gt;
388
+
389
+ &lt;li class=&quot;file&quot;&gt;&lt;a href=&quot;./doc/doc/VectorDisperso_html_html.html&quot;&gt;VectorDisperso_html.html&lt;/a&gt;
390
+
391
+ &lt;li class=&quot;file&quot;&gt;&lt;a href=&quot;./doc/doc/created_rid_html.html&quot;&gt;created_rid.html&lt;/a&gt;
392
+
393
+ &lt;li class=&quot;file&quot;&gt;&lt;a href=&quot;./doc/doc/doc/Densa_html_html_html.html&quot;&gt;Densa_html_html.html&lt;/a&gt;
394
+
395
+ &lt;li class=&quot;file&quot;&gt;&lt;a href=&quot;./doc/doc/doc/Dispersa_html_html_html.html&quot;&gt;Dispersa_html_html.html&lt;/a&gt;
396
+
397
+ &lt;li class=&quot;file&quot;&gt;&lt;a href=&quot;./doc/doc/doc/Fraccion_html_html_html.html&quot;&gt;Fraccion_html_html.html&lt;/a&gt;
398
+
399
+ &lt;li class=&quot;file&quot;&gt;&lt;a href=&quot;./doc/doc/doc/Matriz_html_html_html.html&quot;&gt;Matriz_html_html.html&lt;/a&gt;
400
+
401
+ &lt;li class=&quot;file&quot;&gt;&lt;a href=&quot;./doc/doc/doc/Object_html_html_html.html&quot;&gt;Object_html_html.html&lt;/a&gt;
402
+
403
+ &lt;li class=&quot;file&quot;&gt;&lt;a href=&quot;./doc/doc/doc/P10lppt13_html_html_html.html&quot;&gt;P10lppt13_html_html.html&lt;/a&gt;
404
+
405
+ &lt;li class=&quot;file&quot;&gt;&lt;a href=&quot;./doc/doc/doc/VectorDisperso_html_html_html.html&quot;&gt;VectorDisperso_html_html.html&lt;/a&gt;
406
+
407
+ &lt;li class=&quot;file&quot;&gt;&lt;a href=&quot;./doc/doc/doc/created_rid_html_html.html&quot;&gt;created_rid_html.html&lt;/a&gt;
408
+
409
+ &lt;li class=&quot;file&quot;&gt;&lt;a href=&quot;./doc/doc/doc/doc/created_rid_html_html_html.html&quot;&gt;created_rid_html_html.html&lt;/a&gt;
410
+
411
+ &lt;li class=&quot;file&quot;&gt;&lt;a href=&quot;./doc/doc/doc/fraccion_rb~_html_html_html.html&quot;&gt;fraccion_rb~_html_html.html&lt;/a&gt;
412
+
413
+ &lt;li class=&quot;file&quot;&gt;&lt;a href=&quot;./doc/doc/doc/index_html_html_html.html&quot;&gt;index_html_html.html&lt;/a&gt;
414
+
415
+ &lt;li class=&quot;file&quot;&gt;&lt;a href=&quot;./doc/doc/doc/js/darkfish_js_html_html.html&quot;&gt;darkfish_js_html.html&lt;/a&gt;
416
+
417
+ &lt;li class=&quot;file&quot;&gt;&lt;a href=&quot;./doc/doc/doc/js/jquery_js_html_html.html&quot;&gt;jquery_js_html.html&lt;/a&gt;
418
+
419
+ &lt;li class=&quot;file&quot;&gt;&lt;a href=&quot;./doc/doc/doc/js/navigation_js_html_html.html&quot;&gt;navigation_js_html.html&lt;/a&gt;
420
+
421
+ &lt;li class=&quot;file&quot;&gt;&lt;a href=&quot;./doc/doc/doc/js/search_index_js_html_html.html&quot;&gt;search_index_js_html.html&lt;/a&gt;
422
+
423
+ &lt;li class=&quot;file&quot;&gt;&lt;a href=&quot;./doc/doc/doc/js/search_js_html_html.html&quot;&gt;search_js_html.html&lt;/a&gt;
424
+
425
+ &lt;li class=&quot;file&quot;&gt;&lt;a href=&quot;./doc/doc/doc/js/searcher_js_html_html.html&quot;&gt;searcher_js_html.html&lt;/a&gt;
426
+
427
+ &lt;li class=&quot;file&quot;&gt;&lt;a href=&quot;./doc/doc/doc/rdoc_css_html_html.html&quot;&gt;rdoc_css_html.html&lt;/a&gt;
428
+
429
+ &lt;li class=&quot;file&quot;&gt;&lt;a href=&quot;./doc/doc/doc/table_of_contents_html_html_html.html&quot;&gt;table_of_contents_html_html.html&lt;/a&gt;
430
+
431
+ &lt;li class=&quot;file&quot;&gt;&lt;a href=&quot;./doc/doc/fraccion_rb~_html_html.html&quot;&gt;fraccion_rb~_html.html&lt;/a&gt;
432
+
433
+ &lt;li class=&quot;file&quot;&gt;&lt;a href=&quot;./doc/doc/index_html_html.html&quot;&gt;index_html.html&lt;/a&gt;
434
+
435
+ &lt;li class=&quot;file&quot;&gt;&lt;a href=&quot;./doc/doc/js/darkfish_js_html.html&quot;&gt;darkfish_js.html&lt;/a&gt;
436
+
437
+ &lt;li class=&quot;file&quot;&gt;&lt;a href=&quot;./doc/doc/js/jquery_js_html.html&quot;&gt;jquery_js.html&lt;/a&gt;
438
+
439
+ &lt;li class=&quot;file&quot;&gt;&lt;a href=&quot;./doc/doc/js/navigation_js_html.html&quot;&gt;navigation_js.html&lt;/a&gt;
440
+
441
+ &lt;li class=&quot;file&quot;&gt;&lt;a href=&quot;./doc/doc/js/search_index_js_html.html&quot;&gt;search_index_js.html&lt;/a&gt;
442
+
443
+ &lt;li class=&quot;file&quot;&gt;&lt;a href=&quot;./doc/doc/js/search_js_html.html&quot;&gt;search_js.html&lt;/a&gt;
444
+
445
+ &lt;li class=&quot;file&quot;&gt;&lt;a href=&quot;./doc/doc/js/searcher_js_html.html&quot;&gt;searcher_js.html&lt;/a&gt;
446
+
447
+ &lt;li class=&quot;file&quot;&gt;&lt;a href=&quot;./doc/doc/p10lppt13_rb~_html_html.html&quot;&gt;p10lppt13_rb~_html.html&lt;/a&gt;
448
+
449
+ &lt;li class=&quot;file&quot;&gt;&lt;a href=&quot;./doc/doc/rdoc_css_html.html&quot;&gt;rdoc_css.html&lt;/a&gt;
450
+
451
+ &lt;li class=&quot;file&quot;&gt;&lt;a href=&quot;./doc/doc/table_of_contents_html_html.html&quot;&gt;table_of_contents_html.html&lt;/a&gt;
452
+
453
+ &lt;li class=&quot;file&quot;&gt;&lt;a href=&quot;./doc/fraccion_rb~_html.html&quot;&gt;fraccion_rb~.html&lt;/a&gt;
454
+
455
+ &lt;li class=&quot;file&quot;&gt;&lt;a href=&quot;./doc/index_html.html&quot;&gt;index.html&lt;/a&gt;
456
+
457
+ &lt;li class=&quot;file&quot;&gt;&lt;a href=&quot;./doc/js/darkfish_js.html&quot;&gt;darkfish.js&lt;/a&gt;
458
+
459
+ &lt;li class=&quot;file&quot;&gt;&lt;a href=&quot;./doc/js/jquery_js.html&quot;&gt;jquery.js&lt;/a&gt;
460
+
461
+ &lt;li class=&quot;file&quot;&gt;&lt;a href=&quot;./doc/js/navigation_js.html&quot;&gt;navigation.js&lt;/a&gt;
462
+
463
+ &lt;li class=&quot;file&quot;&gt;&lt;a href=&quot;./doc/js/search_js.html&quot;&gt;search.js&lt;/a&gt;
464
+
465
+ &lt;li class=&quot;file&quot;&gt;&lt;a href=&quot;./doc/js/search_index_js.html&quot;&gt;search_index.js&lt;/a&gt;
466
+
467
+ &lt;li class=&quot;file&quot;&gt;&lt;a href=&quot;./doc/js/searcher_js.html&quot;&gt;searcher.js&lt;/a&gt;
468
+
469
+ &lt;li class=&quot;file&quot;&gt;&lt;a href=&quot;./doc/p10lppt13_rb~_html.html&quot;&gt;p10lppt13_rb~.html&lt;/a&gt;
470
+
471
+ &lt;li class=&quot;file&quot;&gt;&lt;a href=&quot;./doc/rdoc_css.html&quot;&gt;rdoc.css&lt;/a&gt;
472
+
473
+ &lt;li class=&quot;file&quot;&gt;&lt;a href=&quot;./doc/table_of_contents_html.html&quot;&gt;table_of_contents.html&lt;/a&gt;
474
+
475
+ &lt;li class=&quot;file&quot;&gt;&lt;a href=&quot;./fraccion_rb~.html&quot;&gt;fraccion.rb~&lt;/a&gt;
476
+
477
+ &lt;li class=&quot;file&quot;&gt;&lt;a href=&quot;./p10lppt13_rb~.html&quot;&gt;p10lppt13.rb~&lt;/a&gt;
478
+
479
+ &lt;/ul&gt;</pre>
480
+
481
+ <p>&lt;/nav&gt;</p>
482
+
483
+ <pre> &lt;nav id=&quot;classindex-section&quot; class=&quot;section project-section&quot;&gt;
484
+ &lt;h3 class=&quot;section-header&quot;&gt;Class and Module Index&lt;/h3&gt;
485
+
486
+ &lt;ul class=&quot;link-list&quot;&gt;
487
+
488
+ &lt;li&gt;&lt;a href=&quot;./Densa.html&quot;&gt;Densa&lt;/a&gt;
489
+
490
+ &lt;li&gt;&lt;a href=&quot;./Dispersa.html&quot;&gt;Dispersa&lt;/a&gt;
491
+
492
+ &lt;li&gt;&lt;a href=&quot;./Fraccion.html&quot;&gt;Fraccion&lt;/a&gt;
493
+
494
+ &lt;li&gt;&lt;a href=&quot;./Matriz.html&quot;&gt;Matriz&lt;/a&gt;
495
+
496
+ &lt;li&gt;&lt;a href=&quot;./Object.html&quot;&gt;Object&lt;/a&gt;
497
+
498
+ &lt;li&gt;&lt;a href=&quot;./P10lppt13.html&quot;&gt;P10lppt13&lt;/a&gt;
499
+
500
+ &lt;li&gt;&lt;a href=&quot;./VectorDisperso.html&quot;&gt;VectorDisperso&lt;/a&gt;
501
+
502
+ &lt;/ul&gt;</pre>
503
+
504
+ <p>&lt;/nav&gt;</p>
505
+
506
+ <pre>&lt;/div&gt;</pre>
507
+
508
+ <p>&lt;/nav&gt;</p>
509
+
510
+ <p>&lt;div id=“documentation”&gt;</p>
511
+
512
+ <pre class="ruby"><span class="ruby-operator">&lt;</span><span class="ruby-identifier">h1</span> <span class="ruby-identifier">class</span>=<span class="ruby-string">&quot;class&quot;</span><span class="ruby-operator">&gt;</span><span class="ruby-keyword">class</span> <span class="ruby-constant">Matriz</span><span class="ruby-operator">&lt;</span><span class="ruby-regexp">/h1&gt;
513
+
514
+ &lt;div id=&quot;description&quot; class=&quot;description&quot;&gt;
515
+ </span></pre>
516
+
517
+ <p>&lt;p&gt;Clase base &lt;a href=“Matriz.html”&gt;Matriz&lt;/a&gt;, que
518
+ guarda el numero de filas y columnas&lt;/p&gt;</p>
519
+
520
+ <pre>&lt;/div&gt;&lt;!-- description --&gt;
521
+
522
+ &lt;section id=&quot;5Buntitled-5D&quot; class=&quot;documentation-section&quot;&gt;
523
+
524
+ &lt;!-- Attributes --&gt;
525
+ &lt;section id=&quot;attribute-method-details&quot; class=&quot;method-section section&quot;&gt;
526
+ &lt;h3 class=&quot;section-header&quot;&gt;Attributes&lt;/h3&gt;
527
+
528
+ &lt;div id=&quot;attribute-i-ncol&quot; class=&quot;method-detail&quot;&gt;
529
+ &lt;div class=&quot;method-heading attribute-method-heading&quot;&gt;
530
+ &lt;span class=&quot;method-name&quot;&gt;ncol&lt;/span&gt;&lt;span
531
+ class=&quot;attribute-access-type&quot;&gt;[R]&lt;/span&gt;
532
+ &lt;/div&gt;
533
+
534
+ &lt;div class=&quot;method-description&quot;&gt;
535
+
536
+ &lt;p&gt;Variable que almacena el numero de columnas de la matriz&lt;/p&gt;
537
+
538
+ &lt;/div&gt;
539
+ &lt;/div&gt;
540
+
541
+ &lt;div id=&quot;attribute-i-nfil&quot; class=&quot;method-detail&quot;&gt;
542
+ &lt;div class=&quot;method-heading attribute-method-heading&quot;&gt;
543
+ &lt;span class=&quot;method-name&quot;&gt;nfil&lt;/span&gt;&lt;span
544
+ class=&quot;attribute-access-type&quot;&gt;[R]&lt;/span&gt;
545
+ &lt;/div&gt;
546
+
547
+ &lt;div class=&quot;method-description&quot;&gt;
548
+
549
+ &lt;p&gt;Variable que almacena el numero de filas de la matriz&lt;/p&gt;
550
+
551
+ &lt;/div&gt;
552
+ &lt;/div&gt;
553
+
554
+ &lt;/section&gt;&lt;!-- attribute-method-details --&gt;
555
+
556
+ &lt;!-- Methods --&gt;
557
+
558
+ &lt;section id=&quot;public-class-5Buntitled-5D-method-details&quot; class=&quot;method-section section&quot;&gt;
559
+ &lt;h3 class=&quot;section-header&quot;&gt;Public Class Methods&lt;/h3&gt;
560
+
561
+ &lt;div id=&quot;method-c-new&quot; class=&quot;method-detail &quot;&gt;
562
+
563
+ &lt;div class=&quot;method-heading&quot;&gt;
564
+ &lt;span class=&quot;method-name&quot;&gt;new&lt;/span&gt;&lt;span
565
+ class=&quot;method-args&quot;&gt;(nfil, ncol)&lt;/span&gt;
566
+
567
+ &lt;span class=&quot;method-click-advice&quot;&gt;click to toggle source&lt;/span&gt;
568
+
569
+ &lt;/div&gt;
570
+
571
+ &lt;div class=&quot;method-description&quot;&gt;
572
+
573
+ &lt;p&gt;Metodo initilize de la clase base&lt;/p&gt;
574
+
575
+ &lt;div class=&quot;method-source-code&quot; id=&quot;new-source&quot;&gt;
576
+ &lt;pre&gt;&lt;span class=&quot;ruby-comment&quot;&gt;# File p10lppt13.rb, line 12&lt;/span&gt;</pre>
577
+
578
+ <p>&lt;span class=“ruby-keyword”&gt;def&lt;/span&gt; &lt;span
579
+ class=“ruby-identifier”&gt;initialize&lt;/span&gt;(&lt;span
580
+ class=“ruby-identifier”&gt;nfil&lt;/span&gt;, &lt;span
581
+ class=“ruby-identifier”&gt;ncol&lt;/span&gt;)</p>
582
+
583
+ <pre>&lt;span class=&quot;ruby-ivar&quot;&gt;@nfil&lt;/span&gt; = &lt;span class=&quot;ruby-identifier&quot;&gt;nfil&lt;/span&gt;
584
+ &lt;span class=&quot;ruby-ivar&quot;&gt;@ncol&lt;/span&gt; = &lt;span class=&quot;ruby-identifier&quot;&gt;ncol&lt;/span&gt;</pre>
585
+
586
+ <p>&lt;span class=“ruby-keyword”&gt;end&lt;/span&gt;&lt;/pre&gt;</p>
587
+
588
+ <pre> &lt;/div&gt;&lt;!-- new-source --&gt;
589
+
590
+ &lt;/div&gt;
591
+
592
+ &lt;/div&gt;&lt;!-- new-method --&gt;
593
+
594
+ &lt;/section&gt;&lt;!-- public-class-method-details --&gt;
595
+
596
+ &lt;section id=&quot;public-instance-5Buntitled-5D-method-details&quot; class=&quot;method-section section&quot;&gt;
597
+ &lt;h3 class=&quot;section-header&quot;&gt;Public Instance Methods&lt;/h3&gt;
598
+
599
+ &lt;div id=&quot;method-i-2A&quot; class=&quot;method-detail &quot;&gt;
600
+
601
+ &lt;div class=&quot;method-heading&quot;&gt;
602
+ &lt;span class=&quot;method-name&quot;&gt;*&lt;/span&gt;&lt;span
603
+ class=&quot;method-args&quot;&gt;(other)&lt;/span&gt;
604
+
605
+ &lt;span class=&quot;method-click-advice&quot;&gt;click to toggle source&lt;/span&gt;
606
+
607
+ &lt;/div&gt;
608
+
609
+ &lt;div class=&quot;method-description&quot;&gt;
610
+
611
+ &lt;p&gt;Metodo para multiplicar una matriz por un escalar&lt;/p&gt;
612
+
613
+ &lt;div class=&quot;method-source-code&quot; id=&quot;2A-source&quot;&gt;
614
+ &lt;pre&gt;&lt;span class=&quot;ruby-comment&quot;&gt;# File p10lppt13.rb, line 184&lt;/span&gt;</pre>
615
+
616
+ <p>&lt;span class=“ruby-keyword”&gt;def&lt;/span&gt; &lt;span
617
+ class=“ruby-operator”&gt;*&lt;/span&gt;(&lt;span
618
+ class=“ruby-identifier”&gt;other&lt;/span&gt;)</p>
619
+
620
+ <pre>&lt;span class=&quot;ruby-identifier&quot;&gt;elemento&lt;/span&gt; = &lt;span class=&quot;ruby-constant&quot;&gt;Array&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;new&lt;/span&gt;(&lt;span class=&quot;ruby-value&quot;&gt;0&lt;/span&gt;)
621
+ &lt;span class=&quot;ruby-ivar&quot;&gt;@nfil&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;times&lt;/span&gt; &lt;span class=&quot;ruby-keyword&quot;&gt;do&lt;/span&gt; &lt;span class=&quot;ruby-operator&quot;&gt;|&lt;/span&gt;&lt;span class=&quot;ruby-identifier&quot;&gt;i&lt;/span&gt;&lt;span class=&quot;ruby-operator&quot;&gt;|&lt;/span&gt;
622
+ &lt;span class=&quot;ruby-identifier&quot;&gt;fila&lt;/span&gt; = &lt;span class=&quot;ruby-constant&quot;&gt;Array&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;new&lt;/span&gt;(&lt;span class=&quot;ruby-value&quot;&gt;0&lt;/span&gt;)
623
+ &lt;span class=&quot;ruby-ivar&quot;&gt;@ncol&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;times&lt;/span&gt; &lt;span class=&quot;ruby-keyword&quot;&gt;do&lt;/span&gt; &lt;span class=&quot;ruby-operator&quot;&gt;|&lt;/span&gt;&lt;span class=&quot;ruby-identifier&quot;&gt;j&lt;/span&gt;&lt;span class=&quot;ruby-operator&quot;&gt;|&lt;/span&gt;
624
+ &lt;span class=&quot;ruby-keyword&quot;&gt;if&lt;/span&gt; (&lt;span class=&quot;ruby-identifier&quot;&gt;pos&lt;/span&gt;[&lt;span class=&quot;ruby-identifier&quot;&gt;i&lt;/span&gt;][&lt;span class=&quot;ruby-identifier&quot;&gt;j&lt;/span&gt;] &lt;span class=&quot;ruby-operator&quot;&gt;!=&lt;/span&gt; &lt;span class=&quot;ruby-keyword&quot;&gt;nil&lt;/span&gt;)
625
+ &lt;span class=&quot;ruby-identifier&quot;&gt;fila&lt;/span&gt; &lt;span class=&quot;ruby-operator&quot;&gt;&amp;lt;&amp;lt;&lt;/span&gt; &lt;span class=&quot;ruby-identifier&quot;&gt;pos&lt;/span&gt;[&lt;span class=&quot;ruby-identifier&quot;&gt;i&lt;/span&gt;][&lt;span class=&quot;ruby-identifier&quot;&gt;j&lt;/span&gt;]&lt;span class=&quot;ruby-operator&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;ruby-identifier&quot;&gt;other&lt;/span&gt;
626
+ &lt;span class=&quot;ruby-keyword&quot;&gt;else&lt;/span&gt;
627
+ &lt;span class=&quot;ruby-identifier&quot;&gt;fila&lt;/span&gt; &lt;span class=&quot;ruby-operator&quot;&gt;&amp;lt;&amp;lt;&lt;/span&gt; &lt;span class=&quot;ruby-identifier&quot;&gt;pos&lt;/span&gt;[&lt;span class=&quot;ruby-identifier&quot;&gt;i&lt;/span&gt;][&lt;span class=&quot;ruby-identifier&quot;&gt;j&lt;/span&gt;]
628
+ &lt;span class=&quot;ruby-keyword&quot;&gt;end&lt;/span&gt;
629
+ &lt;span class=&quot;ruby-keyword&quot;&gt;end&lt;/span&gt;
630
+ &lt;span class=&quot;ruby-identifier&quot;&gt;elemento&lt;/span&gt; &lt;span class=&quot;ruby-operator&quot;&gt;&amp;lt;&amp;lt;&lt;/span&gt; &lt;span class=&quot;ruby-identifier&quot;&gt;fila&lt;/span&gt;
631
+ &lt;span class=&quot;ruby-keyword&quot;&gt;end&lt;/span&gt;
632
+ &lt;span class=&quot;ruby-constant&quot;&gt;Densa&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;new&lt;/span&gt;(&lt;span class=&quot;ruby-ivar&quot;&gt;@nfil&lt;/span&gt;, &lt;span class=&quot;ruby-ivar&quot;&gt;@ncol&lt;/span&gt;, &lt;span class=&quot;ruby-identifier&quot;&gt;elemento&lt;/span&gt;)</pre>
633
+
634
+ <p>&lt;span class=“ruby-keyword”&gt;end&lt;/span&gt;&lt;/pre&gt;</p>
635
+
636
+ <pre> &lt;/div&gt;&lt;!-- 2A-source --&gt;
637
+
638
+ &lt;/div&gt;
639
+
640
+ &lt;/div&gt;&lt;!-- 2A-method --&gt;
641
+
642
+ &lt;div id=&quot;method-i-2B&quot; class=&quot;method-detail &quot;&gt;
643
+
644
+ &lt;div class=&quot;method-heading&quot;&gt;
645
+ &lt;span class=&quot;method-name&quot;&gt;+&lt;/span&gt;&lt;span
646
+ class=&quot;method-args&quot;&gt;(other)&lt;/span&gt;
647
+
648
+ &lt;span class=&quot;method-click-advice&quot;&gt;click to toggle source&lt;/span&gt;
649
+
650
+ &lt;/div&gt;
651
+
652
+ &lt;div class=&quot;method-description&quot;&gt;
653
+
654
+ &lt;p&gt;Metodo para sumar dos matrices (si tienen la misma dimension)&lt;/p&gt;
655
+
656
+ &lt;div class=&quot;method-source-code&quot; id=&quot;2B-source&quot;&gt;
657
+ &lt;pre&gt;&lt;span class=&quot;ruby-comment&quot;&gt;# File p10lppt13.rb, line 40&lt;/span&gt;</pre>
658
+
659
+ <p>&lt;span class=“ruby-keyword”&gt;def&lt;/span&gt; &lt;span
660
+ class=“ruby-operator”&gt;+&lt;/span&gt;(&lt;span
661
+ class=“ruby-identifier”&gt;other&lt;/span&gt;)</p>
662
+
663
+ <pre>&lt;span class=&quot;ruby-comment&quot;&gt;# Primero se comprueba si se pueden sumar (si tienen la misma dimension)&lt;/span&gt;
664
+ &lt;span class=&quot;ruby-keyword&quot;&gt;if&lt;/span&gt; ((&lt;span class=&quot;ruby-ivar&quot;&gt;@nfil&lt;/span&gt; &lt;span class=&quot;ruby-operator&quot;&gt;!=&lt;/span&gt; &lt;span class=&quot;ruby-identifier&quot;&gt;other&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;nfil&lt;/span&gt;) &lt;span class=&quot;ruby-operator&quot;&gt;||&lt;/span&gt; (&lt;span class=&quot;ruby-ivar&quot;&gt;@ncol&lt;/span&gt; &lt;span class=&quot;ruby-operator&quot;&gt;!=&lt;/span&gt; &lt;span class=&quot;ruby-identifier&quot;&gt;other&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;ncol&lt;/span&gt;))
665
+ &lt;span class=&quot;ruby-identifier&quot;&gt;puts&lt;/span&gt; &lt;span class=&quot;ruby-string&quot;&gt;&amp;quot;No se pueden sumar las matrices&amp;quot;&lt;/span&gt;
666
+ &lt;span class=&quot;ruby-keyword&quot;&gt;else&lt;/span&gt;
667
+ &lt;span class=&quot;ruby-identifier&quot;&gt;elemento&lt;/span&gt; = &lt;span class=&quot;ruby-constant&quot;&gt;Array&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;new&lt;/span&gt;(&lt;span class=&quot;ruby-value&quot;&gt;0&lt;/span&gt;)
668
+ &lt;span class=&quot;ruby-ivar&quot;&gt;@nfil&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;times&lt;/span&gt; &lt;span class=&quot;ruby-keyword&quot;&gt;do&lt;/span&gt; &lt;span class=&quot;ruby-operator&quot;&gt;|&lt;/span&gt;&lt;span class=&quot;ruby-identifier&quot;&gt;i&lt;/span&gt;&lt;span class=&quot;ruby-operator&quot;&gt;|&lt;/span&gt;
669
+ &lt;span class=&quot;ruby-identifier&quot;&gt;fila&lt;/span&gt; = &lt;span class=&quot;ruby-constant&quot;&gt;Array&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;new&lt;/span&gt;(&lt;span class=&quot;ruby-value&quot;&gt;0&lt;/span&gt;)
670
+ &lt;span class=&quot;ruby-ivar&quot;&gt;@ncol&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;times&lt;/span&gt; &lt;span class=&quot;ruby-keyword&quot;&gt;do&lt;/span&gt; &lt;span class=&quot;ruby-operator&quot;&gt;|&lt;/span&gt;&lt;span class=&quot;ruby-identifier&quot;&gt;j&lt;/span&gt;&lt;span class=&quot;ruby-operator&quot;&gt;|&lt;/span&gt;
671
+ &lt;span class=&quot;ruby-keyword&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;ruby-keyword&quot;&gt;self&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;pos&lt;/span&gt;[&lt;span class=&quot;ruby-identifier&quot;&gt;i&lt;/span&gt;][&lt;span class=&quot;ruby-identifier&quot;&gt;j&lt;/span&gt;] &lt;span class=&quot;ruby-operator&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;ruby-keyword&quot;&gt;nil&lt;/span&gt; &lt;span class=&quot;ruby-operator&quot;&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class=&quot;ruby-identifier&quot;&gt;other&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;pos&lt;/span&gt;[&lt;span class=&quot;ruby-identifier&quot;&gt;i&lt;/span&gt;][&lt;span class=&quot;ruby-identifier&quot;&gt;j&lt;/span&gt;] &lt;span class=&quot;ruby-operator&quot;&gt;!=&lt;/span&gt; &lt;span class=&quot;ruby-keyword&quot;&gt;nil&lt;/span&gt;
672
+ &lt;span class=&quot;ruby-identifier&quot;&gt;fila&lt;/span&gt; &lt;span class=&quot;ruby-operator&quot;&gt;&amp;lt;&amp;lt;&lt;/span&gt; &lt;span class=&quot;ruby-identifier&quot;&gt;other&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;pos&lt;/span&gt;[&lt;span class=&quot;ruby-identifier&quot;&gt;i&lt;/span&gt;][&lt;span class=&quot;ruby-identifier&quot;&gt;j&lt;/span&gt;]
673
+ &lt;span class=&quot;ruby-keyword&quot;&gt;elsif&lt;/span&gt; &lt;span class=&quot;ruby-keyword&quot;&gt;self&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;pos&lt;/span&gt;[&lt;span class=&quot;ruby-identifier&quot;&gt;i&lt;/span&gt;][&lt;span class=&quot;ruby-identifier&quot;&gt;j&lt;/span&gt;] &lt;span class=&quot;ruby-operator&quot;&gt;!=&lt;/span&gt; &lt;span class=&quot;ruby-keyword&quot;&gt;nil&lt;/span&gt; &lt;span class=&quot;ruby-operator&quot;&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class=&quot;ruby-identifier&quot;&gt;other&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;pos&lt;/span&gt;[&lt;span class=&quot;ruby-identifier&quot;&gt;i&lt;/span&gt;][&lt;span class=&quot;ruby-identifier&quot;&gt;j&lt;/span&gt;] &lt;span class=&quot;ruby-operator&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;ruby-keyword&quot;&gt;nil&lt;/span&gt;
674
+ &lt;span class=&quot;ruby-identifier&quot;&gt;fila&lt;/span&gt; &lt;span class=&quot;ruby-operator&quot;&gt;&amp;lt;&amp;lt;&lt;/span&gt; &lt;span class=&quot;ruby-identifier&quot;&gt;pos&lt;/span&gt;[&lt;span class=&quot;ruby-identifier&quot;&gt;i&lt;/span&gt;][&lt;span class=&quot;ruby-identifier&quot;&gt;j&lt;/span&gt;]
675
+ &lt;span class=&quot;ruby-keyword&quot;&gt;elsif&lt;/span&gt; &lt;span class=&quot;ruby-keyword&quot;&gt;self&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;pos&lt;/span&gt;[&lt;span class=&quot;ruby-identifier&quot;&gt;i&lt;/span&gt;][&lt;span class=&quot;ruby-identifier&quot;&gt;j&lt;/span&gt;] &lt;span class=&quot;ruby-operator&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;ruby-keyword&quot;&gt;nil&lt;/span&gt; &lt;span class=&quot;ruby-operator&quot;&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class=&quot;ruby-identifier&quot;&gt;other&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;pos&lt;/span&gt;[&lt;span class=&quot;ruby-identifier&quot;&gt;i&lt;/span&gt;][&lt;span class=&quot;ruby-identifier&quot;&gt;j&lt;/span&gt;] &lt;span class=&quot;ruby-operator&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;ruby-keyword&quot;&gt;nil&lt;/span&gt;
676
+ &lt;span class=&quot;ruby-identifier&quot;&gt;fila&lt;/span&gt; &lt;span class=&quot;ruby-operator&quot;&gt;&amp;lt;&amp;lt;&lt;/span&gt; &lt;span class=&quot;ruby-value&quot;&gt;0&lt;/span&gt;
677
+ &lt;span class=&quot;ruby-keyword&quot;&gt;else&lt;/span&gt;
678
+ &lt;span class=&quot;ruby-identifier&quot;&gt;fila&lt;/span&gt; &lt;span class=&quot;ruby-operator&quot;&gt;&amp;lt;&amp;lt;&lt;/span&gt; &lt;span class=&quot;ruby-identifier&quot;&gt;pos&lt;/span&gt;[&lt;span class=&quot;ruby-identifier&quot;&gt;i&lt;/span&gt;][&lt;span class=&quot;ruby-identifier&quot;&gt;j&lt;/span&gt;] &lt;span class=&quot;ruby-operator&quot;&gt;+&lt;/span&gt; &lt;span class=&quot;ruby-identifier&quot;&gt;other&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;pos&lt;/span&gt;[&lt;span class=&quot;ruby-identifier&quot;&gt;i&lt;/span&gt;][&lt;span class=&quot;ruby-identifier&quot;&gt;j&lt;/span&gt;]
679
+ &lt;span class=&quot;ruby-keyword&quot;&gt;end&lt;/span&gt;
680
+ &lt;span class=&quot;ruby-keyword&quot;&gt;end&lt;/span&gt;
681
+ &lt;span class=&quot;ruby-identifier&quot;&gt;elemento&lt;/span&gt; &lt;span class=&quot;ruby-operator&quot;&gt;&amp;lt;&amp;lt;&lt;/span&gt; &lt;span class=&quot;ruby-identifier&quot;&gt;fila&lt;/span&gt;
682
+ &lt;span class=&quot;ruby-keyword&quot;&gt;end&lt;/span&gt;
683
+ &lt;span class=&quot;ruby-constant&quot;&gt;Densa&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;new&lt;/span&gt;(&lt;span class=&quot;ruby-ivar&quot;&gt;@nfil&lt;/span&gt;, &lt;span class=&quot;ruby-ivar&quot;&gt;@ncol&lt;/span&gt;, &lt;span class=&quot;ruby-identifier&quot;&gt;elemento&lt;/span&gt;)
684
+ &lt;span class=&quot;ruby-keyword&quot;&gt;end&lt;/span&gt;</pre>
685
+
686
+ <p>&lt;span class=“ruby-keyword”&gt;end&lt;/span&gt;&lt;/pre&gt;</p>
687
+
688
+ <pre> &lt;/div&gt;&lt;!-- 2B-source --&gt;
689
+
690
+ &lt;/div&gt;
691
+
692
+ &lt;/div&gt;&lt;!-- 2B-method --&gt;
693
+
694
+ &lt;div id=&quot;method-i-2D&quot; class=&quot;method-detail &quot;&gt;
695
+
696
+ &lt;div class=&quot;method-heading&quot;&gt;
697
+ &lt;span class=&quot;method-name&quot;&gt;-&lt;/span&gt;&lt;span
698
+ class=&quot;method-args&quot;&gt;(other)&lt;/span&gt;
699
+
700
+ &lt;span class=&quot;method-click-advice&quot;&gt;click to toggle source&lt;/span&gt;
701
+
702
+ &lt;/div&gt;
703
+
704
+ &lt;div class=&quot;method-description&quot;&gt;
705
+
706
+ &lt;p&gt;Metodo para restar dos matrices (si tienen la misma dimension)&lt;/p&gt;
707
+
708
+ &lt;div class=&quot;method-source-code&quot; id=&quot;2D-source&quot;&gt;
709
+ &lt;pre&gt;&lt;span class=&quot;ruby-comment&quot;&gt;# File p10lppt13.rb, line 66&lt;/span&gt;</pre>
710
+
711
+ <p>&lt;span class=“ruby-keyword”&gt;def&lt;/span&gt; &lt;span
712
+ class=“ruby-operator”&gt;-&lt;/span&gt;(&lt;span
713
+ class=“ruby-identifier”&gt;other&lt;/span&gt;)</p>
714
+
715
+ <pre>&lt;span class=&quot;ruby-comment&quot;&gt;# Primero se comprueba si se pueden restar (si tienen la misma dimension)&lt;/span&gt;
716
+ &lt;span class=&quot;ruby-keyword&quot;&gt;if&lt;/span&gt; ((&lt;span class=&quot;ruby-ivar&quot;&gt;@nfil&lt;/span&gt; &lt;span class=&quot;ruby-operator&quot;&gt;!=&lt;/span&gt; &lt;span class=&quot;ruby-identifier&quot;&gt;other&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;nfil&lt;/span&gt;) &lt;span class=&quot;ruby-operator&quot;&gt;||&lt;/span&gt; (&lt;span class=&quot;ruby-ivar&quot;&gt;@ncol&lt;/span&gt; &lt;span class=&quot;ruby-operator&quot;&gt;!=&lt;/span&gt; &lt;span class=&quot;ruby-identifier&quot;&gt;other&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;ncol&lt;/span&gt;))
717
+ &lt;span class=&quot;ruby-identifier&quot;&gt;puts&lt;/span&gt; &lt;span class=&quot;ruby-string&quot;&gt;&amp;quot;No se pueden restar las matrices&amp;quot;&lt;/span&gt;
718
+ &lt;span class=&quot;ruby-keyword&quot;&gt;else&lt;/span&gt;
719
+ &lt;span class=&quot;ruby-identifier&quot;&gt;elemento&lt;/span&gt; = &lt;span class=&quot;ruby-constant&quot;&gt;Array&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;new&lt;/span&gt;(&lt;span class=&quot;ruby-value&quot;&gt;0&lt;/span&gt;)
720
+ &lt;span class=&quot;ruby-ivar&quot;&gt;@nfil&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;times&lt;/span&gt; &lt;span class=&quot;ruby-keyword&quot;&gt;do&lt;/span&gt; &lt;span class=&quot;ruby-operator&quot;&gt;|&lt;/span&gt;&lt;span class=&quot;ruby-identifier&quot;&gt;i&lt;/span&gt;&lt;span class=&quot;ruby-operator&quot;&gt;|&lt;/span&gt;
721
+ &lt;span class=&quot;ruby-identifier&quot;&gt;fila&lt;/span&gt; = &lt;span class=&quot;ruby-constant&quot;&gt;Array&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;new&lt;/span&gt;(&lt;span class=&quot;ruby-value&quot;&gt;0&lt;/span&gt;)
722
+ &lt;span class=&quot;ruby-ivar&quot;&gt;@ncol&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;times&lt;/span&gt; &lt;span class=&quot;ruby-keyword&quot;&gt;do&lt;/span&gt; &lt;span class=&quot;ruby-operator&quot;&gt;|&lt;/span&gt;&lt;span class=&quot;ruby-identifier&quot;&gt;j&lt;/span&gt;&lt;span class=&quot;ruby-operator&quot;&gt;|&lt;/span&gt;
723
+ &lt;span class=&quot;ruby-keyword&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;ruby-keyword&quot;&gt;self&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;pos&lt;/span&gt;[&lt;span class=&quot;ruby-identifier&quot;&gt;i&lt;/span&gt;][&lt;span class=&quot;ruby-identifier&quot;&gt;j&lt;/span&gt;] &lt;span class=&quot;ruby-operator&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;ruby-keyword&quot;&gt;nil&lt;/span&gt; &lt;span class=&quot;ruby-operator&quot;&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class=&quot;ruby-identifier&quot;&gt;other&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;pos&lt;/span&gt;[&lt;span class=&quot;ruby-identifier&quot;&gt;i&lt;/span&gt;][&lt;span class=&quot;ruby-identifier&quot;&gt;j&lt;/span&gt;] &lt;span class=&quot;ruby-operator&quot;&gt;!=&lt;/span&gt; &lt;span class=&quot;ruby-keyword&quot;&gt;nil&lt;/span&gt;
724
+ &lt;span class=&quot;ruby-identifier&quot;&gt;fila&lt;/span&gt; &lt;span class=&quot;ruby-operator&quot;&gt;&amp;lt;&amp;lt;&lt;/span&gt; &lt;span class=&quot;ruby-operator&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;ruby-identifier&quot;&gt;other&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;pos&lt;/span&gt;[&lt;span class=&quot;ruby-identifier&quot;&gt;i&lt;/span&gt;][&lt;span class=&quot;ruby-identifier&quot;&gt;j&lt;/span&gt;]
725
+ &lt;span class=&quot;ruby-keyword&quot;&gt;elsif&lt;/span&gt; &lt;span class=&quot;ruby-keyword&quot;&gt;self&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;pos&lt;/span&gt;[&lt;span class=&quot;ruby-identifier&quot;&gt;i&lt;/span&gt;][&lt;span class=&quot;ruby-identifier&quot;&gt;j&lt;/span&gt;] &lt;span class=&quot;ruby-operator&quot;&gt;!=&lt;/span&gt; &lt;span class=&quot;ruby-keyword&quot;&gt;nil&lt;/span&gt; &lt;span class=&quot;ruby-operator&quot;&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class=&quot;ruby-identifier&quot;&gt;other&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;pos&lt;/span&gt;[&lt;span class=&quot;ruby-identifier&quot;&gt;i&lt;/span&gt;][&lt;span class=&quot;ruby-identifier&quot;&gt;j&lt;/span&gt;] &lt;span class=&quot;ruby-operator&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;ruby-keyword&quot;&gt;nil&lt;/span&gt;
726
+ &lt;span class=&quot;ruby-identifier&quot;&gt;fila&lt;/span&gt; &lt;span class=&quot;ruby-operator&quot;&gt;&amp;lt;&amp;lt;&lt;/span&gt; &lt;span class=&quot;ruby-identifier&quot;&gt;pos&lt;/span&gt;[&lt;span class=&quot;ruby-identifier&quot;&gt;i&lt;/span&gt;][&lt;span class=&quot;ruby-identifier&quot;&gt;j&lt;/span&gt;]
727
+ &lt;span class=&quot;ruby-keyword&quot;&gt;elsif&lt;/span&gt; &lt;span class=&quot;ruby-keyword&quot;&gt;self&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;pos&lt;/span&gt;[&lt;span class=&quot;ruby-identifier&quot;&gt;i&lt;/span&gt;][&lt;span class=&quot;ruby-identifier&quot;&gt;j&lt;/span&gt;] &lt;span class=&quot;ruby-operator&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;ruby-keyword&quot;&gt;nil&lt;/span&gt; &lt;span class=&quot;ruby-operator&quot;&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class=&quot;ruby-identifier&quot;&gt;other&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;pos&lt;/span&gt;[&lt;span class=&quot;ruby-identifier&quot;&gt;i&lt;/span&gt;][&lt;span class=&quot;ruby-identifier&quot;&gt;j&lt;/span&gt;] &lt;span class=&quot;ruby-operator&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;ruby-keyword&quot;&gt;nil&lt;/span&gt;
728
+ &lt;span class=&quot;ruby-identifier&quot;&gt;fila&lt;/span&gt; &lt;span class=&quot;ruby-operator&quot;&gt;&amp;lt;&amp;lt;&lt;/span&gt; &lt;span class=&quot;ruby-value&quot;&gt;0&lt;/span&gt;
729
+ &lt;span class=&quot;ruby-keyword&quot;&gt;else&lt;/span&gt;
730
+ &lt;span class=&quot;ruby-identifier&quot;&gt;fila&lt;/span&gt; &lt;span class=&quot;ruby-operator&quot;&gt;&amp;lt;&amp;lt;&lt;/span&gt; &lt;span class=&quot;ruby-identifier&quot;&gt;pos&lt;/span&gt;[&lt;span class=&quot;ruby-identifier&quot;&gt;i&lt;/span&gt;][&lt;span class=&quot;ruby-identifier&quot;&gt;j&lt;/span&gt;] &lt;span class=&quot;ruby-operator&quot;&gt;-&lt;/span&gt; &lt;span class=&quot;ruby-identifier&quot;&gt;other&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;pos&lt;/span&gt;[&lt;span class=&quot;ruby-identifier&quot;&gt;i&lt;/span&gt;][&lt;span class=&quot;ruby-identifier&quot;&gt;j&lt;/span&gt;]
731
+ &lt;span class=&quot;ruby-keyword&quot;&gt;end&lt;/span&gt;
732
+ &lt;span class=&quot;ruby-keyword&quot;&gt;end&lt;/span&gt;
733
+ &lt;span class=&quot;ruby-identifier&quot;&gt;elemento&lt;/span&gt; &lt;span class=&quot;ruby-operator&quot;&gt;&amp;lt;&amp;lt;&lt;/span&gt; &lt;span class=&quot;ruby-identifier&quot;&gt;fila&lt;/span&gt;
734
+ &lt;span class=&quot;ruby-keyword&quot;&gt;end&lt;/span&gt;
735
+ &lt;span class=&quot;ruby-constant&quot;&gt;Densa&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;new&lt;/span&gt;(&lt;span class=&quot;ruby-ivar&quot;&gt;@nfil&lt;/span&gt;, &lt;span class=&quot;ruby-ivar&quot;&gt;@ncol&lt;/span&gt;, &lt;span class=&quot;ruby-identifier&quot;&gt;elemento&lt;/span&gt;)
736
+ &lt;span class=&quot;ruby-keyword&quot;&gt;end&lt;/span&gt;</pre>
737
+
738
+ <p>&lt;span class=“ruby-keyword”&gt;end&lt;/span&gt;&lt;/pre&gt;</p>
739
+
740
+ <pre> &lt;/div&gt;&lt;!-- 2D-source --&gt;
741
+
742
+ &lt;/div&gt;
743
+
744
+ &lt;/div&gt;&lt;!-- 2D-method --&gt;
745
+
746
+ &lt;div id=&quot;method-i-colum&quot; class=&quot;method-detail &quot;&gt;
747
+
748
+ &lt;div class=&quot;method-heading&quot;&gt;
749
+ &lt;span class=&quot;method-name&quot;&gt;colum&lt;/span&gt;&lt;span
750
+ class=&quot;method-args&quot;&gt;()&lt;/span&gt;
751
+
752
+ &lt;span class=&quot;method-click-advice&quot;&gt;click to toggle source&lt;/span&gt;
753
+
754
+ &lt;/div&gt;
755
+
756
+ &lt;div class=&quot;method-description&quot;&gt;
757
+
758
+ &lt;p&gt;Getter de ncol (devuelve el numero de columnas de la matriz)&lt;/p&gt;
759
+
760
+ &lt;div class=&quot;method-source-code&quot; id=&quot;colum-source&quot;&gt;
761
+ &lt;pre&gt;&lt;span class=&quot;ruby-comment&quot;&gt;# File p10lppt13.rb, line 23&lt;/span&gt;</pre>
762
+
763
+ <p>&lt;span class=“ruby-keyword”&gt;def&lt;/span&gt; &lt;span
764
+ class=“ruby-identifier”&gt;colum&lt;/span&gt;</p>
765
+
766
+ <pre>&lt;span class=&quot;ruby-ivar&quot;&gt;@ncol&lt;/span&gt;</pre>
767
+
768
+ <p>&lt;span class=“ruby-keyword”&gt;end&lt;/span&gt;&lt;/pre&gt;</p>
769
+
770
+ <pre> &lt;/div&gt;&lt;!-- colum-source --&gt;
771
+
772
+ &lt;/div&gt;
773
+
774
+ &lt;/div&gt;&lt;!-- colum-method --&gt;
775
+
776
+ &lt;div id=&quot;method-i-filas&quot; class=&quot;method-detail &quot;&gt;
777
+
778
+ &lt;div class=&quot;method-heading&quot;&gt;
779
+ &lt;span class=&quot;method-name&quot;&gt;filas&lt;/span&gt;&lt;span
780
+ class=&quot;method-args&quot;&gt;()&lt;/span&gt;
781
+
782
+ &lt;span class=&quot;method-click-advice&quot;&gt;click to toggle source&lt;/span&gt;
783
+
784
+ &lt;/div&gt;
785
+
786
+ &lt;div class=&quot;method-description&quot;&gt;
787
+
788
+ &lt;p&gt;Getter de nfil (devuelve el numero de filas de la matriz)&lt;/p&gt;
789
+
790
+ &lt;div class=&quot;method-source-code&quot; id=&quot;filas-source&quot;&gt;
791
+ &lt;pre&gt;&lt;span class=&quot;ruby-comment&quot;&gt;# File p10lppt13.rb, line 18&lt;/span&gt;</pre>
792
+
793
+ <p>&lt;span class=“ruby-keyword”&gt;def&lt;/span&gt; &lt;span
794
+ class=“ruby-identifier”&gt;filas&lt;/span&gt;</p>
795
+
796
+ <pre>&lt;span class=&quot;ruby-ivar&quot;&gt;@nfil&lt;/span&gt;</pre>
797
+
798
+ <p>&lt;span class=“ruby-keyword”&gt;end&lt;/span&gt;&lt;/pre&gt;</p>
799
+
800
+ <pre> &lt;/div&gt;&lt;!-- filas-source --&gt;
801
+
802
+ &lt;/div&gt;
803
+
804
+ &lt;/div&gt;&lt;!-- filas-method --&gt;
805
+
806
+ &lt;div id=&quot;method-i-max&quot; class=&quot;method-detail &quot;&gt;
807
+
808
+ &lt;div class=&quot;method-heading&quot;&gt;
809
+ &lt;span class=&quot;method-name&quot;&gt;max&lt;/span&gt;&lt;span
810
+ class=&quot;method-args&quot;&gt;()&lt;/span&gt;
811
+
812
+ &lt;span class=&quot;method-click-advice&quot;&gt;click to toggle source&lt;/span&gt;
813
+
814
+ &lt;/div&gt;
815
+
816
+ &lt;div class=&quot;method-description&quot;&gt;
817
+
818
+ &lt;p&gt;Metodo para hallar el valor maximo de los elementos de una matriz&lt;/p&gt;
819
+
820
+ &lt;div class=&quot;method-source-code&quot; id=&quot;max-source&quot;&gt;
821
+ &lt;pre&gt;&lt;span class=&quot;ruby-comment&quot;&gt;# File p10lppt13.rb, line 103&lt;/span&gt;</pre>
822
+
823
+ <p>&lt;span class=“ruby-keyword”&gt;def&lt;/span&gt; &lt;span
824
+ class=“ruby-identifier”&gt;max&lt;/span&gt;</p>
825
+
826
+ <pre>&lt;span class=&quot;ruby-identifier&quot;&gt;acum&lt;/span&gt; = &lt;span class=&quot;ruby-identifier&quot;&gt;pos&lt;/span&gt;[&lt;span class=&quot;ruby-value&quot;&gt;0&lt;/span&gt;][&lt;span class=&quot;ruby-value&quot;&gt;0&lt;/span&gt;]
827
+ &lt;span class=&quot;ruby-keyword&quot;&gt;for&lt;/span&gt; &lt;span class=&quot;ruby-identifier&quot;&gt;i&lt;/span&gt; &lt;span class=&quot;ruby-keyword&quot;&gt;in&lt;/span&gt; &lt;span class=&quot;ruby-value&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;ruby-operator&quot;&gt;...&lt;/span&gt;&lt;span class=&quot;ruby-identifier&quot;&gt;filas&lt;/span&gt;
828
+ &lt;span class=&quot;ruby-keyword&quot;&gt;for&lt;/span&gt; &lt;span class=&quot;ruby-identifier&quot;&gt;j&lt;/span&gt; &lt;span class=&quot;ruby-keyword&quot;&gt;in&lt;/span&gt; &lt;span class=&quot;ruby-value&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;ruby-operator&quot;&gt;...&lt;/span&gt;&lt;span class=&quot;ruby-identifier&quot;&gt;colum&lt;/span&gt;
829
+ &lt;span class=&quot;ruby-keyword&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;ruby-keyword&quot;&gt;self&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;pos&lt;/span&gt;[&lt;span class=&quot;ruby-identifier&quot;&gt;i&lt;/span&gt;][&lt;span class=&quot;ruby-identifier&quot;&gt;j&lt;/span&gt;] &lt;span class=&quot;ruby-operator&quot;&gt;!=&lt;/span&gt; &lt;span class=&quot;ruby-keyword&quot;&gt;nil&lt;/span&gt;
830
+ &lt;span class=&quot;ruby-keyword&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;ruby-identifier&quot;&gt;pos&lt;/span&gt;[&lt;span class=&quot;ruby-identifier&quot;&gt;i&lt;/span&gt;][&lt;span class=&quot;ruby-identifier&quot;&gt;j&lt;/span&gt;] &lt;span class=&quot;ruby-operator&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;ruby-identifier&quot;&gt;acum&lt;/span&gt;
831
+ &lt;span class=&quot;ruby-identifier&quot;&gt;acum&lt;/span&gt; = &lt;span class=&quot;ruby-identifier&quot;&gt;pos&lt;/span&gt;[&lt;span class=&quot;ruby-identifier&quot;&gt;i&lt;/span&gt;][&lt;span class=&quot;ruby-identifier&quot;&gt;j&lt;/span&gt;]
832
+ &lt;span class=&quot;ruby-keyword&quot;&gt;end&lt;/span&gt;
833
+ &lt;span class=&quot;ruby-keyword&quot;&gt;end&lt;/span&gt;
834
+ &lt;span class=&quot;ruby-keyword&quot;&gt;end&lt;/span&gt;
835
+ &lt;span class=&quot;ruby-keyword&quot;&gt;end&lt;/span&gt;
836
+ &lt;span class=&quot;ruby-identifier&quot;&gt;acum&lt;/span&gt;</pre>
837
+
838
+ <p>&lt;span class=“ruby-keyword”&gt;end&lt;/span&gt;&lt;/pre&gt;</p>
839
+
840
+ <pre> &lt;/div&gt;&lt;!-- max-source --&gt;
841
+
842
+ &lt;/div&gt;
843
+
844
+ &lt;/div&gt;&lt;!-- max-method --&gt;
845
+
846
+ &lt;div id=&quot;method-i-min&quot; class=&quot;method-detail &quot;&gt;
847
+
848
+ &lt;div class=&quot;method-heading&quot;&gt;
849
+ &lt;span class=&quot;method-name&quot;&gt;min&lt;/span&gt;&lt;span
850
+ class=&quot;method-args&quot;&gt;()&lt;/span&gt;
851
+
852
+ &lt;span class=&quot;method-click-advice&quot;&gt;click to toggle source&lt;/span&gt;
853
+
854
+ &lt;/div&gt;
855
+
856
+ &lt;div class=&quot;method-description&quot;&gt;
857
+
858
+ &lt;p&gt;Metodo para hallar el valor minimo de los elementos de una matriz&lt;/p&gt;
859
+
860
+ &lt;div class=&quot;method-source-code&quot; id=&quot;min-source&quot;&gt;
861
+ &lt;pre&gt;&lt;span class=&quot;ruby-comment&quot;&gt;# File p10lppt13.rb, line 118&lt;/span&gt;</pre>
862
+
863
+ <p>&lt;span class=“ruby-keyword”&gt;def&lt;/span&gt; &lt;span
864
+ class=“ruby-identifier”&gt;min&lt;/span&gt;</p>
865
+
866
+ <pre>&lt;span class=&quot;ruby-identifier&quot;&gt;acum&lt;/span&gt; = &lt;span class=&quot;ruby-identifier&quot;&gt;pos&lt;/span&gt;[&lt;span class=&quot;ruby-value&quot;&gt;0&lt;/span&gt;][&lt;span class=&quot;ruby-value&quot;&gt;0&lt;/span&gt;]
867
+ &lt;span class=&quot;ruby-keyword&quot;&gt;for&lt;/span&gt; &lt;span class=&quot;ruby-identifier&quot;&gt;i&lt;/span&gt; &lt;span class=&quot;ruby-keyword&quot;&gt;in&lt;/span&gt; &lt;span class=&quot;ruby-value&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;ruby-operator&quot;&gt;...&lt;/span&gt;&lt;span class=&quot;ruby-identifier&quot;&gt;filas&lt;/span&gt;
868
+ &lt;span class=&quot;ruby-keyword&quot;&gt;for&lt;/span&gt; &lt;span class=&quot;ruby-identifier&quot;&gt;j&lt;/span&gt; &lt;span class=&quot;ruby-keyword&quot;&gt;in&lt;/span&gt; &lt;span class=&quot;ruby-value&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;ruby-operator&quot;&gt;...&lt;/span&gt;&lt;span class=&quot;ruby-identifier&quot;&gt;colum&lt;/span&gt;
869
+ &lt;span class=&quot;ruby-keyword&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;ruby-keyword&quot;&gt;self&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;pos&lt;/span&gt;[&lt;span class=&quot;ruby-identifier&quot;&gt;i&lt;/span&gt;][&lt;span class=&quot;ruby-identifier&quot;&gt;j&lt;/span&gt;] &lt;span class=&quot;ruby-operator&quot;&gt;!=&lt;/span&gt; &lt;span class=&quot;ruby-keyword&quot;&gt;nil&lt;/span&gt;
870
+ &lt;span class=&quot;ruby-keyword&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;ruby-identifier&quot;&gt;pos&lt;/span&gt;[&lt;span class=&quot;ruby-identifier&quot;&gt;i&lt;/span&gt;][&lt;span class=&quot;ruby-identifier&quot;&gt;j&lt;/span&gt;] &lt;span class=&quot;ruby-operator&quot;&gt;&amp;lt;&lt;/span&gt; &lt;span class=&quot;ruby-identifier&quot;&gt;acum&lt;/span&gt;
871
+ &lt;span class=&quot;ruby-identifier&quot;&gt;acum&lt;/span&gt; = &lt;span class=&quot;ruby-identifier&quot;&gt;pos&lt;/span&gt;[&lt;span class=&quot;ruby-identifier&quot;&gt;i&lt;/span&gt;][&lt;span class=&quot;ruby-identifier&quot;&gt;j&lt;/span&gt;]
872
+ &lt;span class=&quot;ruby-keyword&quot;&gt;end&lt;/span&gt;
873
+ &lt;span class=&quot;ruby-keyword&quot;&gt;end&lt;/span&gt;
874
+ &lt;span class=&quot;ruby-keyword&quot;&gt;end&lt;/span&gt;
875
+ &lt;span class=&quot;ruby-keyword&quot;&gt;end&lt;/span&gt;
876
+ &lt;span class=&quot;ruby-identifier&quot;&gt;acum&lt;/span&gt;</pre>
877
+
878
+ <p>&lt;span class=“ruby-keyword”&gt;end&lt;/span&gt;&lt;/pre&gt;</p>
879
+
880
+ <pre> &lt;/div&gt;&lt;!-- min-source --&gt;
881
+
882
+ &lt;/div&gt;
883
+
884
+ &lt;/div&gt;&lt;!-- min-method --&gt;
885
+
886
+ &lt;div id=&quot;method-i-por&quot; class=&quot;method-detail &quot;&gt;
887
+
888
+ &lt;div class=&quot;method-heading&quot;&gt;
889
+ &lt;span class=&quot;method-name&quot;&gt;por&lt;/span&gt;&lt;span
890
+ class=&quot;method-args&quot;&gt;(other)&lt;/span&gt;
891
+
892
+ &lt;span class=&quot;method-click-advice&quot;&gt;click to toggle source&lt;/span&gt;
893
+
894
+ &lt;/div&gt;
895
+
896
+ &lt;div class=&quot;method-description&quot;&gt;
897
+
898
+ &lt;p&gt;Metodo para multiplicacion dos matrices&lt;/p&gt;
899
+
900
+ &lt;div class=&quot;method-source-code&quot; id=&quot;por-source&quot;&gt;
901
+ &lt;pre&gt;&lt;span class=&quot;ruby-comment&quot;&gt;# File p10lppt13.rb, line 133&lt;/span&gt;</pre>
902
+
903
+ <p>&lt;span class=“ruby-keyword”&gt;def&lt;/span&gt; &lt;span
904
+ class=“ruby-identifier”&gt;por&lt;/span&gt;(&lt;span
905
+ class=“ruby-identifier”&gt;other&lt;/span&gt;)</p>
906
+
907
+ <pre>&lt;span class=&quot;ruby-comment&quot;&gt;# Primero se comprueba si se pueden multiplicar (las dimensiones deben ser nxm y mxn)&lt;/span&gt;
908
+ &lt;span class=&quot;ruby-keyword&quot;&gt;if&lt;/span&gt; ((&lt;span class=&quot;ruby-ivar&quot;&gt;@nfil&lt;/span&gt; &lt;span class=&quot;ruby-operator&quot;&gt;!=&lt;/span&gt; &lt;span class=&quot;ruby-identifier&quot;&gt;other&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;ncol&lt;/span&gt;) &lt;span class=&quot;ruby-operator&quot;&gt;||&lt;/span&gt; (&lt;span class=&quot;ruby-ivar&quot;&gt;@ncol&lt;/span&gt; &lt;span class=&quot;ruby-operator&quot;&gt;!=&lt;/span&gt; &lt;span class=&quot;ruby-identifier&quot;&gt;other&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;nfil&lt;/span&gt;))
909
+ &lt;span class=&quot;ruby-identifier&quot;&gt;puts&lt;/span&gt; &lt;span class=&quot;ruby-string&quot;&gt;&amp;quot;No se pueden multiplicarr las matrices&amp;quot;&lt;/span&gt;
910
+ &lt;span class=&quot;ruby-keyword&quot;&gt;else&lt;/span&gt;
911
+ &lt;span class=&quot;ruby-identifier&quot;&gt;elemento&lt;/span&gt; = &lt;span class=&quot;ruby-constant&quot;&gt;Array&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;new&lt;/span&gt;(&lt;span class=&quot;ruby-value&quot;&gt;0&lt;/span&gt;)
912
+ &lt;span class=&quot;ruby-ivar&quot;&gt;@nfil&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;times&lt;/span&gt; &lt;span class=&quot;ruby-keyword&quot;&gt;do&lt;/span&gt; &lt;span class=&quot;ruby-operator&quot;&gt;|&lt;/span&gt;&lt;span class=&quot;ruby-identifier&quot;&gt;i&lt;/span&gt;&lt;span class=&quot;ruby-operator&quot;&gt;|&lt;/span&gt;
913
+ &lt;span class=&quot;ruby-identifier&quot;&gt;fila&lt;/span&gt; = &lt;span class=&quot;ruby-constant&quot;&gt;Array&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;new&lt;/span&gt;(&lt;span class=&quot;ruby-value&quot;&gt;0&lt;/span&gt;)
914
+ &lt;span class=&quot;ruby-identifier&quot;&gt;other&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;ncol&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;times&lt;/span&gt; &lt;span class=&quot;ruby-keyword&quot;&gt;do&lt;/span&gt; &lt;span class=&quot;ruby-operator&quot;&gt;|&lt;/span&gt;&lt;span class=&quot;ruby-identifier&quot;&gt;j&lt;/span&gt;&lt;span class=&quot;ruby-operator&quot;&gt;|&lt;/span&gt;
915
+ &lt;span class=&quot;ruby-identifier&quot;&gt;aux&lt;/span&gt; = &lt;span class=&quot;ruby-value&quot;&gt;0&lt;/span&gt;
916
+ &lt;span class=&quot;ruby-ivar&quot;&gt;@ncol&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;times&lt;/span&gt; &lt;span class=&quot;ruby-keyword&quot;&gt;do&lt;/span&gt; &lt;span class=&quot;ruby-operator&quot;&gt;|&lt;/span&gt;&lt;span class=&quot;ruby-identifier&quot;&gt;k&lt;/span&gt;&lt;span class=&quot;ruby-operator&quot;&gt;|&lt;/span&gt;
917
+ &lt;span class=&quot;ruby-keyword&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;ruby-keyword&quot;&gt;self&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;pos&lt;/span&gt;[&lt;span class=&quot;ruby-identifier&quot;&gt;i&lt;/span&gt;][&lt;span class=&quot;ruby-identifier&quot;&gt;k&lt;/span&gt;] &lt;span class=&quot;ruby-operator&quot;&gt;!=&lt;/span&gt; &lt;span class=&quot;ruby-keyword&quot;&gt;nil&lt;/span&gt; &lt;span class=&quot;ruby-operator&quot;&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class=&quot;ruby-identifier&quot;&gt;other&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;pos&lt;/span&gt;[&lt;span class=&quot;ruby-identifier&quot;&gt;i&lt;/span&gt;][&lt;span class=&quot;ruby-identifier&quot;&gt;k&lt;/span&gt;] &lt;span class=&quot;ruby-operator&quot;&gt;!=&lt;/span&gt; &lt;span class=&quot;ruby-keyword&quot;&gt;nil&lt;/span&gt;
918
+ &lt;span class=&quot;ruby-identifier&quot;&gt;aux&lt;/span&gt; &lt;span class=&quot;ruby-operator&quot;&gt;+=&lt;/span&gt; &lt;span class=&quot;ruby-identifier&quot;&gt;pos&lt;/span&gt;[&lt;span class=&quot;ruby-identifier&quot;&gt;i&lt;/span&gt;][&lt;span class=&quot;ruby-identifier&quot;&gt;k&lt;/span&gt;] &lt;span class=&quot;ruby-operator&quot;&gt;*&lt;/span&gt; &lt;span class=&quot;ruby-identifier&quot;&gt;other&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;pos&lt;/span&gt;[&lt;span class=&quot;ruby-identifier&quot;&gt;k&lt;/span&gt;][&lt;span class=&quot;ruby-identifier&quot;&gt;j&lt;/span&gt;]
919
+ &lt;span class=&quot;ruby-keyword&quot;&gt;end&lt;/span&gt;
920
+ &lt;span class=&quot;ruby-keyword&quot;&gt;end&lt;/span&gt;
921
+ &lt;span class=&quot;ruby-identifier&quot;&gt;fila&lt;/span&gt; &lt;span class=&quot;ruby-operator&quot;&gt;&amp;lt;&amp;lt;&lt;/span&gt; &lt;span class=&quot;ruby-identifier&quot;&gt;aux&lt;/span&gt;
922
+ &lt;span class=&quot;ruby-keyword&quot;&gt;end&lt;/span&gt;
923
+ &lt;span class=&quot;ruby-identifier&quot;&gt;elemento&lt;/span&gt; &lt;span class=&quot;ruby-operator&quot;&gt;&amp;lt;&amp;lt;&lt;/span&gt; &lt;span class=&quot;ruby-identifier&quot;&gt;fila&lt;/span&gt;
924
+ &lt;span class=&quot;ruby-keyword&quot;&gt;end&lt;/span&gt;
925
+ &lt;span class=&quot;ruby-keyword&quot;&gt;end&lt;/span&gt;
926
+ &lt;span class=&quot;ruby-constant&quot;&gt;Densa&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;new&lt;/span&gt;(&lt;span class=&quot;ruby-ivar&quot;&gt;@nfil&lt;/span&gt;, &lt;span class=&quot;ruby-identifier&quot;&gt;other&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;ncol&lt;/span&gt;, &lt;span class=&quot;ruby-identifier&quot;&gt;elemento&lt;/span&gt;)</pre>
927
+
928
+ <p>&lt;span class=“ruby-keyword”&gt;end&lt;/span&gt;&lt;/pre&gt;</p>
929
+
930
+ <pre> &lt;/div&gt;&lt;!-- por-source --&gt;
931
+
932
+ &lt;/div&gt;
933
+
934
+ &lt;/div&gt;&lt;!-- por-method --&gt;
935
+
936
+ &lt;div id=&quot;method-i-porf&quot; class=&quot;method-detail &quot;&gt;
937
+
938
+ &lt;div class=&quot;method-heading&quot;&gt;
939
+ &lt;span class=&quot;method-name&quot;&gt;porf&lt;/span&gt;&lt;span
940
+ class=&quot;method-args&quot;&gt;(other)&lt;/span&gt;
941
+
942
+ &lt;span class=&quot;method-click-advice&quot;&gt;click to toggle source&lt;/span&gt;
943
+
944
+ &lt;/div&gt;
945
+
946
+ &lt;div class=&quot;method-description&quot;&gt;
947
+
948
+ &lt;p&gt;Metodo para multiplicacion dos matrices&lt;/p&gt;
949
+
950
+ &lt;div class=&quot;method-source-code&quot; id=&quot;porf-source&quot;&gt;
951
+ &lt;pre&gt;&lt;span class=&quot;ruby-comment&quot;&gt;# File p10lppt13.rb, line 157&lt;/span&gt;</pre>
952
+
953
+ <p>&lt;span class=“ruby-keyword”&gt;def&lt;/span&gt; &lt;span
954
+ class=“ruby-identifier”&gt;porf&lt;/span&gt;(&lt;span
955
+ class=“ruby-identifier”&gt;other&lt;/span&gt;)</p>
956
+
957
+ <pre>&lt;span class=&quot;ruby-comment&quot;&gt;# Primero se comprueba si se pueden multiplicar (las dimensiones deben ser nxm y mxn)&lt;/span&gt;
958
+ &lt;span class=&quot;ruby-keyword&quot;&gt;if&lt;/span&gt; ((&lt;span class=&quot;ruby-ivar&quot;&gt;@nfil&lt;/span&gt; &lt;span class=&quot;ruby-operator&quot;&gt;!=&lt;/span&gt; &lt;span class=&quot;ruby-identifier&quot;&gt;other&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;ncol&lt;/span&gt;) &lt;span class=&quot;ruby-operator&quot;&gt;||&lt;/span&gt; (&lt;span class=&quot;ruby-ivar&quot;&gt;@ncol&lt;/span&gt; &lt;span class=&quot;ruby-operator&quot;&gt;!=&lt;/span&gt; &lt;span class=&quot;ruby-identifier&quot;&gt;other&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;nfil&lt;/span&gt;))
959
+ &lt;span class=&quot;ruby-identifier&quot;&gt;puts&lt;/span&gt; &lt;span class=&quot;ruby-string&quot;&gt;&amp;quot;No se pueden multiplicarr las matrices&amp;quot;&lt;/span&gt;
960
+ &lt;span class=&quot;ruby-keyword&quot;&gt;else&lt;/span&gt;
961
+ &lt;span class=&quot;ruby-identifier&quot;&gt;elemento&lt;/span&gt; = &lt;span class=&quot;ruby-constant&quot;&gt;Array&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;new&lt;/span&gt;(&lt;span class=&quot;ruby-value&quot;&gt;0&lt;/span&gt;)
962
+ &lt;span class=&quot;ruby-ivar&quot;&gt;@nfil&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;times&lt;/span&gt; &lt;span class=&quot;ruby-keyword&quot;&gt;do&lt;/span&gt; &lt;span class=&quot;ruby-operator&quot;&gt;|&lt;/span&gt;&lt;span class=&quot;ruby-identifier&quot;&gt;i&lt;/span&gt;&lt;span class=&quot;ruby-operator&quot;&gt;|&lt;/span&gt;
963
+ &lt;span class=&quot;ruby-identifier&quot;&gt;fila&lt;/span&gt; = &lt;span class=&quot;ruby-constant&quot;&gt;Array&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;new&lt;/span&gt;(&lt;span class=&quot;ruby-value&quot;&gt;0&lt;/span&gt;)
964
+ &lt;span class=&quot;ruby-identifier&quot;&gt;other&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;ncol&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;times&lt;/span&gt; &lt;span class=&quot;ruby-keyword&quot;&gt;do&lt;/span&gt; &lt;span class=&quot;ruby-operator&quot;&gt;|&lt;/span&gt;&lt;span class=&quot;ruby-identifier&quot;&gt;j&lt;/span&gt;&lt;span class=&quot;ruby-operator&quot;&gt;|&lt;/span&gt;
965
+ &lt;span class=&quot;ruby-identifier&quot;&gt;aux&lt;/span&gt; = &lt;span class=&quot;ruby-constant&quot;&gt;Fraccion&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;new&lt;/span&gt;(&lt;span class=&quot;ruby-value&quot;&gt;1&lt;/span&gt;,&lt;span class=&quot;ruby-value&quot;&gt;1&lt;/span&gt;)
966
+ &lt;span class=&quot;ruby-identifier&quot;&gt;aux&lt;/span&gt; = &lt;span class=&quot;ruby-identifier&quot;&gt;aux&lt;/span&gt; &lt;span class=&quot;ruby-operator&quot;&gt;-&lt;/span&gt; &lt;span class=&quot;ruby-identifier&quot;&gt;aux&lt;/span&gt;
967
+ &lt;span class=&quot;ruby-ivar&quot;&gt;@ncol&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;times&lt;/span&gt; &lt;span class=&quot;ruby-keyword&quot;&gt;do&lt;/span&gt; &lt;span class=&quot;ruby-operator&quot;&gt;|&lt;/span&gt;&lt;span class=&quot;ruby-identifier&quot;&gt;k&lt;/span&gt;&lt;span class=&quot;ruby-operator&quot;&gt;|&lt;/span&gt;
968
+ &lt;span class=&quot;ruby-keyword&quot;&gt;if&lt;/span&gt; (&lt;span class=&quot;ruby-keyword&quot;&gt;self&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;pos&lt;/span&gt;[&lt;span class=&quot;ruby-identifier&quot;&gt;i&lt;/span&gt;][&lt;span class=&quot;ruby-identifier&quot;&gt;k&lt;/span&gt;] &lt;span class=&quot;ruby-operator&quot;&gt;!=&lt;/span&gt; &lt;span class=&quot;ruby-keyword&quot;&gt;nil&lt;/span&gt; &lt;span class=&quot;ruby-operator&quot;&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class=&quot;ruby-identifier&quot;&gt;other&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;pos&lt;/span&gt;[&lt;span class=&quot;ruby-identifier&quot;&gt;i&lt;/span&gt;][&lt;span class=&quot;ruby-identifier&quot;&gt;k&lt;/span&gt;] &lt;span class=&quot;ruby-operator&quot;&gt;!=&lt;/span&gt; &lt;span class=&quot;ruby-keyword&quot;&gt;nil&lt;/span&gt;)
969
+ &lt;span class=&quot;ruby-identifier&quot;&gt;aux&lt;/span&gt; &lt;span class=&quot;ruby-operator&quot;&gt;+=&lt;/span&gt; &lt;span class=&quot;ruby-identifier&quot;&gt;pos&lt;/span&gt;[&lt;span class=&quot;ruby-identifier&quot;&gt;i&lt;/span&gt;][&lt;span class=&quot;ruby-identifier&quot;&gt;k&lt;/span&gt;] &lt;span class=&quot;ruby-operator&quot;&gt;*&lt;/span&gt; &lt;span class=&quot;ruby-identifier&quot;&gt;other&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;pos&lt;/span&gt;[&lt;span class=&quot;ruby-identifier&quot;&gt;k&lt;/span&gt;][&lt;span class=&quot;ruby-identifier&quot;&gt;j&lt;/span&gt;]
970
+ &lt;span class=&quot;ruby-keyword&quot;&gt;else&lt;/span&gt;
971
+ &lt;span class=&quot;ruby-identifier&quot;&gt;aux&lt;/span&gt; &lt;span class=&quot;ruby-operator&quot;&gt;&amp;lt;&amp;lt;&lt;/span&gt; &lt;span class=&quot;ruby-identifier&quot;&gt;pos&lt;/span&gt;[&lt;span class=&quot;ruby-identifier&quot;&gt;i&lt;/span&gt;][&lt;span class=&quot;ruby-identifier&quot;&gt;j&lt;/span&gt;]
972
+ &lt;span class=&quot;ruby-keyword&quot;&gt;end&lt;/span&gt;
973
+ &lt;span class=&quot;ruby-identifier&quot;&gt;fila&lt;/span&gt; &lt;span class=&quot;ruby-operator&quot;&gt;&amp;lt;&amp;lt;&lt;/span&gt; &lt;span class=&quot;ruby-identifier&quot;&gt;aux&lt;/span&gt;
974
+ &lt;span class=&quot;ruby-keyword&quot;&gt;end&lt;/span&gt;
975
+ &lt;span class=&quot;ruby-keyword&quot;&gt;end&lt;/span&gt;
976
+ &lt;span class=&quot;ruby-identifier&quot;&gt;elemento&lt;/span&gt; &lt;span class=&quot;ruby-operator&quot;&gt;&amp;lt;&amp;lt;&lt;/span&gt; &lt;span class=&quot;ruby-identifier&quot;&gt;fila&lt;/span&gt;
977
+ &lt;span class=&quot;ruby-keyword&quot;&gt;end&lt;/span&gt;
978
+ &lt;span class=&quot;ruby-keyword&quot;&gt;end&lt;/span&gt;
979
+ &lt;span class=&quot;ruby-constant&quot;&gt;Densa&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;new&lt;/span&gt;(&lt;span class=&quot;ruby-ivar&quot;&gt;@nfil&lt;/span&gt;, &lt;span class=&quot;ruby-identifier&quot;&gt;other&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;ncol&lt;/span&gt;, &lt;span class=&quot;ruby-identifier&quot;&gt;elemento&lt;/span&gt;)</pre>
980
+
981
+ <p>&lt;span class=“ruby-keyword”&gt;end&lt;/span&gt;&lt;/pre&gt;</p>
982
+
983
+ <pre> &lt;/div&gt;&lt;!-- porf-source --&gt;
984
+
985
+ &lt;/div&gt;
986
+
987
+ &lt;/div&gt;&lt;!-- porf-method --&gt;
988
+
989
+ &lt;div id=&quot;method-i-primervalor&quot; class=&quot;method-detail &quot;&gt;
990
+
991
+ &lt;div class=&quot;method-heading&quot;&gt;
992
+ &lt;span class=&quot;method-name&quot;&gt;primervalor&lt;/span&gt;&lt;span
993
+ class=&quot;method-args&quot;&gt;()&lt;/span&gt;
994
+
995
+ &lt;span class=&quot;method-click-advice&quot;&gt;click to toggle source&lt;/span&gt;
996
+
997
+ &lt;/div&gt;
998
+
999
+ &lt;div class=&quot;method-description&quot;&gt;
1000
+
1001
+ &lt;p&gt;Metodo para hallar el primer valor no nulo de una matriz&lt;/p&gt;
1002
+
1003
+ &lt;div class=&quot;method-source-code&quot; id=&quot;primervalor-source&quot;&gt;
1004
+ &lt;pre&gt;&lt;span class=&quot;ruby-comment&quot;&gt;# File p10lppt13.rb, line 92&lt;/span&gt;</pre>
1005
+
1006
+ <p>&lt;span class=“ruby-keyword”&gt;def&lt;/span&gt; &lt;span
1007
+ class=“ruby-identifier”&gt;primervalor&lt;/span&gt;</p>
1008
+
1009
+ <pre>&lt;span class=&quot;ruby-keyword&quot;&gt;for&lt;/span&gt; &lt;span class=&quot;ruby-identifier&quot;&gt;i&lt;/span&gt; &lt;span class=&quot;ruby-keyword&quot;&gt;in&lt;/span&gt; &lt;span class=&quot;ruby-value&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;ruby-operator&quot;&gt;...&lt;/span&gt;&lt;span class=&quot;ruby-ivar&quot;&gt;@nfil&lt;/span&gt;
1010
+ &lt;span class=&quot;ruby-keyword&quot;&gt;for&lt;/span&gt; &lt;span class=&quot;ruby-identifier&quot;&gt;j&lt;/span&gt; &lt;span class=&quot;ruby-keyword&quot;&gt;in&lt;/span&gt; &lt;span class=&quot;ruby-value&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;ruby-operator&quot;&gt;...&lt;/span&gt;&lt;span class=&quot;ruby-ivar&quot;&gt;@nncol&lt;/span&gt;
1011
+ &lt;span class=&quot;ruby-keyword&quot;&gt;if&lt;/span&gt; (&lt;span class=&quot;ruby-keyword&quot;&gt;self&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;pos&lt;/span&gt;[&lt;span class=&quot;ruby-identifier&quot;&gt;i&lt;/span&gt;][&lt;span class=&quot;ruby-identifier&quot;&gt;j&lt;/span&gt;] &lt;span class=&quot;ruby-operator&quot;&gt;!=&lt;/span&gt; &lt;span class=&quot;ruby-keyword&quot;&gt;nil&lt;/span&gt;)
1012
+ &lt;span class=&quot;ruby-keyword&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;ruby-keyword&quot;&gt;self&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;pos&lt;/span&gt;[&lt;span class=&quot;ruby-identifier&quot;&gt;i&lt;/span&gt;][&lt;span class=&quot;ruby-identifier&quot;&gt;j&lt;/span&gt;]
1013
+ &lt;span class=&quot;ruby-keyword&quot;&gt;end&lt;/span&gt;
1014
+ &lt;span class=&quot;ruby-keyword&quot;&gt;end&lt;/span&gt;
1015
+ &lt;span class=&quot;ruby-keyword&quot;&gt;end&lt;/span&gt;</pre>
1016
+
1017
+ <p>&lt;span class=“ruby-keyword”&gt;end&lt;/span&gt;&lt;/pre&gt;</p>
1018
+
1019
+ <pre> &lt;/div&gt;&lt;!-- primervalor-source --&gt;
1020
+
1021
+ &lt;/div&gt;
1022
+
1023
+ &lt;/div&gt;&lt;!-- primervalor-method --&gt;
1024
+
1025
+ &lt;div id=&quot;method-i-to_s&quot; class=&quot;method-detail &quot;&gt;
1026
+
1027
+ &lt;div class=&quot;method-heading&quot;&gt;
1028
+ &lt;span class=&quot;method-name&quot;&gt;to_s&lt;/span&gt;&lt;span
1029
+ class=&quot;method-args&quot;&gt;()&lt;/span&gt;
1030
+
1031
+ &lt;span class=&quot;method-click-advice&quot;&gt;click to toggle source&lt;/span&gt;
1032
+
1033
+ &lt;/div&gt;
1034
+
1035
+ &lt;div class=&quot;method-description&quot;&gt;
1036
+
1037
+ &lt;p&gt;Metodo para convertir la matriz a string (a una cadena)&lt;/p&gt;
1038
+
1039
+ &lt;div class=&quot;method-source-code&quot; id=&quot;to_s-source&quot;&gt;
1040
+ &lt;pre&gt;&lt;span class=&quot;ruby-comment&quot;&gt;# File p10lppt13.rb, line 28&lt;/span&gt;</pre>
1041
+
1042
+ <p>&lt;span class=“ruby-keyword”&gt;def&lt;/span&gt; &lt;span
1043
+ class=“ruby-identifier”&gt;to_s&lt;/span&gt;</p>
1044
+
1045
+ <pre>&lt;span class=&quot;ruby-identifier&quot;&gt;aux&lt;/span&gt; = &lt;span class=&quot;ruby-string&quot;&gt;&amp;quot;&amp;quot;&lt;/span&gt;
1046
+ &lt;span class=&quot;ruby-ivar&quot;&gt;@nfil&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;times&lt;/span&gt; &lt;span class=&quot;ruby-keyword&quot;&gt;do&lt;/span&gt; &lt;span class=&quot;ruby-operator&quot;&gt;|&lt;/span&gt;&lt;span class=&quot;ruby-identifier&quot;&gt;i&lt;/span&gt;&lt;span class=&quot;ruby-operator&quot;&gt;|&lt;/span&gt;
1047
+ &lt;span class=&quot;ruby-ivar&quot;&gt;@ncol&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;times&lt;/span&gt; &lt;span class=&quot;ruby-keyword&quot;&gt;do&lt;/span&gt; &lt;span class=&quot;ruby-operator&quot;&gt;|&lt;/span&gt;&lt;span class=&quot;ruby-identifier&quot;&gt;j&lt;/span&gt;&lt;span class=&quot;ruby-operator&quot;&gt;|&lt;/span&gt;
1048
+ &lt;span class=&quot;ruby-identifier&quot;&gt;aux&lt;/span&gt; &lt;span class=&quot;ruby-operator&quot;&gt;&amp;lt;&amp;lt;&lt;/span&gt; &lt;span class=&quot;ruby-node&quot;&gt;&amp;quot;#{pos[i][j]}\t&amp;quot;&lt;/span&gt;
1049
+ &lt;span class=&quot;ruby-keyword&quot;&gt;end&lt;/span&gt;
1050
+ &lt;span class=&quot;ruby-identifier&quot;&gt;aux&lt;/span&gt; &lt;span class=&quot;ruby-operator&quot;&gt;&amp;lt;&amp;lt;&lt;/span&gt; &lt;span class=&quot;ruby-string&quot;&gt;&amp;quot;\n&amp;quot;&lt;/span&gt;
1051
+ &lt;span class=&quot;ruby-keyword&quot;&gt;end&lt;/span&gt;
1052
+ &lt;span class=&quot;ruby-identifier&quot;&gt;aux&lt;/span&gt;</pre>
1053
+
1054
+ <p>&lt;span class=“ruby-keyword”&gt;end&lt;/span&gt;&lt;/pre&gt;</p>
1055
+
1056
+ <pre> &lt;/div&gt;&lt;!-- to_s-source --&gt;
1057
+
1058
+ &lt;/div&gt;
1059
+
1060
+ &lt;/div&gt;&lt;!-- to_s-method --&gt;
1061
+
1062
+ &lt;div id=&quot;method-i-trasponer&quot; class=&quot;method-detail &quot;&gt;
1063
+
1064
+ &lt;div class=&quot;method-heading&quot;&gt;
1065
+ &lt;span class=&quot;method-name&quot;&gt;trasponer&lt;/span&gt;&lt;span
1066
+ class=&quot;method-args&quot;&gt;()&lt;/span&gt;
1067
+
1068
+ &lt;span class=&quot;method-click-advice&quot;&gt;click to toggle source&lt;/span&gt;
1069
+
1070
+ &lt;/div&gt;
1071
+
1072
+ &lt;div class=&quot;method-description&quot;&gt;
1073
+
1074
+ &lt;p&gt;Metodo para hallar la traspuesta de una matriz&lt;/p&gt;
1075
+
1076
+ &lt;div class=&quot;method-source-code&quot; id=&quot;trasponer-source&quot;&gt;
1077
+ &lt;pre&gt;&lt;span class=&quot;ruby-comment&quot;&gt;# File p10lppt13.rb, line 201&lt;/span&gt;</pre>
1078
+
1079
+ <p>&lt;span class=“ruby-keyword”&gt;def&lt;/span&gt; &lt;span
1080
+ class=“ruby-identifier”&gt;trasponer&lt;/span&gt;</p>
1081
+
1082
+ <pre>&lt;span class=&quot;ruby-identifier&quot;&gt;elemento&lt;/span&gt; = &lt;span class=&quot;ruby-constant&quot;&gt;Array&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;new&lt;/span&gt;(&lt;span class=&quot;ruby-value&quot;&gt;0&lt;/span&gt;)
1083
+ &lt;span class=&quot;ruby-ivar&quot;&gt;@ncol&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;times&lt;/span&gt; &lt;span class=&quot;ruby-keyword&quot;&gt;do&lt;/span&gt; &lt;span class=&quot;ruby-operator&quot;&gt;|&lt;/span&gt;&lt;span class=&quot;ruby-identifier&quot;&gt;i&lt;/span&gt;&lt;span class=&quot;ruby-operator&quot;&gt;|&lt;/span&gt;
1084
+ &lt;span class=&quot;ruby-identifier&quot;&gt;fila&lt;/span&gt; = &lt;span class=&quot;ruby-constant&quot;&gt;Array&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;new&lt;/span&gt;(&lt;span class=&quot;ruby-value&quot;&gt;0&lt;/span&gt;)
1085
+ &lt;span class=&quot;ruby-ivar&quot;&gt;@nfil&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;times&lt;/span&gt; &lt;span class=&quot;ruby-keyword&quot;&gt;do&lt;/span&gt; &lt;span class=&quot;ruby-operator&quot;&gt;|&lt;/span&gt;&lt;span class=&quot;ruby-identifier&quot;&gt;j&lt;/span&gt;&lt;span class=&quot;ruby-operator&quot;&gt;|&lt;/span&gt;
1086
+ &lt;span class=&quot;ruby-identifier&quot;&gt;fila&lt;/span&gt; &lt;span class=&quot;ruby-operator&quot;&gt;&amp;lt;&amp;lt;&lt;/span&gt; &lt;span class=&quot;ruby-identifier&quot;&gt;pos&lt;/span&gt;[&lt;span class=&quot;ruby-identifier&quot;&gt;j&lt;/span&gt;][&lt;span class=&quot;ruby-identifier&quot;&gt;i&lt;/span&gt;]
1087
+ &lt;span class=&quot;ruby-keyword&quot;&gt;end&lt;/span&gt;
1088
+ &lt;span class=&quot;ruby-identifier&quot;&gt;elemento&lt;/span&gt; &lt;span class=&quot;ruby-operator&quot;&gt;&amp;lt;&amp;lt;&lt;/span&gt; &lt;span class=&quot;ruby-identifier&quot;&gt;fila&lt;/span&gt;
1089
+ &lt;span class=&quot;ruby-keyword&quot;&gt;end&lt;/span&gt;
1090
+ &lt;span class=&quot;ruby-constant&quot;&gt;Densa&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;new&lt;/span&gt;(&lt;span class=&quot;ruby-ivar&quot;&gt;@ncol&lt;/span&gt;, &lt;span class=&quot;ruby-ivar&quot;&gt;@nfil&lt;/span&gt;, &lt;span class=&quot;ruby-identifier&quot;&gt;elemento&lt;/span&gt;)</pre>
1091
+
1092
+ <p>&lt;span class=“ruby-keyword”&gt;end&lt;/span&gt;&lt;/pre&gt;</p>
1093
+
1094
+ <pre> &lt;/div&gt;&lt;!-- trasponer-source --&gt;
1095
+
1096
+ &lt;/div&gt;
1097
+
1098
+ &lt;/div&gt;&lt;!-- trasponer-method --&gt;
1099
+
1100
+ &lt;div id=&quot;method-i-vectorizar&quot; class=&quot;method-detail &quot;&gt;
1101
+
1102
+ &lt;div class=&quot;method-heading&quot;&gt;
1103
+ &lt;span class=&quot;method-name&quot;&gt;vectorizar&lt;/span&gt;&lt;span
1104
+ class=&quot;method-args&quot;&gt;()&lt;/span&gt;
1105
+
1106
+ &lt;span class=&quot;method-click-advice&quot;&gt;click to toggle source&lt;/span&gt;
1107
+
1108
+ &lt;/div&gt;
1109
+
1110
+ &lt;div class=&quot;method-description&quot;&gt;
1111
+
1112
+ &lt;p&gt;Metodo para convertir la matriz en un vector&lt;/p&gt;
1113
+
1114
+ &lt;div class=&quot;method-source-code&quot; id=&quot;vectorizar-source&quot;&gt;
1115
+ &lt;pre&gt;&lt;span class=&quot;ruby-comment&quot;&gt;# File p10lppt13.rb, line 215&lt;/span&gt;</pre>
1116
+
1117
+ <p>&lt;span class=“ruby-keyword”&gt;def&lt;/span&gt; &lt;span
1118
+ class=“ruby-identifier”&gt;vectorizar&lt;/span&gt;</p>
1119
+
1120
+ <pre>&lt;span class=&quot;ruby-identifier&quot;&gt;aux&lt;/span&gt; = &lt;span class=&quot;ruby-constant&quot;&gt;Array&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;new&lt;/span&gt;(&lt;span class=&quot;ruby-value&quot;&gt;0&lt;/span&gt;)
1121
+ &lt;span class=&quot;ruby-ivar&quot;&gt;@ncol&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;times&lt;/span&gt; &lt;span class=&quot;ruby-keyword&quot;&gt;do&lt;/span&gt; &lt;span class=&quot;ruby-operator&quot;&gt;|&lt;/span&gt;&lt;span class=&quot;ruby-identifier&quot;&gt;i&lt;/span&gt;&lt;span class=&quot;ruby-operator&quot;&gt;|&lt;/span&gt;
1122
+ &lt;span class=&quot;ruby-ivar&quot;&gt;@nfil&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;times&lt;/span&gt; &lt;span class=&quot;ruby-keyword&quot;&gt;do&lt;/span&gt; &lt;span class=&quot;ruby-operator&quot;&gt;|&lt;/span&gt;&lt;span class=&quot;ruby-identifier&quot;&gt;j&lt;/span&gt;&lt;span class=&quot;ruby-operator&quot;&gt;|&lt;/span&gt;
1123
+ &lt;span class=&quot;ruby-identifier&quot;&gt;aux&lt;/span&gt; &lt;span class=&quot;ruby-operator&quot;&gt;&amp;lt;&amp;lt;&lt;/span&gt; &lt;span class=&quot;ruby-identifier&quot;&gt;pos&lt;/span&gt;[&lt;span class=&quot;ruby-identifier&quot;&gt;i&lt;/span&gt;][&lt;span class=&quot;ruby-identifier&quot;&gt;j&lt;/span&gt;]
1124
+ &lt;span class=&quot;ruby-keyword&quot;&gt;end&lt;/span&gt;
1125
+ &lt;span class=&quot;ruby-keyword&quot;&gt;end&lt;/span&gt;
1126
+ &lt;span class=&quot;ruby-constant&quot;&gt;Array&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;new&lt;/span&gt;(&lt;span class=&quot;ruby-identifier&quot;&gt;aux&lt;/span&gt;)</pre>
1127
+
1128
+ <p>&lt;span class=“ruby-keyword”&gt;end&lt;/span&gt;&lt;/pre&gt;</p>
1129
+
1130
+ <pre> &lt;/div&gt;&lt;!-- vectorizar-source --&gt;
1131
+
1132
+ &lt;/div&gt;
1133
+
1134
+ &lt;/div&gt;&lt;!-- vectorizar-method --&gt;
1135
+
1136
+ &lt;/section&gt;&lt;!-- public-instance-method-details --&gt;
1137
+
1138
+ &lt;/section&gt;&lt;!-- 5Buntitled-5D --&gt;</pre>
1139
+
1140
+ <p>&lt;/div&gt;&lt;!– documentation –&gt;</p>
1141
+
1142
+ <p>&lt;footer id=“validator-badges”&gt;</p>
1143
+
1144
+ <pre>&lt;p&gt;&lt;a href=&quot;http://validator.w3.org/check/referer&quot;&gt;[Validate]&lt;/a&gt;
1145
+ &lt;p&gt;Generated by &lt;a href=&quot;https://github.com/rdoc/rdoc&quot;&gt;RDoc&lt;/a&gt; 4.0.0.
1146
+ &lt;p&gt;Generated with the &lt;a href=&quot;http://deveiate.org/projects/Darkfish-Rdoc/&quot;&gt;Darkfish Rdoc Generator&lt;/a&gt; 3.</pre>
1147
+
1148
+ <p>&lt;/footer&gt;</p>
1149
+
1150
+ </div>
1151
+
1152
+
1153
+
1154
+ <footer id="validator-badges">
1155
+ <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
1156
+ <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 4.0.0.
1157
+ <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
1158
+ </footer>
1159
+