1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
|
<!-- HTML header for doxygen 1.8.3.1-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>Templates -- Meow: meowpp/math/Matrix.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
$(window).load(resizeHeight);
</script>
<link href="stylesheet.css" rel="stylesheet" type="text/css" />
<link href="custom.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
<td style="padding-left: 0.5em;">
<div id="projectname">Templates -- Meow
 <span id="projectnumber">204.13.18</span>
</div>
<div id="projectbrief">A C++ template contains kinds of interesting classes and functions</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('Matrix_8h_source.html','');});
</script>
<div id="doc-content">
<div class="header">
<div class="headertitle">
<div class="title">Matrix.h</div> </div>
</div><!--header-->
<div class="contents">
<a href="Matrix_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="preprocessor">#ifndef math_Matrix_H__</span></div>
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="preprocessor"></span><span class="preprocessor">#define math_Matrix_H__</span></div>
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="preprocessor"></span></div>
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="preprocessor">#include "../Self.h"</span></div>
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> </div>
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="preprocessor">#include <vector></span></div>
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="preprocessor">#include <algorithm></span></div>
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> </div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="preprocessor">#include <cstdlib></span></div>
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> </div>
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="keyword">namespace </span>meow {</div>
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="keyword">template</span><<span class="keyword">class</span> Entry></div>
<div class="line"><a name="l00018"></a><span class="lineno"><a class="line" href="classmeow_1_1Matrix.html"> 18</a></span> <span class="keyword">class </span><a class="code" href="classmeow_1_1Matrix.html">Matrix</a> {</div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="keyword">public</span>:</div>
<div class="line"><a name="l00020"></a><span class="lineno"><a class="line" href="classmeow_1_1Matrix.html#ab05bcd1bd8b1f8d4f250d6b3b87e023e"> 20</a></span>  <span class="keyword">typedef</span> <span class="keyword">typename</span> std::vector<Entry>::reference <a class="code" href="classmeow_1_1Matrix.html#ab05bcd1bd8b1f8d4f250d6b3b87e023e">EntryRef</a> ;</div>
<div class="line"><a name="l00021"></a><span class="lineno"><a class="line" href="classmeow_1_1Matrix.html#a1ac7c3d6ad50154043969005fa292981"> 21</a></span>  <span class="keyword">typedef</span> <span class="keyword">typename</span> std::vector<Entry>::const_reference <a class="code" href="classmeow_1_1Matrix.html#a1ac7c3d6ad50154043969005fa292981">EntryRefK</a>;</div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="keyword">private</span>:</div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>  <span class="keyword">struct </span>Myself {</div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>  <span class="keywordtype">size_t</span> rows_;</div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>  <span class="keywordtype">size_t</span> cols_;</div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>  std::vector<Entry> entries_;</div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> </div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  Myself():</div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  rows_(0), cols_(0), entries_(0) {</div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  }</div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span> </div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  Myself(Myself <span class="keyword">const</span>& b):</div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  rows_(b.rows_), cols_(b.cols_), entries_(b.entries_) {</div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  }</div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span> </div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  Myself(<span class="keywordtype">size_t</span> r, <span class="keywordtype">size_t</span> c, Entry <span class="keyword">const</span>& e):</div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  rows_(r), cols_(c), entries_(r * c, e) {</div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  }</div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span> </div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  ~Myself() {</div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  }</div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span> </div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  <span class="keywordtype">size_t</span> index(<span class="keywordtype">size_t</span> r, <span class="keywordtype">size_t</span> c)<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  <span class="keywordflow">return</span> r * cols_ + c;</div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  }</div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  };</div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span> </div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  <a class="code" href="classmeow_1_1Self.html">Self<Myself></a> <span class="keyword">const</span> <span class="keyword">self</span>;</div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span> <span class="keyword">public</span>:</div>
<div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="classmeow_1_1Matrix.html#a2dc9f17e38ba52376822744d2fc48f29"> 56</a></span>  <a class="code" href="classmeow_1_1Matrix.html#a2dc9f17e38ba52376822744d2fc48f29">Matrix</a>(): self() { }</div>
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span> </div>
<div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="classmeow_1_1Matrix.html#a5728557810b6c5444332557ac53597d5"> 65</a></span>  <a class="code" href="classmeow_1_1Matrix.html#a5728557810b6c5444332557ac53597d5">Matrix</a>(<a class="code" href="classmeow_1_1Matrix.html">Matrix</a> <span class="keyword">const</span>& m): self(m.self, <a class="code" href="classmeow_1_1Self.html">Self</a><Myself>::COPY_FROM) {</div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  }</div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span> </div>
<div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="classmeow_1_1Matrix.html#af0b4507ec5ea08e8f33aeb99f11e5f74"> 77</a></span>  <a class="code" href="classmeow_1_1Matrix.html#af0b4507ec5ea08e8f33aeb99f11e5f74">Matrix</a>(<span class="keywordtype">size_t</span> r, <span class="keywordtype">size_t</span> c, Entry <span class="keyword">const</span>& e): self(Myself(r, c, e)) {</div>
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  }</div>
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span> </div>
<div class="line"><a name="l00081"></a><span class="lineno"><a class="line" href="classmeow_1_1Matrix.html#ae66fe3b4deb85b9b4c047f405a60f10e"> 81</a></span>  <a class="code" href="classmeow_1_1Matrix.html#ae66fe3b4deb85b9b4c047f405a60f10e">~Matrix</a>() { }</div>
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span> </div>
<div class="line"><a name="l00091"></a><span class="lineno"><a class="line" href="classmeow_1_1Matrix.html#afb81446984f7c27458ccef86be2de413"> 91</a></span>  <a class="code" href="classmeow_1_1Matrix.html">Matrix</a>& <a class="code" href="classmeow_1_1Matrix.html#afb81446984f7c27458ccef86be2de413">copyFrom</a>(<a class="code" href="classmeow_1_1Matrix.html">Matrix</a> <span class="keyword">const</span>& m) {</div>
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  <span class="keyword">self</span>().<a class="code" href="classmeow_1_1Matrix.html#afb81446984f7c27458ccef86be2de413">copyFrom</a>(m.self);</div>
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  }</div>
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span> </div>
<div class="line"><a name="l00104"></a><span class="lineno"><a class="line" href="classmeow_1_1Matrix.html#a1dbef5b1a46df480f7fa3e118fd12bec"> 104</a></span>  <a class="code" href="classmeow_1_1Matrix.html">Matrix</a>& <a class="code" href="classmeow_1_1Matrix.html#a1dbef5b1a46df480f7fa3e118fd12bec">referenceFrom</a>(<a class="code" href="classmeow_1_1Matrix.html">Matrix</a> <span class="keyword">const</span>& m) {</div>
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  <span class="keyword">self</span>().<a class="code" href="classmeow_1_1Matrix.html#a1dbef5b1a46df480f7fa3e118fd12bec">referenceFrom</a>(m.self);</div>
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  }</div>
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span> </div>
<div class="line"><a name="l00110"></a><span class="lineno"><a class="line" href="classmeow_1_1Matrix.html#ac17251cb984beb1f74558724a22a0120"> 110</a></span>  <span class="keywordtype">void</span> <a class="code" href="classmeow_1_1Matrix.html#ac17251cb984beb1f74558724a22a0120">reset</a>(<span class="keywordtype">size_t</span> r, <span class="keywordtype">size_t</span> c, Entry <span class="keyword">const</span>& e) {</div>
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  <span class="keyword">self</span>()->rows_ = r;</div>
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  <span class="keyword">self</span>()->cols_ = c;</div>
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  <span class="keyword">self</span>()->entries_.clear();</div>
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  <span class="keyword">self</span>()->entries_.resize(r * c, e);</div>
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  }</div>
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span> </div>
<div class="line"><a name="l00118"></a><span class="lineno"><a class="line" href="classmeow_1_1Matrix.html#a030758e4938c4d56a0b665e6a51d1405"> 118</a></span>  <span class="keywordtype">bool</span> <a class="code" href="classmeow_1_1Matrix.html#a030758e4938c4d56a0b665e6a51d1405">valid</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  <span class="keywordflow">return</span> (<a class="code" href="classmeow_1_1Matrix.html#a560adbe0b39f52bfb016edddc2955178">rows</a>() > 0 && <a class="code" href="classmeow_1_1Matrix.html#a4db3bb07e2557cbc668bdaa1beb241df">cols</a>() > 0);</div>
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  }</div>
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span> </div>
<div class="line"><a name="l00123"></a><span class="lineno"><a class="line" href="classmeow_1_1Matrix.html#a560adbe0b39f52bfb016edddc2955178"> 123</a></span>  <span class="keywordtype">size_t</span> <a class="code" href="classmeow_1_1Matrix.html#a560adbe0b39f52bfb016edddc2955178">rows</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  <span class="keywordflow">return</span> <span class="keyword">self</span>->rows_;</div>
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  }</div>
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span> </div>
<div class="line"><a name="l00128"></a><span class="lineno"><a class="line" href="classmeow_1_1Matrix.html#a4db3bb07e2557cbc668bdaa1beb241df"> 128</a></span>  <span class="keywordtype">size_t</span> <a class="code" href="classmeow_1_1Matrix.html#a4db3bb07e2557cbc668bdaa1beb241df">cols</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  <span class="keywordflow">return</span> <span class="keyword">self</span>->cols_;</div>
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  }</div>
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span> </div>
<div class="line"><a name="l00133"></a><span class="lineno"><a class="line" href="classmeow_1_1Matrix.html#a8e35443c856f669d02b352f091c0404c"> 133</a></span>  <span class="keywordtype">size_t</span> <a class="code" href="classmeow_1_1Matrix.html#a8e35443c856f669d02b352f091c0404c">size</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1Matrix.html#a560adbe0b39f52bfb016edddc2955178">rows</a>() * <a class="code" href="classmeow_1_1Matrix.html#a4db3bb07e2557cbc668bdaa1beb241df">cols</a>();</div>
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  }</div>
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span> </div>
<div class="line"><a name="l00146"></a><span class="lineno"><a class="line" href="classmeow_1_1Matrix.html#add7842aea9c5b0372f56656af0d43325"> 146</a></span>  <span class="keywordtype">size_t</span> <a class="code" href="classmeow_1_1Matrix.html#add7842aea9c5b0372f56656af0d43325">rows</a>(<span class="keywordtype">size_t</span> r, Entry <span class="keyword">const</span>& e) {</div>
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  <span class="keywordflow">if</span> (r != <a class="code" href="classmeow_1_1Matrix.html#a560adbe0b39f52bfb016edddc2955178">rows</a>()) {</div>
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  <span class="keyword">self</span>()->entries_.resize(r * <a class="code" href="classmeow_1_1Matrix.html#a4db3bb07e2557cbc668bdaa1beb241df">cols</a>(), e);</div>
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>  <span class="keyword">self</span>()->rows_ = r;</div>
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  }</div>
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span>  <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1Matrix.html#a560adbe0b39f52bfb016edddc2955178">rows</a>();</div>
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span>  }</div>
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span> </div>
<div class="line"><a name="l00163"></a><span class="lineno"><a class="line" href="classmeow_1_1Matrix.html#a30d16679bb6843c5e35aae81738f3306"> 163</a></span>  <span class="keywordtype">size_t</span> <a class="code" href="classmeow_1_1Matrix.html#a30d16679bb6843c5e35aae81738f3306">cols</a>(<span class="keywordtype">size_t</span> c, Entry <span class="keyword">const</span>& e) {</div>
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span>  <span class="keywordflow">if</span> (c != <a class="code" href="classmeow_1_1Matrix.html#a4db3bb07e2557cbc668bdaa1beb241df">cols</a>()) {</div>
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span>  <a class="code" href="classmeow_1_1Self.html">Self<Myself></a> <span class="keyword">const</span> old(<span class="keyword">self</span>, <a class="code" href="classmeow_1_1Self.html">Self<Myself>::COPY_FROM</a>);</div>
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span>  <span class="keyword">self</span>()->entries_.resize(<a class="code" href="classmeow_1_1Matrix.html#a560adbe0b39f52bfb016edddc2955178">rows</a>() * c);</div>
<div class="line"><a name="l00167"></a><span class="lineno"> 167</span>  <span class="keyword">self</span>()->cols_ = c;</div>
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span>  <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i = 0, I = <a class="code" href="classmeow_1_1Matrix.html#a560adbe0b39f52bfb016edddc2955178">rows</a>(); i < I; i++) {</div>
<div class="line"><a name="l00169"></a><span class="lineno"> 169</span>  <span class="keywordtype">size_t</span> j, J1 = std::min(old->cols_, <a class="code" href="classmeow_1_1Matrix.html#a4db3bb07e2557cbc668bdaa1beb241df">cols</a>()), J2 = <a class="code" href="classmeow_1_1Matrix.html#a4db3bb07e2557cbc668bdaa1beb241df">cols</a>();</div>
<div class="line"><a name="l00170"></a><span class="lineno"> 170</span>  <span class="keywordflow">for</span> (j = 0; j < J1; j++)</div>
<div class="line"><a name="l00171"></a><span class="lineno"> 171</span>  <span class="keyword">self</span>()->entries_[<span class="keyword">self</span>->index(i, j)] = old->entries_[old->index(i, j)];</div>
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span>  <span class="keywordflow">for</span> (j = J1; j < J2; j++)</div>
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span>  <span class="keyword">self</span>()->entries_[<span class="keyword">self</span>->index(i, j)] = e;</div>
<div class="line"><a name="l00174"></a><span class="lineno"> 174</span>  }</div>
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span>  }</div>
<div class="line"><a name="l00176"></a><span class="lineno"> 176</span>  <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1Matrix.html#a4db3bb07e2557cbc668bdaa1beb241df">cols</a>();</div>
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span>  }</div>
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span> </div>
<div class="line"><a name="l00189"></a><span class="lineno"><a class="line" href="classmeow_1_1Matrix.html#ac492cefa5df3a4ac6c9799931fb93605"> 189</a></span>  <span class="keywordtype">size_t</span> <a class="code" href="classmeow_1_1Matrix.html#ac492cefa5df3a4ac6c9799931fb93605">size</a>(<span class="keywordtype">size_t</span> r, <span class="keywordtype">size_t</span> c, Entry <span class="keyword">const</span>& e) {</div>
<div class="line"><a name="l00190"></a><span class="lineno"> 190</span>  <a class="code" href="classmeow_1_1Matrix.html#a4db3bb07e2557cbc668bdaa1beb241df">cols</a>(c, e);</div>
<div class="line"><a name="l00191"></a><span class="lineno"> 191</span>  <a class="code" href="classmeow_1_1Matrix.html#a560adbe0b39f52bfb016edddc2955178">rows</a>(r, e);</div>
<div class="line"><a name="l00192"></a><span class="lineno"> 192</span>  <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1Matrix.html#a560adbe0b39f52bfb016edddc2955178">rows</a>() * <a class="code" href="classmeow_1_1Matrix.html#a4db3bb07e2557cbc668bdaa1beb241df">cols</a>();</div>
<div class="line"><a name="l00193"></a><span class="lineno"> 193</span>  }</div>
<div class="line"><a name="l00194"></a><span class="lineno"> 194</span> </div>
<div class="line"><a name="l00196"></a><span class="lineno"><a class="line" href="classmeow_1_1Matrix.html#a46a12f45237e654e0140387d7290eb8b"> 196</a></span>  Entry <a class="code" href="classmeow_1_1Matrix.html#a46a12f45237e654e0140387d7290eb8b">entry</a>(<span class="keywordtype">size_t</span> r, <span class="keywordtype">size_t</span> c)<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00197"></a><span class="lineno"> 197</span>  <span class="keywordflow">return</span> <span class="keyword">self</span>->entries_[<span class="keyword">self</span>->index(r, c)];</div>
<div class="line"><a name="l00198"></a><span class="lineno"> 198</span>  }</div>
<div class="line"><a name="l00199"></a><span class="lineno"> 199</span> </div>
<div class="line"><a name="l00201"></a><span class="lineno"><a class="line" href="classmeow_1_1Matrix.html#aaba0981e54a17f0df8af9dabe9cad06f"> 201</a></span>  Entry <a class="code" href="classmeow_1_1Matrix.html#aaba0981e54a17f0df8af9dabe9cad06f">entry</a>(<span class="keywordtype">size_t</span> r, <span class="keywordtype">size_t</span> c, Entry <span class="keyword">const</span>& e) {</div>
<div class="line"><a name="l00202"></a><span class="lineno"> 202</span>  <span class="keyword">self</span>()->entries_[self->index(r, c)] = e;</div>
<div class="line"><a name="l00203"></a><span class="lineno"> 203</span>  <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1Matrix.html#a46a12f45237e654e0140387d7290eb8b">entry</a>(r, c);</div>
<div class="line"><a name="l00204"></a><span class="lineno"> 204</span>  }</div>
<div class="line"><a name="l00205"></a><span class="lineno"> 205</span> </div>
<div class="line"><a name="l00207"></a><span class="lineno"><a class="line" href="classmeow_1_1Matrix.html#ab49fa7564c37c6bc164dc368a94fed6b"> 207</a></span>  <a class="code" href="classmeow_1_1Matrix.html#ab05bcd1bd8b1f8d4f250d6b3b87e023e">EntryRef</a> <a class="code" href="classmeow_1_1Matrix.html#ab49fa7564c37c6bc164dc368a94fed6b">entryGet</a>(<span class="keywordtype">size_t</span> r, <span class="keywordtype">size_t</span> c) {</div>
<div class="line"><a name="l00208"></a><span class="lineno"> 208</span>  <span class="keywordflow">return</span> <span class="keyword">self</span>()->entries_[self->index(r, c)];</div>
<div class="line"><a name="l00209"></a><span class="lineno"> 209</span>  }</div>
<div class="line"><a name="l00210"></a><span class="lineno"> 210</span> </div>
<div class="line"><a name="l00221"></a><span class="lineno"><a class="line" href="classmeow_1_1Matrix.html#a13384643dc412817fdcd8f1834a02d12"> 221</a></span>  <span class="keywordtype">void</span> <a class="code" href="classmeow_1_1Matrix.html#a13384643dc412817fdcd8f1834a02d12">entries</a>(ssize_t rFirst, ssize_t rLast,</div>
<div class="line"><a name="l00222"></a><span class="lineno"> 222</span>  ssize_t cFirst, ssize_t cLast,</div>
<div class="line"><a name="l00223"></a><span class="lineno"> 223</span>  Entry <span class="keyword">const</span>& e) {</div>
<div class="line"><a name="l00224"></a><span class="lineno"> 224</span>  <span class="keywordflow">for</span> (ssize_t r = rFirst; r <= rLast; r++) {</div>
<div class="line"><a name="l00225"></a><span class="lineno"> 225</span>  <span class="keywordflow">for</span> (ssize_t c = cFirst; c <=cFirst; c++) {</div>
<div class="line"><a name="l00226"></a><span class="lineno"> 226</span>  <a class="code" href="classmeow_1_1Matrix.html#a46a12f45237e654e0140387d7290eb8b">entry</a>(r, c, e);</div>
<div class="line"><a name="l00227"></a><span class="lineno"> 227</span>  }</div>
<div class="line"><a name="l00228"></a><span class="lineno"> 228</span>  }</div>
<div class="line"><a name="l00229"></a><span class="lineno"> 229</span>  }</div>
<div class="line"><a name="l00230"></a><span class="lineno"> 230</span> </div>
<div class="line"><a name="l00242"></a><span class="lineno"><a class="line" href="classmeow_1_1Matrix.html#a93ff4579b7cb950868cad7a62bcf9fe8"> 242</a></span>  <a class="code" href="classmeow_1_1Matrix.html">Matrix</a> <a class="code" href="classmeow_1_1Matrix.html#a93ff4579b7cb950868cad7a62bcf9fe8">subMatrix</a>(<span class="keywordtype">size_t</span> rFirst, <span class="keywordtype">size_t</span> rLast,</div>
<div class="line"><a name="l00243"></a><span class="lineno"> 243</span>  <span class="keywordtype">size_t</span> cFirst, <span class="keywordtype">size_t</span> cLast)<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00244"></a><span class="lineno"> 244</span>  <span class="keywordflow">if</span> (rFirst > rLast || cFirst > cLast) <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1Matrix.html#a2dc9f17e38ba52376822744d2fc48f29">Matrix</a>();</div>
<div class="line"><a name="l00245"></a><span class="lineno"> 245</span>  <span class="keywordflow">if</span> (rFirst == 0 && cFirst == 0) {</div>
<div class="line"><a name="l00246"></a><span class="lineno"> 246</span>  <a class="code" href="classmeow_1_1Matrix.html">Matrix</a> ret(*<span class="keyword">this</span>);</div>
<div class="line"><a name="l00247"></a><span class="lineno"> 247</span>  ret.<a class="code" href="classmeow_1_1Matrix.html#a8e35443c856f669d02b352f091c0404c">size</a>(rLast + 1, cLast + 1, Entry(0));</div>
<div class="line"><a name="l00248"></a><span class="lineno"> 248</span>  <span class="keywordflow">return</span> ret;</div>
<div class="line"><a name="l00249"></a><span class="lineno"> 249</span>  }</div>
<div class="line"><a name="l00250"></a><span class="lineno"> 250</span>  <a class="code" href="classmeow_1_1Matrix.html">Matrix</a> ret(rLast - rFirst + 1, cLast - cFirst + 1, <a class="code" href="classmeow_1_1Matrix.html#a46a12f45237e654e0140387d7290eb8b">entry</a>(rFirst, cFirst));</div>
<div class="line"><a name="l00251"></a><span class="lineno"> 251</span>  <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> r = rFirst; r <= rLast; r++)</div>
<div class="line"><a name="l00252"></a><span class="lineno"> 252</span>  <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> c = cFirst; c <= cLast; c++)</div>
<div class="line"><a name="l00253"></a><span class="lineno"> 253</span>  ret.<a class="code" href="classmeow_1_1Matrix.html#a46a12f45237e654e0140387d7290eb8b">entry</a>(r - rFirst, c - cFirst, <a class="code" href="classmeow_1_1Matrix.html#a46a12f45237e654e0140387d7290eb8b">entry</a>(r, c));</div>
<div class="line"><a name="l00254"></a><span class="lineno"> 254</span>  <span class="keywordflow">return</span> ret;</div>
<div class="line"><a name="l00255"></a><span class="lineno"> 255</span>  }</div>
<div class="line"><a name="l00256"></a><span class="lineno"> 256</span> </div>
<div class="line"><a name="l00258"></a><span class="lineno"><a class="line" href="classmeow_1_1Matrix.html#ae623c8168ebf26473550d831f0254c4c"> 258</a></span>  <a class="code" href="classmeow_1_1Matrix.html">Matrix</a> <a class="code" href="classmeow_1_1Matrix.html#ae623c8168ebf26473550d831f0254c4c">row</a>(<span class="keywordtype">size_t</span> r)<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00259"></a><span class="lineno"> 259</span>  <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1Matrix.html#a93ff4579b7cb950868cad7a62bcf9fe8">subMatrix</a>(r, r, 0, <a class="code" href="classmeow_1_1Matrix.html#a4db3bb07e2557cbc668bdaa1beb241df">cols</a>() - 1);</div>
<div class="line"><a name="l00260"></a><span class="lineno"> 260</span>  }</div>
<div class="line"><a name="l00261"></a><span class="lineno"> 261</span> </div>
<div class="line"><a name="l00263"></a><span class="lineno"><a class="line" href="classmeow_1_1Matrix.html#a9dfef448574df55fc34528665183c6c2"> 263</a></span>  <a class="code" href="classmeow_1_1Matrix.html">Matrix</a> <a class="code" href="classmeow_1_1Matrix.html#a9dfef448574df55fc34528665183c6c2">col</a>(<span class="keywordtype">size_t</span> c)<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00264"></a><span class="lineno"> 264</span>  <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1Matrix.html#a93ff4579b7cb950868cad7a62bcf9fe8">subMatrix</a>(0, <a class="code" href="classmeow_1_1Matrix.html#a560adbe0b39f52bfb016edddc2955178">rows</a>() - 1, c, c);</div>
<div class="line"><a name="l00265"></a><span class="lineno"> 265</span>  }</div>
<div class="line"><a name="l00266"></a><span class="lineno"> 266</span> </div>
<div class="line"><a name="l00268"></a><span class="lineno"><a class="line" href="classmeow_1_1Matrix.html#aa43f03179e3218c9af28f7374757a2cc"> 268</a></span>  <a class="code" href="classmeow_1_1Matrix.html">Matrix</a> <a class="code" href="classmeow_1_1Matrix.html#aa43f03179e3218c9af28f7374757a2cc">positive</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00269"></a><span class="lineno"> 269</span>  <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
<div class="line"><a name="l00270"></a><span class="lineno"> 270</span>  }</div>
<div class="line"><a name="l00271"></a><span class="lineno"> 271</span> </div>
<div class="line"><a name="l00273"></a><span class="lineno"><a class="line" href="classmeow_1_1Matrix.html#a581dbd8ba10d054596a3d11eaf47f274"> 273</a></span>  <a class="code" href="classmeow_1_1Matrix.html">Matrix</a> <a class="code" href="classmeow_1_1Matrix.html#a581dbd8ba10d054596a3d11eaf47f274">negative</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00274"></a><span class="lineno"> 274</span>  <a class="code" href="classmeow_1_1Matrix.html">Matrix</a> ret(*<span class="keyword">this</span>);</div>
<div class="line"><a name="l00275"></a><span class="lineno"> 275</span>  <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> r = 0, R = <a class="code" href="classmeow_1_1Matrix.html#a560adbe0b39f52bfb016edddc2955178">rows</a>(); r < R; r++)</div>
<div class="line"><a name="l00276"></a><span class="lineno"> 276</span>  <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> c = 0, C = <a class="code" href="classmeow_1_1Matrix.html#a4db3bb07e2557cbc668bdaa1beb241df">cols</a>(); c < C; c++)</div>
<div class="line"><a name="l00277"></a><span class="lineno"> 277</span>  ret.<a class="code" href="classmeow_1_1Matrix.html#a46a12f45237e654e0140387d7290eb8b">entry</a>(r, c, -ret.<a class="code" href="classmeow_1_1Matrix.html#a46a12f45237e654e0140387d7290eb8b">entry</a>(r, c));</div>
<div class="line"><a name="l00278"></a><span class="lineno"> 278</span>  <span class="keywordflow">return</span> ret;</div>
<div class="line"><a name="l00279"></a><span class="lineno"> 279</span>  }</div>
<div class="line"><a name="l00280"></a><span class="lineno"> 280</span> </div>
<div class="line"><a name="l00285"></a><span class="lineno"><a class="line" href="classmeow_1_1Matrix.html#ac1030360f1f48119128d99428930cce6"> 285</a></span>  <a class="code" href="classmeow_1_1Matrix.html">Matrix</a> <a class="code" href="classmeow_1_1Matrix.html#ac1030360f1f48119128d99428930cce6">add</a>(<a class="code" href="classmeow_1_1Matrix.html">Matrix</a> <span class="keyword">const</span>& m)<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00286"></a><span class="lineno"> 286</span>  <span class="keywordflow">if</span> (<a class="code" href="classmeow_1_1Matrix.html#a560adbe0b39f52bfb016edddc2955178">rows</a>() != m.<a class="code" href="classmeow_1_1Matrix.html#a560adbe0b39f52bfb016edddc2955178">rows</a>() || <a class="code" href="classmeow_1_1Matrix.html#a4db3bb07e2557cbc668bdaa1beb241df">cols</a>() != m.<a class="code" href="classmeow_1_1Matrix.html#a4db3bb07e2557cbc668bdaa1beb241df">cols</a>()) <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1Matrix.html#a2dc9f17e38ba52376822744d2fc48f29">Matrix</a>();</div>
<div class="line"><a name="l00287"></a><span class="lineno"> 287</span>  <a class="code" href="classmeow_1_1Matrix.html">Matrix</a> ret(*<span class="keyword">this</span>);</div>
<div class="line"><a name="l00288"></a><span class="lineno"> 288</span>  <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> r = 0, R = <a class="code" href="classmeow_1_1Matrix.html#a560adbe0b39f52bfb016edddc2955178">rows</a>(); r < R; r++)</div>
<div class="line"><a name="l00289"></a><span class="lineno"> 289</span>  <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> c = 0, C = <a class="code" href="classmeow_1_1Matrix.html#a4db3bb07e2557cbc668bdaa1beb241df">cols</a>(); c < C; c++)</div>
<div class="line"><a name="l00290"></a><span class="lineno"> 290</span>  ret.<a class="code" href="classmeow_1_1Matrix.html#a46a12f45237e654e0140387d7290eb8b">entry</a>(r, c, ret.<a class="code" href="classmeow_1_1Matrix.html#a46a12f45237e654e0140387d7290eb8b">entry</a>(r, c) + m.<a class="code" href="classmeow_1_1Matrix.html#a46a12f45237e654e0140387d7290eb8b">entry</a>(r, c));</div>
<div class="line"><a name="l00291"></a><span class="lineno"> 291</span>  <span class="keywordflow">return</span> ret;</div>
<div class="line"><a name="l00292"></a><span class="lineno"> 292</span>  }</div>
<div class="line"><a name="l00293"></a><span class="lineno"> 293</span> </div>
<div class="line"><a name="l00298"></a><span class="lineno"><a class="line" href="classmeow_1_1Matrix.html#ae89a9a7646f7b7c0f23756809c65dc8c"> 298</a></span>  <a class="code" href="classmeow_1_1Matrix.html">Matrix</a> <a class="code" href="classmeow_1_1Matrix.html#ae89a9a7646f7b7c0f23756809c65dc8c">sub</a>(<a class="code" href="classmeow_1_1Matrix.html">Matrix</a> <span class="keyword">const</span>& m)<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00299"></a><span class="lineno"> 299</span>  <span class="keywordflow">if</span> (<a class="code" href="classmeow_1_1Matrix.html#a560adbe0b39f52bfb016edddc2955178">rows</a>() != m.<a class="code" href="classmeow_1_1Matrix.html#a560adbe0b39f52bfb016edddc2955178">rows</a>() || <a class="code" href="classmeow_1_1Matrix.html#a4db3bb07e2557cbc668bdaa1beb241df">cols</a>() != m.<a class="code" href="classmeow_1_1Matrix.html#a4db3bb07e2557cbc668bdaa1beb241df">cols</a>()) <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1Matrix.html#a2dc9f17e38ba52376822744d2fc48f29">Matrix</a>();</div>
<div class="line"><a name="l00300"></a><span class="lineno"> 300</span>  <a class="code" href="classmeow_1_1Matrix.html">Matrix</a> ret(*<span class="keyword">this</span>);</div>
<div class="line"><a name="l00301"></a><span class="lineno"> 301</span>  <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> r = 0, R = <a class="code" href="classmeow_1_1Matrix.html#a560adbe0b39f52bfb016edddc2955178">rows</a>(); r < R; r++)</div>
<div class="line"><a name="l00302"></a><span class="lineno"> 302</span>  <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> c = 0, C = <a class="code" href="classmeow_1_1Matrix.html#a4db3bb07e2557cbc668bdaa1beb241df">cols</a>(); c < C; c++)</div>
<div class="line"><a name="l00303"></a><span class="lineno"> 303</span>  ret.<a class="code" href="classmeow_1_1Matrix.html#a46a12f45237e654e0140387d7290eb8b">entry</a>(r, c, ret.<a class="code" href="classmeow_1_1Matrix.html#a46a12f45237e654e0140387d7290eb8b">entry</a>(r, c) - m.<a class="code" href="classmeow_1_1Matrix.html#a46a12f45237e654e0140387d7290eb8b">entry</a>(r, c));</div>
<div class="line"><a name="l00304"></a><span class="lineno"> 304</span>  <span class="keywordflow">return</span> ret;</div>
<div class="line"><a name="l00305"></a><span class="lineno"> 305</span>  }</div>
<div class="line"><a name="l00306"></a><span class="lineno"> 306</span> </div>
<div class="line"><a name="l00311"></a><span class="lineno"><a class="line" href="classmeow_1_1Matrix.html#a30fdb794e5966585e93cf715646210dd"> 311</a></span>  <a class="code" href="classmeow_1_1Matrix.html">Matrix</a> <a class="code" href="classmeow_1_1Matrix.html#a30fdb794e5966585e93cf715646210dd">mul</a>(<a class="code" href="classmeow_1_1Matrix.html">Matrix</a> <span class="keyword">const</span>& m)<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00312"></a><span class="lineno"> 312</span>  <span class="keywordflow">if</span> (<a class="code" href="classmeow_1_1Matrix.html#a4db3bb07e2557cbc668bdaa1beb241df">cols</a>() != m.<a class="code" href="classmeow_1_1Matrix.html#a560adbe0b39f52bfb016edddc2955178">rows</a>()) <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1Matrix.html#a2dc9f17e38ba52376822744d2fc48f29">Matrix</a>();</div>
<div class="line"><a name="l00313"></a><span class="lineno"> 313</span>  <a class="code" href="classmeow_1_1Matrix.html">Matrix</a> ret(<a class="code" href="classmeow_1_1Matrix.html#a560adbe0b39f52bfb016edddc2955178">rows</a>(), m.<a class="code" href="classmeow_1_1Matrix.html#a4db3bb07e2557cbc668bdaa1beb241df">cols</a>(), Entry(0));</div>
<div class="line"><a name="l00314"></a><span class="lineno"> 314</span>  <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> r = 0, R = <a class="code" href="classmeow_1_1Matrix.html#a560adbe0b39f52bfb016edddc2955178">rows</a>(); r < R; r++)</div>
<div class="line"><a name="l00315"></a><span class="lineno"> 315</span>  <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> c = 0, C = m.<a class="code" href="classmeow_1_1Matrix.html#a4db3bb07e2557cbc668bdaa1beb241df">cols</a>(); c < C; c++)</div>
<div class="line"><a name="l00316"></a><span class="lineno"> 316</span>  <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> k = 0, K = <a class="code" href="classmeow_1_1Matrix.html#a4db3bb07e2557cbc668bdaa1beb241df">cols</a>(); k < K; k++)</div>
<div class="line"><a name="l00317"></a><span class="lineno"> 317</span>  ret.<a class="code" href="classmeow_1_1Matrix.html#a46a12f45237e654e0140387d7290eb8b">entry</a>(r, c, ret.entry(r, c) + <a class="code" href="classmeow_1_1Matrix.html#a46a12f45237e654e0140387d7290eb8b">entry</a>(r, k) * m.<a class="code" href="classmeow_1_1Matrix.html#a46a12f45237e654e0140387d7290eb8b">entry</a>(k, c));</div>
<div class="line"><a name="l00318"></a><span class="lineno"> 318</span>  <span class="keywordflow">return</span> ret;</div>
<div class="line"><a name="l00319"></a><span class="lineno"> 319</span>  }</div>
<div class="line"><a name="l00320"></a><span class="lineno"> 320</span> </div>
<div class="line"><a name="l00322"></a><span class="lineno"><a class="line" href="classmeow_1_1Matrix.html#a06ac197ecfa9bc8bd5e9d9094f2d01ab"> 322</a></span>  <a class="code" href="classmeow_1_1Matrix.html">Matrix</a> <a class="code" href="classmeow_1_1Matrix.html#a06ac197ecfa9bc8bd5e9d9094f2d01ab">mul</a>(Entry <span class="keyword">const</span>& s)<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00323"></a><span class="lineno"> 323</span>  <a class="code" href="classmeow_1_1Matrix.html">Matrix</a> ret(*<span class="keyword">this</span>);</div>
<div class="line"><a name="l00324"></a><span class="lineno"> 324</span>  <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> r = 0, R = <a class="code" href="classmeow_1_1Matrix.html#a560adbe0b39f52bfb016edddc2955178">rows</a>(); r < R; r++)</div>
<div class="line"><a name="l00325"></a><span class="lineno"> 325</span>  <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> c = 0, C = <a class="code" href="classmeow_1_1Matrix.html#a4db3bb07e2557cbc668bdaa1beb241df">cols</a>(); c < C; c++)</div>
<div class="line"><a name="l00326"></a><span class="lineno"> 326</span>  ret.<a class="code" href="classmeow_1_1Matrix.html#a46a12f45237e654e0140387d7290eb8b">entry</a>(r, c, ret.<a class="code" href="classmeow_1_1Matrix.html#a46a12f45237e654e0140387d7290eb8b">entry</a>(r, c) * s);</div>
<div class="line"><a name="l00327"></a><span class="lineno"> 327</span>  <span class="keywordflow">return</span> ret;</div>
<div class="line"><a name="l00328"></a><span class="lineno"> 328</span>  }</div>
<div class="line"><a name="l00329"></a><span class="lineno"> 329</span> </div>
<div class="line"><a name="l00331"></a><span class="lineno"><a class="line" href="classmeow_1_1Matrix.html#aed17cc829d1e766d2c905d65cbae48ce"> 331</a></span>  <a class="code" href="classmeow_1_1Matrix.html">Matrix</a> <a class="code" href="classmeow_1_1Matrix.html#aed17cc829d1e766d2c905d65cbae48ce">div</a>(Entry <span class="keyword">const</span>& s)<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00332"></a><span class="lineno"> 332</span>  <a class="code" href="classmeow_1_1Matrix.html">Matrix</a> ret(*<span class="keyword">this</span>);</div>
<div class="line"><a name="l00333"></a><span class="lineno"> 333</span>  <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> r = 0, R = <a class="code" href="classmeow_1_1Matrix.html#a560adbe0b39f52bfb016edddc2955178">rows</a>(); r < R; r++)</div>
<div class="line"><a name="l00334"></a><span class="lineno"> 334</span>  <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> c = 0, C = <a class="code" href="classmeow_1_1Matrix.html#a4db3bb07e2557cbc668bdaa1beb241df">cols</a>(); c < C; c++)</div>
<div class="line"><a name="l00335"></a><span class="lineno"> 335</span>  ret.<a class="code" href="classmeow_1_1Matrix.html#a46a12f45237e654e0140387d7290eb8b">entry</a>(r, c, ret.<a class="code" href="classmeow_1_1Matrix.html#a46a12f45237e654e0140387d7290eb8b">entry</a>(r, c) / s);</div>
<div class="line"><a name="l00336"></a><span class="lineno"> 336</span>  <span class="keywordflow">return</span> ret;</div>
<div class="line"><a name="l00337"></a><span class="lineno"> 337</span>  }</div>
<div class="line"><a name="l00338"></a><span class="lineno"> 338</span> </div>
<div class="line"><a name="l00340"></a><span class="lineno"><a class="line" href="classmeow_1_1Matrix.html#a9987d4535f1de58b822325914e3a916f"> 340</a></span>  <a class="code" href="classmeow_1_1Matrix.html">Matrix</a> <a class="code" href="classmeow_1_1Matrix.html#a9987d4535f1de58b822325914e3a916f">identity</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00341"></a><span class="lineno"> 341</span>  <a class="code" href="classmeow_1_1Matrix.html">Matrix</a> ret(*<span class="keyword">this</span>);</div>
<div class="line"><a name="l00342"></a><span class="lineno"> 342</span>  ret.<a class="code" href="classmeow_1_1Matrix.html#abc6f5c824ee47cb15094729ca91f2e7c">identitied</a>();</div>
<div class="line"><a name="l00343"></a><span class="lineno"> 343</span>  <span class="keywordflow">return</span> ret;</div>
<div class="line"><a name="l00344"></a><span class="lineno"> 344</span>  }</div>
<div class="line"><a name="l00345"></a><span class="lineno"> 345</span> </div>
<div class="line"><a name="l00351"></a><span class="lineno"><a class="line" href="classmeow_1_1Matrix.html#abc6f5c824ee47cb15094729ca91f2e7c"> 351</a></span>  <a class="code" href="classmeow_1_1Matrix.html">Matrix</a>& <a class="code" href="classmeow_1_1Matrix.html#abc6f5c824ee47cb15094729ca91f2e7c">identitied</a>() {</div>
<div class="line"><a name="l00352"></a><span class="lineno"> 352</span>  <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> r = 0, R = <a class="code" href="classmeow_1_1Matrix.html#a560adbe0b39f52bfb016edddc2955178">rows</a>(); r < R; r++)</div>
<div class="line"><a name="l00353"></a><span class="lineno"> 353</span>  <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> c = 0, C = <a class="code" href="classmeow_1_1Matrix.html#a4db3bb07e2557cbc668bdaa1beb241df">cols</a>(); c < C; c++)</div>
<div class="line"><a name="l00354"></a><span class="lineno"> 354</span>  <a class="code" href="classmeow_1_1Matrix.html#a46a12f45237e654e0140387d7290eb8b">entry</a>(r, c, (r == c ? Entry(1) : Entry(0)));</div>
<div class="line"><a name="l00355"></a><span class="lineno"> 355</span>  <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
<div class="line"><a name="l00356"></a><span class="lineno"> 356</span>  }</div>
<div class="line"><a name="l00357"></a><span class="lineno"> 357</span> </div>
<div class="line"><a name="l00361"></a><span class="lineno"><a class="line" href="classmeow_1_1Matrix.html#a68e0d874153a42eaa95a7cb63518d6a6"> 361</a></span>  <a class="code" href="classmeow_1_1Matrix.html">Matrix</a>& <a class="code" href="classmeow_1_1Matrix.html#a68e0d874153a42eaa95a7cb63518d6a6">diagonaled</a>() {</div>
<div class="line"><a name="l00362"></a><span class="lineno"> 362</span>  <a class="code" href="classmeow_1_1Matrix.html#acf27e5ea48f42ceec61e933dfe269016">triangulared</a>();</div>
<div class="line"><a name="l00363"></a><span class="lineno"> 363</span>  <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i = 0, I = <a class="code" href="classmeow_1_1Matrix.html#a560adbe0b39f52bfb016edddc2955178">rows</a>(); i < I; ++i) {</div>
<div class="line"><a name="l00364"></a><span class="lineno"> 364</span>  <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> j = i + 1, J = <a class="code" href="classmeow_1_1Matrix.html#a4db3bb07e2557cbc668bdaa1beb241df">cols</a>(); j < J; ++j) {</div>
<div class="line"><a name="l00365"></a><span class="lineno"> 365</span>  <a class="code" href="classmeow_1_1Matrix.html#a46a12f45237e654e0140387d7290eb8b">entry</a>(i, j, Entry(0));</div>
<div class="line"><a name="l00366"></a><span class="lineno"> 366</span>  }</div>
<div class="line"><a name="l00367"></a><span class="lineno"> 367</span>  }</div>
<div class="line"><a name="l00368"></a><span class="lineno"> 368</span>  <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
<div class="line"><a name="l00369"></a><span class="lineno"> 369</span>  }</div>
<div class="line"><a name="l00370"></a><span class="lineno"> 370</span> </div>
<div class="line"><a name="l00374"></a><span class="lineno"><a class="line" href="classmeow_1_1Matrix.html#a4cf31aad4504250656a4a0a1d88ffedb"> 374</a></span>  <a class="code" href="classmeow_1_1Matrix.html">Matrix</a> <a class="code" href="classmeow_1_1Matrix.html#a4cf31aad4504250656a4a0a1d88ffedb">diagonal</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00375"></a><span class="lineno"> 375</span>  <a class="code" href="classmeow_1_1Matrix.html">Matrix</a> ret(*<span class="keyword">this</span>);</div>
<div class="line"><a name="l00376"></a><span class="lineno"> 376</span>  ret.<a class="code" href="classmeow_1_1Matrix.html#a68e0d874153a42eaa95a7cb63518d6a6">diagonaled</a>();</div>
<div class="line"><a name="l00377"></a><span class="lineno"> 377</span>  <span class="keywordflow">return</span> ret;</div>
<div class="line"><a name="l00378"></a><span class="lineno"> 378</span>  }</div>
<div class="line"><a name="l00379"></a><span class="lineno"> 379</span> </div>
<div class="line"><a name="l00385"></a><span class="lineno"><a class="line" href="classmeow_1_1Matrix.html#af6c3ae812c4290d29fb0932b655887dd"> 385</a></span>  <a class="code" href="classmeow_1_1Matrix.html">Matrix</a> <a class="code" href="classmeow_1_1Matrix.html#af6c3ae812c4290d29fb0932b655887dd">inverse</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00386"></a><span class="lineno"> 386</span>  <span class="keywordflow">if</span> (<a class="code" href="classmeow_1_1Matrix.html#a560adbe0b39f52bfb016edddc2955178">rows</a>() != <a class="code" href="classmeow_1_1Matrix.html#a4db3bb07e2557cbc668bdaa1beb241df">cols</a>() || <a class="code" href="classmeow_1_1Matrix.html#a560adbe0b39f52bfb016edddc2955178">rows</a>() == 0) <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1Matrix.html">Matrix<Entry></a>();</div>
<div class="line"><a name="l00387"></a><span class="lineno"> 387</span>  <a class="code" href="classmeow_1_1Matrix.html">Matrix</a> tmp(<a class="code" href="classmeow_1_1Matrix.html#a560adbe0b39f52bfb016edddc2955178">rows</a>(), <a class="code" href="classmeow_1_1Matrix.html#a4db3bb07e2557cbc668bdaa1beb241df">cols</a>() * 2, Entry(0));</div>
<div class="line"><a name="l00388"></a><span class="lineno"> 388</span>  <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> r = 0, R = <a class="code" href="classmeow_1_1Matrix.html#a560adbe0b39f52bfb016edddc2955178">rows</a>(); r < R; r++) {</div>
<div class="line"><a name="l00389"></a><span class="lineno"> 389</span>  <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> c = 0, C = <a class="code" href="classmeow_1_1Matrix.html#a4db3bb07e2557cbc668bdaa1beb241df">cols</a>(); c < C; c++) {</div>
<div class="line"><a name="l00390"></a><span class="lineno"> 390</span>  tmp.<a class="code" href="classmeow_1_1Matrix.html#a46a12f45237e654e0140387d7290eb8b">entry</a>(r, c, <a class="code" href="classmeow_1_1Matrix.html#a46a12f45237e654e0140387d7290eb8b">entry</a>(r, c));</div>
<div class="line"><a name="l00391"></a><span class="lineno"> 391</span>  tmp.<a class="code" href="classmeow_1_1Matrix.html#a46a12f45237e654e0140387d7290eb8b">entry</a>(r, c + <a class="code" href="classmeow_1_1Matrix.html#a4db3bb07e2557cbc668bdaa1beb241df">cols</a>(), (r == c ? Entry(1) : Entry(0)));</div>
<div class="line"><a name="l00392"></a><span class="lineno"> 392</span>  }</div>
<div class="line"><a name="l00393"></a><span class="lineno"> 393</span>  }</div>
<div class="line"><a name="l00394"></a><span class="lineno"> 394</span>  tmp.<a class="code" href="classmeow_1_1Matrix.html#acf27e5ea48f42ceec61e933dfe269016">triangulared</a>();</div>
<div class="line"><a name="l00395"></a><span class="lineno"> 395</span>  <span class="keywordflow">for</span> (ssize_t r = <a class="code" href="classmeow_1_1Matrix.html#a560adbe0b39f52bfb016edddc2955178">rows</a>() - 1; r >= 0; r--) {</div>
<div class="line"><a name="l00396"></a><span class="lineno"> 396</span>  <span class="keywordflow">if</span> (tmp(r, r) == Entry(0)) <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1Matrix.html">Matrix<Entry></a>();</div>
<div class="line"><a name="l00397"></a><span class="lineno"> 397</span>  <span class="keywordflow">for</span> (ssize_t r2 = r - 1; r2 >= 0; r2--) {</div>
<div class="line"><a name="l00398"></a><span class="lineno"> 398</span>  Entry rat(-tmp.<a class="code" href="classmeow_1_1Matrix.html#a46a12f45237e654e0140387d7290eb8b">entry</a>(r2, r) / tmp.<a class="code" href="classmeow_1_1Matrix.html#a46a12f45237e654e0140387d7290eb8b">entry</a>(r, r));</div>
<div class="line"><a name="l00399"></a><span class="lineno"> 399</span>  <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> c = r, C = tmp.<a class="code" href="classmeow_1_1Matrix.html#a4db3bb07e2557cbc668bdaa1beb241df">cols</a>(); c < C; c++) {</div>
<div class="line"><a name="l00400"></a><span class="lineno"> 400</span>  tmp.<a class="code" href="classmeow_1_1Matrix.html#a46a12f45237e654e0140387d7290eb8b">entry</a>(r2, c, tmp.<a class="code" href="classmeow_1_1Matrix.html#a46a12f45237e654e0140387d7290eb8b">entry</a>(r2, c) + rat * tmp(r, c));</div>
<div class="line"><a name="l00401"></a><span class="lineno"> 401</span>  }</div>
<div class="line"><a name="l00402"></a><span class="lineno"> 402</span>  }</div>
<div class="line"><a name="l00403"></a><span class="lineno"> 403</span>  Entry rat(tmp.<a class="code" href="classmeow_1_1Matrix.html#a46a12f45237e654e0140387d7290eb8b">entry</a>(r, r));</div>
<div class="line"><a name="l00404"></a><span class="lineno"> 404</span>  <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> c = <a class="code" href="classmeow_1_1Matrix.html#a4db3bb07e2557cbc668bdaa1beb241df">cols</a>(), C = tmp.<a class="code" href="classmeow_1_1Matrix.html#a4db3bb07e2557cbc668bdaa1beb241df">cols</a>(); c < C; c++) {</div>
<div class="line"><a name="l00405"></a><span class="lineno"> 405</span>  tmp.<a class="code" href="classmeow_1_1Matrix.html#a46a12f45237e654e0140387d7290eb8b">entry</a>(r, c - <a class="code" href="classmeow_1_1Matrix.html#a4db3bb07e2557cbc668bdaa1beb241df">cols</a>(), tmp.<a class="code" href="classmeow_1_1Matrix.html#a46a12f45237e654e0140387d7290eb8b">entry</a>(r, c) / rat);</div>
<div class="line"><a name="l00406"></a><span class="lineno"> 406</span>  }</div>
<div class="line"><a name="l00407"></a><span class="lineno"> 407</span>  }</div>
<div class="line"><a name="l00408"></a><span class="lineno"> 408</span>  tmp.<a class="code" href="classmeow_1_1Matrix.html#a8e35443c856f669d02b352f091c0404c">size</a>(<a class="code" href="classmeow_1_1Matrix.html#a4db3bb07e2557cbc668bdaa1beb241df">cols</a>(), <a class="code" href="classmeow_1_1Matrix.html#a560adbe0b39f52bfb016edddc2955178">rows</a>(), Entry(0));</div>
<div class="line"><a name="l00409"></a><span class="lineno"> 409</span>  <span class="keywordflow">return</span> tmp;</div>
<div class="line"><a name="l00410"></a><span class="lineno"> 410</span>  }</div>
<div class="line"><a name="l00411"></a><span class="lineno"> 411</span> </div>
<div class="line"><a name="l00413"></a><span class="lineno"><a class="line" href="classmeow_1_1Matrix.html#ab7b158abdfe8ad1966cc3f0490743170"> 413</a></span>  <a class="code" href="classmeow_1_1Matrix.html">Matrix</a>& <a class="code" href="classmeow_1_1Matrix.html#ab7b158abdfe8ad1966cc3f0490743170">inversed</a>() {</div>
<div class="line"><a name="l00414"></a><span class="lineno"> 414</span>  <a class="code" href="classmeow_1_1Matrix.html#afb81446984f7c27458ccef86be2de413">copyFrom</a>(<a class="code" href="classmeow_1_1Matrix.html#af6c3ae812c4290d29fb0932b655887dd">inverse</a>());</div>
<div class="line"><a name="l00415"></a><span class="lineno"> 415</span>  <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
<div class="line"><a name="l00416"></a><span class="lineno"> 416</span>  }</div>
<div class="line"><a name="l00417"></a><span class="lineno"> 417</span> </div>
<div class="line"><a name="l00419"></a><span class="lineno"><a class="line" href="classmeow_1_1Matrix.html#a869be60b593d7ce7101ee7ac788b0dd0"> 419</a></span>  <a class="code" href="classmeow_1_1Matrix.html">Matrix</a> <a class="code" href="classmeow_1_1Matrix.html#a869be60b593d7ce7101ee7ac788b0dd0">transpose</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00420"></a><span class="lineno"> 420</span>  <a class="code" href="classmeow_1_1Matrix.html">Matrix</a> ret(<a class="code" href="classmeow_1_1Matrix.html#a4db3bb07e2557cbc668bdaa1beb241df">cols</a>(), <a class="code" href="classmeow_1_1Matrix.html#a560adbe0b39f52bfb016edddc2955178">rows</a>(), Entry(0));</div>
<div class="line"><a name="l00421"></a><span class="lineno"> 421</span>  <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> r = 0, R = <a class="code" href="classmeow_1_1Matrix.html#a4db3bb07e2557cbc668bdaa1beb241df">cols</a>(); r < R; r++)</div>
<div class="line"><a name="l00422"></a><span class="lineno"> 422</span>  <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> c = 0, C = <a class="code" href="classmeow_1_1Matrix.html#a560adbe0b39f52bfb016edddc2955178">rows</a>(); c < C; c++)</div>
<div class="line"><a name="l00423"></a><span class="lineno"> 423</span>  ret.<a class="code" href="classmeow_1_1Matrix.html#a46a12f45237e654e0140387d7290eb8b">entry</a>(r, c, <a class="code" href="classmeow_1_1Matrix.html#a46a12f45237e654e0140387d7290eb8b">entry</a>(c, r));</div>
<div class="line"><a name="l00424"></a><span class="lineno"> 424</span>  <span class="keywordflow">return</span> ret;</div>
<div class="line"><a name="l00425"></a><span class="lineno"> 425</span>  }</div>
<div class="line"><a name="l00426"></a><span class="lineno"> 426</span> </div>
<div class="line"><a name="l00428"></a><span class="lineno"><a class="line" href="classmeow_1_1Matrix.html#a752bbc50fc06c7a6bfad8b4d09e19304"> 428</a></span>  <a class="code" href="classmeow_1_1Matrix.html">Matrix</a>& <a class="code" href="classmeow_1_1Matrix.html#a752bbc50fc06c7a6bfad8b4d09e19304">transposed</a>() {</div>
<div class="line"><a name="l00429"></a><span class="lineno"> 429</span>  <a class="code" href="classmeow_1_1Matrix.html#afb81446984f7c27458ccef86be2de413">copyFrom</a>(<a class="code" href="classmeow_1_1Matrix.html#a869be60b593d7ce7101ee7ac788b0dd0">transpose</a>());</div>
<div class="line"><a name="l00430"></a><span class="lineno"> 430</span>  <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
<div class="line"><a name="l00431"></a><span class="lineno"> 431</span>  }</div>
<div class="line"><a name="l00432"></a><span class="lineno"> 432</span> </div>
<div class="line"><a name="l00434"></a><span class="lineno"><a class="line" href="classmeow_1_1Matrix.html#a138c71b681404e054fa27cac5bb80d56"> 434</a></span>  <a class="code" href="classmeow_1_1Matrix.html">Matrix</a> <a class="code" href="classmeow_1_1Matrix.html#a138c71b681404e054fa27cac5bb80d56">triangular</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00435"></a><span class="lineno"> 435</span>  <a class="code" href="classmeow_1_1Matrix.html">Matrix<Entry></a> ret(*<span class="keyword">this</span>);</div>
<div class="line"><a name="l00436"></a><span class="lineno"> 436</span>  ret.<a class="code" href="classmeow_1_1Matrix.html#acf27e5ea48f42ceec61e933dfe269016">triangulared</a>();</div>
<div class="line"><a name="l00437"></a><span class="lineno"> 437</span>  <span class="keywordflow">return</span> ret;</div>
<div class="line"><a name="l00438"></a><span class="lineno"> 438</span>  }</div>
<div class="line"><a name="l00439"></a><span class="lineno"> 439</span> </div>
<div class="line"><a name="l00441"></a><span class="lineno"><a class="line" href="classmeow_1_1Matrix.html#acf27e5ea48f42ceec61e933dfe269016"> 441</a></span>  <a class="code" href="classmeow_1_1Matrix.html">Matrix</a>& <a class="code" href="classmeow_1_1Matrix.html#acf27e5ea48f42ceec61e933dfe269016">triangulared</a>() {</div>
<div class="line"><a name="l00442"></a><span class="lineno"> 442</span>  <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> r = 0, c = 0, R = <a class="code" href="classmeow_1_1Matrix.html#a560adbe0b39f52bfb016edddc2955178">rows</a>(), C = <a class="code" href="classmeow_1_1Matrix.html#a4db3bb07e2557cbc668bdaa1beb241df">cols</a>(); r < R && c < C; r++) {</div>
<div class="line"><a name="l00443"></a><span class="lineno"> 443</span>  ssize_t maxR;</div>
<div class="line"><a name="l00444"></a><span class="lineno"> 444</span>  <span class="keywordflow">for</span> ( ; c < C; c++) {</div>
<div class="line"><a name="l00445"></a><span class="lineno"> 445</span>  maxR = -1;</div>
<div class="line"><a name="l00446"></a><span class="lineno"> 446</span>  <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> r2 = r; r2 < R; r2++)</div>
<div class="line"><a name="l00447"></a><span class="lineno"> 447</span>  <span class="keywordflow">if</span> (maxR == -1 || <a class="code" href="namespacemeow.html#ae880337dfdcc67984a0dccdb50e5c5d0">tAbs</a>(<a class="code" href="classmeow_1_1Matrix.html#a46a12f45237e654e0140387d7290eb8b">entry</a>(r2, c)) > <a class="code" href="namespacemeow.html#ae880337dfdcc67984a0dccdb50e5c5d0">tAbs</a>(<a class="code" href="classmeow_1_1Matrix.html#a46a12f45237e654e0140387d7290eb8b">entry</a>(maxR, c)))</div>
<div class="line"><a name="l00448"></a><span class="lineno"> 448</span>  maxR = r2;</div>
<div class="line"><a name="l00449"></a><span class="lineno"> 449</span>  <span class="keywordflow">if</span> (<a class="code" href="classmeow_1_1Matrix.html#a46a12f45237e654e0140387d7290eb8b">entry</a>(maxR, c) != Entry(0)) <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00450"></a><span class="lineno"> 450</span>  }</div>
<div class="line"><a name="l00451"></a><span class="lineno"> 451</span>  <span class="keywordflow">if</span> (c >= C) <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00452"></a><span class="lineno"> 452</span>  <span class="keywordflow">if</span> (maxR != (ssize_t)r) {</div>
<div class="line"><a name="l00453"></a><span class="lineno"> 453</span>  <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> c2 = c; c2 < C; c2++)</div>
<div class="line"><a name="l00454"></a><span class="lineno"> 454</span>  std::swap(<span class="keyword">self</span>()->entries_[self->index( r, c2)],</div>
<div class="line"><a name="l00455"></a><span class="lineno"> 455</span>  <span class="keyword">self</span>()->entries_[self->index(maxR, c2)]);</div>
<div class="line"><a name="l00456"></a><span class="lineno"> 456</span>  }</div>
<div class="line"><a name="l00457"></a><span class="lineno"> 457</span>  <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> r2 = r + 1; r2 < R; r2++) {</div>
<div class="line"><a name="l00458"></a><span class="lineno"> 458</span>  Entry rati = -<a class="code" href="classmeow_1_1Matrix.html#a46a12f45237e654e0140387d7290eb8b">entry</a>(r2, c) / <a class="code" href="classmeow_1_1Matrix.html#a46a12f45237e654e0140387d7290eb8b">entry</a>(r, c);</div>
<div class="line"><a name="l00459"></a><span class="lineno"> 459</span>  <a class="code" href="classmeow_1_1Matrix.html#a46a12f45237e654e0140387d7290eb8b">entry</a>(r2, c, Entry(0));</div>
<div class="line"><a name="l00460"></a><span class="lineno"> 460</span>  <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> c2 = c + 1; c2 < C; c2++)</div>
<div class="line"><a name="l00461"></a><span class="lineno"> 461</span>  <a class="code" href="classmeow_1_1Matrix.html#a46a12f45237e654e0140387d7290eb8b">entry</a>(r2, c2, <a class="code" href="classmeow_1_1Matrix.html#a46a12f45237e654e0140387d7290eb8b">entry</a>(r2, c2) + <a class="code" href="classmeow_1_1Matrix.html#a46a12f45237e654e0140387d7290eb8b">entry</a>(r, c2) * rati);</div>
<div class="line"><a name="l00462"></a><span class="lineno"> 462</span>  }</div>
<div class="line"><a name="l00463"></a><span class="lineno"> 463</span>  }</div>
<div class="line"><a name="l00464"></a><span class="lineno"> 464</span>  <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
<div class="line"><a name="l00465"></a><span class="lineno"> 465</span>  }</div>
<div class="line"><a name="l00466"></a><span class="lineno"> 466</span> </div>
<div class="line"><a name="l00468"></a><span class="lineno"><a class="line" href="classmeow_1_1Matrix.html#a50bf284fe7beae52bb1bd0868486a602"> 468</a></span>  <a class="code" href="classmeow_1_1Matrix.html">Matrix</a>& <a class="code" href="classmeow_1_1Matrix.html#a50bf284fe7beae52bb1bd0868486a602">operator=</a>(<a class="code" href="classmeow_1_1Matrix.html">Matrix</a> <span class="keyword">const</span>& m) {</div>
<div class="line"><a name="l00469"></a><span class="lineno"> 469</span>  <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1Matrix.html#afb81446984f7c27458ccef86be2de413">copyFrom</a>(m);</div>
<div class="line"><a name="l00470"></a><span class="lineno"> 470</span>  }</div>
<div class="line"><a name="l00471"></a><span class="lineno"> 471</span> </div>
<div class="line"><a name="l00473"></a><span class="lineno"><a class="line" href="classmeow_1_1Matrix.html#a78b4b8b4ee30d02cb726bf7b8ac13147"> 473</a></span>  Entry <a class="code" href="classmeow_1_1Matrix.html#a78b4b8b4ee30d02cb726bf7b8ac13147">operator()</a>(<span class="keywordtype">size_t</span> r, <span class="keywordtype">size_t</span> c)<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00474"></a><span class="lineno"> 474</span>  <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1Matrix.html#a46a12f45237e654e0140387d7290eb8b">entry</a>(r, c);</div>
<div class="line"><a name="l00475"></a><span class="lineno"> 475</span>  }</div>
<div class="line"><a name="l00476"></a><span class="lineno"> 476</span> </div>
<div class="line"><a name="l00478"></a><span class="lineno"><a class="line" href="classmeow_1_1Matrix.html#a1dc03cd2475a4c5f34afbe0cb498e472"> 478</a></span>  Entry <a class="code" href="classmeow_1_1Matrix.html#a1dc03cd2475a4c5f34afbe0cb498e472">operator()</a>(<span class="keywordtype">size_t</span> r, <span class="keywordtype">size_t</span> c, Entry <span class="keyword">const</span>& e) {</div>
<div class="line"><a name="l00479"></a><span class="lineno"> 479</span>  <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1Matrix.html#a46a12f45237e654e0140387d7290eb8b">entry</a>(r, c, e);</div>
<div class="line"><a name="l00480"></a><span class="lineno"> 480</span>  }</div>
<div class="line"><a name="l00481"></a><span class="lineno"> 481</span> </div>
<div class="line"><a name="l00483"></a><span class="lineno"><a class="line" href="classmeow_1_1Matrix.html#ade31d2339af552ba1df230c8383e2f84"> 483</a></span>  <a class="code" href="classmeow_1_1Matrix.html">Matrix</a> <a class="code" href="classmeow_1_1Matrix.html#ade31d2339af552ba1df230c8383e2f84">operator+</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00484"></a><span class="lineno"> 484</span>  <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1Matrix.html#aa43f03179e3218c9af28f7374757a2cc">positive</a>();</div>
<div class="line"><a name="l00485"></a><span class="lineno"> 485</span>  }</div>
<div class="line"><a name="l00486"></a><span class="lineno"> 486</span> </div>
<div class="line"><a name="l00488"></a><span class="lineno"><a class="line" href="classmeow_1_1Matrix.html#a5d35d285b8cd59475e98f97966be68c1"> 488</a></span>  <a class="code" href="classmeow_1_1Matrix.html">Matrix</a> <a class="code" href="classmeow_1_1Matrix.html#a5d35d285b8cd59475e98f97966be68c1">operator-</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00489"></a><span class="lineno"> 489</span>  <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1Matrix.html#a581dbd8ba10d054596a3d11eaf47f274">negative</a>();</div>
<div class="line"><a name="l00490"></a><span class="lineno"> 490</span>  }</div>
<div class="line"><a name="l00491"></a><span class="lineno"> 491</span> </div>
<div class="line"><a name="l00493"></a><span class="lineno"><a class="line" href="classmeow_1_1Matrix.html#a8917cdb62ab6d8ed9572ac3303dbaab5"> 493</a></span>  <a class="code" href="classmeow_1_1Matrix.html">Matrix</a> <a class="code" href="classmeow_1_1Matrix.html#a8917cdb62ab6d8ed9572ac3303dbaab5">operator+</a>(<a class="code" href="classmeow_1_1Matrix.html">Matrix</a> <span class="keyword">const</span>& m)<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00494"></a><span class="lineno"> 494</span>  <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1Matrix.html#ac1030360f1f48119128d99428930cce6">add</a>(m);</div>
<div class="line"><a name="l00495"></a><span class="lineno"> 495</span>  }</div>
<div class="line"><a name="l00496"></a><span class="lineno"> 496</span> </div>
<div class="line"><a name="l00498"></a><span class="lineno"><a class="line" href="classmeow_1_1Matrix.html#a955d9ddcb5b3467f8377ccae281ff4f5"> 498</a></span>  <a class="code" href="classmeow_1_1Matrix.html">Matrix</a> <a class="code" href="classmeow_1_1Matrix.html#a955d9ddcb5b3467f8377ccae281ff4f5">operator-</a>(<a class="code" href="classmeow_1_1Matrix.html">Matrix</a> <span class="keyword">const</span>& m)<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00499"></a><span class="lineno"> 499</span>  <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1Matrix.html#ae89a9a7646f7b7c0f23756809c65dc8c">sub</a>(m);</div>
<div class="line"><a name="l00500"></a><span class="lineno"> 500</span>  }</div>
<div class="line"><a name="l00501"></a><span class="lineno"> 501</span> </div>
<div class="line"><a name="l00503"></a><span class="lineno"><a class="line" href="classmeow_1_1Matrix.html#a913ed9a5df441a33fcf0dab1f35814c2"> 503</a></span>  <a class="code" href="classmeow_1_1Matrix.html">Matrix</a> <a class="code" href="classmeow_1_1Matrix.html#a913ed9a5df441a33fcf0dab1f35814c2">operator*</a>(<a class="code" href="classmeow_1_1Matrix.html">Matrix</a> <span class="keyword">const</span>& m)<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00504"></a><span class="lineno"> 504</span>  <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1Matrix.html#a30fdb794e5966585e93cf715646210dd">mul</a>(m);</div>
<div class="line"><a name="l00505"></a><span class="lineno"> 505</span>  }</div>
<div class="line"><a name="l00506"></a><span class="lineno"> 506</span> </div>
<div class="line"><a name="l00508"></a><span class="lineno"><a class="line" href="classmeow_1_1Matrix.html#a15d360e71c0880fed3c9873affb04341"> 508</a></span>  <a class="code" href="classmeow_1_1Matrix.html">Matrix</a> <a class="code" href="classmeow_1_1Matrix.html#a15d360e71c0880fed3c9873affb04341">operator*</a>(Entry <span class="keyword">const</span>& s)<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00509"></a><span class="lineno"> 509</span>  <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1Matrix.html#a30fdb794e5966585e93cf715646210dd">mul</a>(s);</div>
<div class="line"><a name="l00510"></a><span class="lineno"> 510</span>  }</div>
<div class="line"><a name="l00511"></a><span class="lineno"> 511</span> </div>
<div class="line"><a name="l00513"></a><span class="lineno"><a class="line" href="classmeow_1_1Matrix.html#a807c2a35579a429a2278956fc070f31a"> 513</a></span>  <a class="code" href="classmeow_1_1Matrix.html">Matrix</a> <a class="code" href="classmeow_1_1Matrix.html#a807c2a35579a429a2278956fc070f31a">operator/</a>(Entry <span class="keyword">const</span>& s)<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00514"></a><span class="lineno"> 514</span>  <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1Matrix.html#aed17cc829d1e766d2c905d65cbae48ce">div</a>(s);</div>
<div class="line"><a name="l00515"></a><span class="lineno"> 515</span>  }</div>
<div class="line"><a name="l00516"></a><span class="lineno"> 516</span> };</div>
<div class="line"><a name="l00517"></a><span class="lineno"> 517</span> </div>
<div class="line"><a name="l00518"></a><span class="lineno"> 518</span> } <span class="comment">// meow</span></div>
<div class="line"><a name="l00519"></a><span class="lineno"> 519</span> </div>
<div class="line"><a name="l00520"></a><span class="lineno"> 520</span> <span class="preprocessor">#endif // math_Matrix_H__</span></div>
<div class="ttc" id="classmeow_1_1Matrix_html_a9dfef448574df55fc34528665183c6c2"><div class="ttname"><a href="classmeow_1_1Matrix.html#a9dfef448574df55fc34528665183c6c2">meow::Matrix::col</a></div><div class="ttdeci">Matrix col(size_t c) const </div><div class="ttdoc">Return the c -th column. </div><div class="ttdef"><b>Definition:</b> <a href="Matrix_8h_source.html#l00263">Matrix.h:263</a></div></div>
<div class="ttc" id="classmeow_1_1Matrix_html_acf27e5ea48f42ceec61e933dfe269016"><div class="ttname"><a href="classmeow_1_1Matrix.html#acf27e5ea48f42ceec61e933dfe269016">meow::Matrix::triangulared</a></div><div class="ttdeci">Matrix & triangulared()</div><div class="ttdoc">triangluar itself </div><div class="ttdef"><b>Definition:</b> <a href="Matrix_8h_source.html#l00441">Matrix.h:441</a></div></div>
<div class="ttc" id="classmeow_1_1Matrix_html_a1ac7c3d6ad50154043969005fa292981"><div class="ttname"><a href="classmeow_1_1Matrix.html#a1ac7c3d6ad50154043969005fa292981">meow::Matrix::EntryRefK</a></div><div class="ttdeci">std::vector< Entry >::const_reference EntryRefK</div><div class="ttdef"><b>Definition:</b> <a href="Matrix_8h_source.html#l00021">Matrix.h:21</a></div></div>
<div class="ttc" id="classmeow_1_1Matrix_html_a1dbef5b1a46df480f7fa3e118fd12bec"><div class="ttname"><a href="classmeow_1_1Matrix.html#a1dbef5b1a46df480f7fa3e118fd12bec">meow::Matrix::referenceFrom</a></div><div class="ttdeci">Matrix & referenceFrom(Matrix const &m)</div><div class="ttdoc">reference </div><div class="ttdef"><b>Definition:</b> <a href="Matrix_8h_source.html#l00104">Matrix.h:104</a></div></div>
<div class="ttc" id="classmeow_1_1Matrix_html_a560adbe0b39f52bfb016edddc2955178"><div class="ttname"><a href="classmeow_1_1Matrix.html#a560adbe0b39f52bfb016edddc2955178">meow::Matrix::rows</a></div><div class="ttdeci">size_t rows() const </div><div class="ttdoc">Return number of rows. </div><div class="ttdef"><b>Definition:</b> <a href="Matrix_8h_source.html#l00123">Matrix.h:123</a></div></div>
<div class="ttc" id="classmeow_1_1Matrix_html_a15d360e71c0880fed3c9873affb04341"><div class="ttname"><a href="classmeow_1_1Matrix.html#a15d360e71c0880fed3c9873affb04341">meow::Matrix::operator*</a></div><div class="ttdeci">Matrix operator*(Entry const &s) const </div><div class="ttdoc">same as mul(m) </div><div class="ttdef"><b>Definition:</b> <a href="Matrix_8h_source.html#l00508">Matrix.h:508</a></div></div>
<div class="ttc" id="classmeow_1_1Matrix_html_aed17cc829d1e766d2c905d65cbae48ce"><div class="ttname"><a href="classmeow_1_1Matrix.html#aed17cc829d1e766d2c905d65cbae48ce">meow::Matrix::div</a></div><div class="ttdeci">Matrix div(Entry const &s) const </div><div class="ttdoc">return (*this) / s. s is a scalar </div><div class="ttdef"><b>Definition:</b> <a href="Matrix_8h_source.html#l00331">Matrix.h:331</a></div></div>
<div class="ttc" id="classmeow_1_1Matrix_html_ade31d2339af552ba1df230c8383e2f84"><div class="ttname"><a href="classmeow_1_1Matrix.html#ade31d2339af552ba1df230c8383e2f84">meow::Matrix::operator+</a></div><div class="ttdeci">Matrix operator+() const </div><div class="ttdoc">same as positive() </div><div class="ttdef"><b>Definition:</b> <a href="Matrix_8h_source.html#l00483">Matrix.h:483</a></div></div>
<div class="ttc" id="classmeow_1_1Matrix_html_ab05bcd1bd8b1f8d4f250d6b3b87e023e"><div class="ttname"><a href="classmeow_1_1Matrix.html#ab05bcd1bd8b1f8d4f250d6b3b87e023e">meow::Matrix::EntryRef</a></div><div class="ttdeci">std::vector< Entry >::reference EntryRef</div><div class="ttdef"><b>Definition:</b> <a href="Matrix_8h_source.html#l00020">Matrix.h:20</a></div></div>
<div class="ttc" id="classmeow_1_1Matrix_html_add7842aea9c5b0372f56656af0d43325"><div class="ttname"><a href="classmeow_1_1Matrix.html#add7842aea9c5b0372f56656af0d43325">meow::Matrix::rows</a></div><div class="ttdeci">size_t rows(size_t r, Entry const &e)</div><div class="ttdoc">resize the matrix such that number of rows become r. </div><div class="ttdef"><b>Definition:</b> <a href="Matrix_8h_source.html#l00146">Matrix.h:146</a></div></div>
<div class="ttc" id="classmeow_1_1Matrix_html_a752bbc50fc06c7a6bfad8b4d09e19304"><div class="ttname"><a href="classmeow_1_1Matrix.html#a752bbc50fc06c7a6bfad8b4d09e19304">meow::Matrix::transposed</a></div><div class="ttdeci">Matrix & transposed()</div><div class="ttdoc">Let itself become itself's transpose matrix. </div><div class="ttdef"><b>Definition:</b> <a href="Matrix_8h_source.html#l00428">Matrix.h:428</a></div></div>
<div class="ttc" id="classmeow_1_1Matrix_html_a4db3bb07e2557cbc668bdaa1beb241df"><div class="ttname"><a href="classmeow_1_1Matrix.html#a4db3bb07e2557cbc668bdaa1beb241df">meow::Matrix::cols</a></div><div class="ttdeci">size_t cols() const </div><div class="ttdoc">Return number of cols. </div><div class="ttdef"><b>Definition:</b> <a href="Matrix_8h_source.html#l00128">Matrix.h:128</a></div></div>
<div class="ttc" id="classmeow_1_1Matrix_html_a1dc03cd2475a4c5f34afbe0cb498e472"><div class="ttname"><a href="classmeow_1_1Matrix.html#a1dc03cd2475a4c5f34afbe0cb498e472">meow::Matrix::operator()</a></div><div class="ttdeci">Entry operator()(size_t r, size_t c, Entry const &e)</div><div class="ttdoc">same as entry(r,c,e) </div><div class="ttdef"><b>Definition:</b> <a href="Matrix_8h_source.html#l00478">Matrix.h:478</a></div></div>
<div class="ttc" id="classmeow_1_1Matrix_html_af6c3ae812c4290d29fb0932b655887dd"><div class="ttname"><a href="classmeow_1_1Matrix.html#af6c3ae812c4290d29fb0932b655887dd">meow::Matrix::inverse</a></div><div class="ttdeci">Matrix inverse() const </div><div class="ttdoc">Return a matrix which is an inverse matrix of (*this) </div><div class="ttdef"><b>Definition:</b> <a href="Matrix_8h_source.html#l00385">Matrix.h:385</a></div></div>
<div class="ttc" id="classmeow_1_1Matrix_html_a93ff4579b7cb950868cad7a62bcf9fe8"><div class="ttname"><a href="classmeow_1_1Matrix.html#a93ff4579b7cb950868cad7a62bcf9fe8">meow::Matrix::subMatrix</a></div><div class="ttdeci">Matrix subMatrix(size_t rFirst, size_t rLast, size_t cFirst, size_t cLast) const </div><div class="ttdoc">Return a rLast-rFirst+1 x cLast-cFirst+1 matrix. </div><div class="ttdef"><b>Definition:</b> <a href="Matrix_8h_source.html#l00242">Matrix.h:242</a></div></div>
<div class="ttc" id="classmeow_1_1Matrix_html_a030758e4938c4d56a0b665e6a51d1405"><div class="ttname"><a href="classmeow_1_1Matrix.html#a030758e4938c4d56a0b665e6a51d1405">meow::Matrix::valid</a></div><div class="ttdeci">bool valid() const </div><div class="ttdoc">Return whether it is a valid matrix. </div><div class="ttdef"><b>Definition:</b> <a href="Matrix_8h_source.html#l00118">Matrix.h:118</a></div></div>
<div class="ttc" id="classmeow_1_1Matrix_html_a913ed9a5df441a33fcf0dab1f35814c2"><div class="ttname"><a href="classmeow_1_1Matrix.html#a913ed9a5df441a33fcf0dab1f35814c2">meow::Matrix::operator*</a></div><div class="ttdeci">Matrix operator*(Matrix const &m) const </div><div class="ttdoc">same as mul(m) </div><div class="ttdef"><b>Definition:</b> <a href="Matrix_8h_source.html#l00503">Matrix.h:503</a></div></div>
<div class="ttc" id="classmeow_1_1Matrix_html_ae623c8168ebf26473550d831f0254c4c"><div class="ttname"><a href="classmeow_1_1Matrix.html#ae623c8168ebf26473550d831f0254c4c">meow::Matrix::row</a></div><div class="ttdeci">Matrix row(size_t r) const </div><div class="ttdoc">Return the r -th row. </div><div class="ttdef"><b>Definition:</b> <a href="Matrix_8h_source.html#l00258">Matrix.h:258</a></div></div>
<div class="ttc" id="classmeow_1_1Matrix_html_a50bf284fe7beae52bb1bd0868486a602"><div class="ttname"><a href="classmeow_1_1Matrix.html#a50bf284fe7beae52bb1bd0868486a602">meow::Matrix::operator=</a></div><div class="ttdeci">Matrix & operator=(Matrix const &m)</div><div class="ttdoc">same as copyFrom </div><div class="ttdef"><b>Definition:</b> <a href="Matrix_8h_source.html#l00468">Matrix.h:468</a></div></div>
<div class="ttc" id="classmeow_1_1Matrix_html_a2dc9f17e38ba52376822744d2fc48f29"><div class="ttname"><a href="classmeow_1_1Matrix.html#a2dc9f17e38ba52376822744d2fc48f29">meow::Matrix::Matrix</a></div><div class="ttdeci">Matrix()</div><div class="ttdoc">constructor </div><div class="ttdef"><b>Definition:</b> <a href="Matrix_8h_source.html#l00056">Matrix.h:56</a></div></div>
<div class="ttc" id="classmeow_1_1Matrix_html_a4cf31aad4504250656a4a0a1d88ffedb"><div class="ttname"><a href="classmeow_1_1Matrix.html#a4cf31aad4504250656a4a0a1d88ffedb">meow::Matrix::diagonal</a></div><div class="ttdeci">Matrix diagonal() const </div><div class="ttdoc">Return a matrix which is a diangonal form of me. </div><div class="ttdef"><b>Definition:</b> <a href="Matrix_8h_source.html#l00374">Matrix.h:374</a></div></div>
<div class="ttc" id="classmeow_1_1Matrix_html_a5728557810b6c5444332557ac53597d5"><div class="ttname"><a href="classmeow_1_1Matrix.html#a5728557810b6c5444332557ac53597d5">meow::Matrix::Matrix</a></div><div class="ttdeci">Matrix(Matrix const &m)</div><div class="ttdoc">constructor </div><div class="ttdef"><b>Definition:</b> <a href="Matrix_8h_source.html#l00065">Matrix.h:65</a></div></div>
<div class="ttc" id="classmeow_1_1Matrix_html_afb81446984f7c27458ccef86be2de413"><div class="ttname"><a href="classmeow_1_1Matrix.html#afb81446984f7c27458ccef86be2de413">meow::Matrix::copyFrom</a></div><div class="ttdeci">Matrix & copyFrom(Matrix const &m)</div><div class="ttdoc">copy </div><div class="ttdef"><b>Definition:</b> <a href="Matrix_8h_source.html#l00091">Matrix.h:91</a></div></div>
<div class="ttc" id="namespacemeow_html_ae880337dfdcc67984a0dccdb50e5c5d0"><div class="ttname"><a href="namespacemeow.html#ae880337dfdcc67984a0dccdb50e5c5d0">meow::tAbs</a></div><div class="ttdeci">T tAbs(T const &t)</div><div class="ttdoc">就只是個取絕對值 </div><div class="ttdef"><b>Definition:</b> <a href="math_2utility_8h_source.html#l00141">utility.h:141</a></div></div>
<div class="ttc" id="classmeow_1_1Matrix_html_af0b4507ec5ea08e8f33aeb99f11e5f74"><div class="ttname"><a href="classmeow_1_1Matrix.html#af0b4507ec5ea08e8f33aeb99f11e5f74">meow::Matrix::Matrix</a></div><div class="ttdeci">Matrix(size_t r, size_t c, Entry const &e)</div><div class="ttdoc">constructor </div><div class="ttdef"><b>Definition:</b> <a href="Matrix_8h_source.html#l00077">Matrix.h:77</a></div></div>
<div class="ttc" id="classmeow_1_1Matrix_html_a13384643dc412817fdcd8f1834a02d12"><div class="ttname"><a href="classmeow_1_1Matrix.html#a13384643dc412817fdcd8f1834a02d12">meow::Matrix::entries</a></div><div class="ttdeci">void entries(ssize_t rFirst, ssize_t rLast, ssize_t cFirst, ssize_t cLast, Entry const &e)</div><div class="ttdoc">Change the entries from rFirst x cFirst to rLast x cLast. </div><div class="ttdef"><b>Definition:</b> <a href="Matrix_8h_source.html#l00221">Matrix.h:221</a></div></div>
<div class="ttc" id="classmeow_1_1Matrix_html_a8e35443c856f669d02b352f091c0404c"><div class="ttname"><a href="classmeow_1_1Matrix.html#a8e35443c856f669d02b352f091c0404c">meow::Matrix::size</a></div><div class="ttdeci">size_t size() const </div><div class="ttdoc">Return number of rows times number of cols. </div><div class="ttdef"><b>Definition:</b> <a href="Matrix_8h_source.html#l00133">Matrix.h:133</a></div></div>
<div class="ttc" id="classmeow_1_1Matrix_html_ac492cefa5df3a4ac6c9799931fb93605"><div class="ttname"><a href="classmeow_1_1Matrix.html#ac492cefa5df3a4ac6c9799931fb93605">meow::Matrix::size</a></div><div class="ttdeci">size_t size(size_t r, size_t c, Entry const &e)</div><div class="ttdoc">resize </div><div class="ttdef"><b>Definition:</b> <a href="Matrix_8h_source.html#l00189">Matrix.h:189</a></div></div>
<div class="ttc" id="classmeow_1_1Matrix_html_a9987d4535f1de58b822325914e3a916f"><div class="ttname"><a href="classmeow_1_1Matrix.html#a9987d4535f1de58b822325914e3a916f">meow::Matrix::identity</a></div><div class="ttdeci">Matrix identity() const </div><div class="ttdoc">Return a identity matrix with size equal to itself. </div><div class="ttdef"><b>Definition:</b> <a href="Matrix_8h_source.html#l00340">Matrix.h:340</a></div></div>
<div class="ttc" id="classmeow_1_1Matrix_html_a68e0d874153a42eaa95a7cb63518d6a6"><div class="ttname"><a href="classmeow_1_1Matrix.html#a68e0d874153a42eaa95a7cb63518d6a6">meow::Matrix::diagonaled</a></div><div class="ttdeci">Matrix & diagonaled()</div><div class="ttdoc">Let itself be an diagonal form of original itself. </div><div class="ttdef"><b>Definition:</b> <a href="Matrix_8h_source.html#l00361">Matrix.h:361</a></div></div>
<div class="ttc" id="classmeow_1_1Matrix_html_a869be60b593d7ce7101ee7ac788b0dd0"><div class="ttname"><a href="classmeow_1_1Matrix.html#a869be60b593d7ce7101ee7ac788b0dd0">meow::Matrix::transpose</a></div><div class="ttdeci">Matrix transpose() const </div><div class="ttdoc">return itself's transpose matrix </div><div class="ttdef"><b>Definition:</b> <a href="Matrix_8h_source.html#l00419">Matrix.h:419</a></div></div>
<div class="ttc" id="classmeow_1_1Matrix_html_ae66fe3b4deb85b9b4c047f405a60f10e"><div class="ttname"><a href="classmeow_1_1Matrix.html#ae66fe3b4deb85b9b4c047f405a60f10e">meow::Matrix::~Matrix</a></div><div class="ttdeci">~Matrix()</div><div class="ttdoc">destructor </div><div class="ttdef"><b>Definition:</b> <a href="Matrix_8h_source.html#l00081">Matrix.h:81</a></div></div>
<div class="ttc" id="classmeow_1_1Matrix_html_a30fdb794e5966585e93cf715646210dd"><div class="ttname"><a href="classmeow_1_1Matrix.html#a30fdb794e5966585e93cf715646210dd">meow::Matrix::mul</a></div><div class="ttdeci">Matrix mul(Matrix const &m) const </div><div class="ttdoc">return (*this) times m. </div><div class="ttdef"><b>Definition:</b> <a href="Matrix_8h_source.html#l00311">Matrix.h:311</a></div></div>
<div class="ttc" id="classmeow_1_1Matrix_html_a06ac197ecfa9bc8bd5e9d9094f2d01ab"><div class="ttname"><a href="classmeow_1_1Matrix.html#a06ac197ecfa9bc8bd5e9d9094f2d01ab">meow::Matrix::mul</a></div><div class="ttdeci">Matrix mul(Entry const &s) const </div><div class="ttdoc">return (*this) times s. s is a scalar </div><div class="ttdef"><b>Definition:</b> <a href="Matrix_8h_source.html#l00322">Matrix.h:322</a></div></div>
<div class="ttc" id="classmeow_1_1Matrix_html_ab49fa7564c37c6bc164dc368a94fed6b"><div class="ttname"><a href="classmeow_1_1Matrix.html#ab49fa7564c37c6bc164dc368a94fed6b">meow::Matrix::entryGet</a></div><div class="ttdeci">EntryRef entryGet(size_t r, size_t c)</div><div class="ttdoc">Get the entry at r x c. </div><div class="ttdef"><b>Definition:</b> <a href="Matrix_8h_source.html#l00207">Matrix.h:207</a></div></div>
<div class="ttc" id="classmeow_1_1Matrix_html_ab7b158abdfe8ad1966cc3f0490743170"><div class="ttname"><a href="classmeow_1_1Matrix.html#ab7b158abdfe8ad1966cc3f0490743170">meow::Matrix::inversed</a></div><div class="ttdeci">Matrix & inversed()</div><div class="ttdoc">let itself become itself's inverse matrix </div><div class="ttdef"><b>Definition:</b> <a href="Matrix_8h_source.html#l00413">Matrix.h:413</a></div></div>
<div class="ttc" id="classmeow_1_1Matrix_html_ae89a9a7646f7b7c0f23756809c65dc8c"><div class="ttname"><a href="classmeow_1_1Matrix.html#ae89a9a7646f7b7c0f23756809c65dc8c">meow::Matrix::sub</a></div><div class="ttdeci">Matrix sub(Matrix const &m) const </div><div class="ttdoc">return (*this) - m. </div><div class="ttdef"><b>Definition:</b> <a href="Matrix_8h_source.html#l00298">Matrix.h:298</a></div></div>
<div class="ttc" id="classmeow_1_1Matrix_html_a8917cdb62ab6d8ed9572ac3303dbaab5"><div class="ttname"><a href="classmeow_1_1Matrix.html#a8917cdb62ab6d8ed9572ac3303dbaab5">meow::Matrix::operator+</a></div><div class="ttdeci">Matrix operator+(Matrix const &m) const </div><div class="ttdoc">same as add(m) </div><div class="ttdef"><b>Definition:</b> <a href="Matrix_8h_source.html#l00493">Matrix.h:493</a></div></div>
<div class="ttc" id="classmeow_1_1Matrix_html_a78b4b8b4ee30d02cb726bf7b8ac13147"><div class="ttname"><a href="classmeow_1_1Matrix.html#a78b4b8b4ee30d02cb726bf7b8ac13147">meow::Matrix::operator()</a></div><div class="ttdeci">Entry operator()(size_t r, size_t c) const </div><div class="ttdoc">same as entry(r,c) </div><div class="ttdef"><b>Definition:</b> <a href="Matrix_8h_source.html#l00473">Matrix.h:473</a></div></div>
<div class="ttc" id="classmeow_1_1Matrix_html"><div class="ttname"><a href="classmeow_1_1Matrix.html">meow::Matrix</a></div><div class="ttdoc">matrix </div><div class="ttdef"><b>Definition:</b> <a href="Matrix_8h_source.html#l00018">Matrix.h:18</a></div></div>
<div class="ttc" id="classmeow_1_1Matrix_html_a5d35d285b8cd59475e98f97966be68c1"><div class="ttname"><a href="classmeow_1_1Matrix.html#a5d35d285b8cd59475e98f97966be68c1">meow::Matrix::operator-</a></div><div class="ttdeci">Matrix operator-() const </div><div class="ttdoc">same as negative() </div><div class="ttdef"><b>Definition:</b> <a href="Matrix_8h_source.html#l00488">Matrix.h:488</a></div></div>
<div class="ttc" id="classmeow_1_1Matrix_html_aaba0981e54a17f0df8af9dabe9cad06f"><div class="ttname"><a href="classmeow_1_1Matrix.html#aaba0981e54a17f0df8af9dabe9cad06f">meow::Matrix::entry</a></div><div class="ttdeci">Entry entry(size_t r, size_t c, Entry const &e)</div><div class="ttdoc">Change the entry at r x c. </div><div class="ttdef"><b>Definition:</b> <a href="Matrix_8h_source.html#l00201">Matrix.h:201</a></div></div>
<div class="ttc" id="classmeow_1_1Matrix_html_abc6f5c824ee47cb15094729ca91f2e7c"><div class="ttname"><a href="classmeow_1_1Matrix.html#abc6f5c824ee47cb15094729ca91f2e7c">meow::Matrix::identitied</a></div><div class="ttdeci">Matrix & identitied()</div><div class="ttdoc">Let itself be an identity matrix. </div><div class="ttdef"><b>Definition:</b> <a href="Matrix_8h_source.html#l00351">Matrix.h:351</a></div></div>
<div class="ttc" id="classmeow_1_1Matrix_html_a46a12f45237e654e0140387d7290eb8b"><div class="ttname"><a href="classmeow_1_1Matrix.html#a46a12f45237e654e0140387d7290eb8b">meow::Matrix::entry</a></div><div class="ttdeci">Entry entry(size_t r, size_t c) const </div><div class="ttdoc">Access the entry at r x c. </div><div class="ttdef"><b>Definition:</b> <a href="Matrix_8h_source.html#l00196">Matrix.h:196</a></div></div>
<div class="ttc" id="classmeow_1_1Matrix_html_a581dbd8ba10d054596a3d11eaf47f274"><div class="ttname"><a href="classmeow_1_1Matrix.html#a581dbd8ba10d054596a3d11eaf47f274">meow::Matrix::negative</a></div><div class="ttdeci">Matrix negative() const </div><div class="ttdoc">return -(*this) </div><div class="ttdef"><b>Definition:</b> <a href="Matrix_8h_source.html#l00273">Matrix.h:273</a></div></div>
<div class="ttc" id="classmeow_1_1Self_html"><div class="ttname"><a href="classmeow_1_1Self.html">meow::Self< Myself ></a></div></div>
<div class="ttc" id="classmeow_1_1Matrix_html_a30d16679bb6843c5e35aae81738f3306"><div class="ttname"><a href="classmeow_1_1Matrix.html#a30d16679bb6843c5e35aae81738f3306">meow::Matrix::cols</a></div><div class="ttdeci">size_t cols(size_t c, Entry const &e)</div><div class="ttdoc">resize the matrix such that number of cols become c </div><div class="ttdef"><b>Definition:</b> <a href="Matrix_8h_source.html#l00163">Matrix.h:163</a></div></div>
<div class="ttc" id="classmeow_1_1Matrix_html_a807c2a35579a429a2278956fc070f31a"><div class="ttname"><a href="classmeow_1_1Matrix.html#a807c2a35579a429a2278956fc070f31a">meow::Matrix::operator/</a></div><div class="ttdeci">Matrix operator/(Entry const &s) const </div><div class="ttdoc">same as div(s) </div><div class="ttdef"><b>Definition:</b> <a href="Matrix_8h_source.html#l00513">Matrix.h:513</a></div></div>
<div class="ttc" id="classmeow_1_1Matrix_html_aa43f03179e3218c9af28f7374757a2cc"><div class="ttname"><a href="classmeow_1_1Matrix.html#aa43f03179e3218c9af28f7374757a2cc">meow::Matrix::positive</a></div><div class="ttdeci">Matrix positive() const </div><div class="ttdoc">return +(*this) </div><div class="ttdef"><b>Definition:</b> <a href="Matrix_8h_source.html#l00268">Matrix.h:268</a></div></div>
<div class="ttc" id="classmeow_1_1Matrix_html_ac17251cb984beb1f74558724a22a0120"><div class="ttname"><a href="classmeow_1_1Matrix.html#ac17251cb984beb1f74558724a22a0120">meow::Matrix::reset</a></div><div class="ttdeci">void reset(size_t r, size_t c, Entry const &e)</div><div class="ttdoc">reset the size of the matrix to r x c with entry all be e </div><div class="ttdef"><b>Definition:</b> <a href="Matrix_8h_source.html#l00110">Matrix.h:110</a></div></div>
<div class="ttc" id="classmeow_1_1Matrix_html_a955d9ddcb5b3467f8377ccae281ff4f5"><div class="ttname"><a href="classmeow_1_1Matrix.html#a955d9ddcb5b3467f8377ccae281ff4f5">meow::Matrix::operator-</a></div><div class="ttdeci">Matrix operator-(Matrix const &m) const </div><div class="ttdoc">same as sub(m) </div><div class="ttdef"><b>Definition:</b> <a href="Matrix_8h_source.html#l00498">Matrix.h:498</a></div></div>
<div class="ttc" id="classmeow_1_1Matrix_html_a138c71b681404e054fa27cac5bb80d56"><div class="ttname"><a href="classmeow_1_1Matrix.html#a138c71b681404e054fa27cac5bb80d56">meow::Matrix::triangular</a></div><div class="ttdeci">Matrix triangular() const </div><div class="ttdoc">return a matrix which is the triangular form of (*this) </div><div class="ttdef"><b>Definition:</b> <a href="Matrix_8h_source.html#l00434">Matrix.h:434</a></div></div>
<div class="ttc" id="classmeow_1_1Matrix_html_ac1030360f1f48119128d99428930cce6"><div class="ttname"><a href="classmeow_1_1Matrix.html#ac1030360f1f48119128d99428930cce6">meow::Matrix::add</a></div><div class="ttdeci">Matrix add(Matrix const &m) const </div><div class="ttdoc">return (*this) + m. </div><div class="ttdef"><b>Definition:</b> <a href="Matrix_8h_source.html#l00285">Matrix.h:285</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- HTML footer for doxygen 1.8.3.1-->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="dir_92fecd8d02dd5e7a67429447fdf0f60f.html">meowpp</a></li><li class="navelem"><a class="el" href="dir_77e0ab67466b1e7d76f50725a5ab9910.html">math</a></li><li class="navelem"><a class="el" href="Matrix_8h.html">Matrix.h</a></li>
<li class="footer">Generated on Tue Jun 24 2014 03:53:31 for Templates -- Meow by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 </li>
</ul>
</div>
</body>
</html>
|