root/doc/html/ls__solve_8h-source.html @ 354

Revision 353, 19.9 kB (checked in by smidl, 16 years ago)

doc

Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
3<title>mixpp: ls_solve.h Source File</title>
4<link href="tabs.css" rel="stylesheet" type="text/css">
5<link href="doxygen.css" rel="stylesheet" type="text/css">
6</head><body>
7<!-- Generated by Doxygen 1.5.8 -->
8<script type="text/javascript">
9<!--
10function changeDisplayState (e){
11  var num=this.id.replace(/[^[0-9]/g,'');
12  var button=this.firstChild;
13  var sectionDiv=document.getElementById('dynsection'+num);
14  if (sectionDiv.style.display=='none'||sectionDiv.style.display==''){
15    sectionDiv.style.display='block';
16    button.src='open.gif';
17  }else{
18    sectionDiv.style.display='none';
19    button.src='closed.gif';
20  }
21}
22function initDynSections(){
23  var divs=document.getElementsByTagName('div');
24  var sectionCounter=1;
25  for(var i=0;i<divs.length-1;i++){
26    if(divs[i].className=='dynheader'&&divs[i+1].className=='dynsection'){
27      var header=divs[i];
28      var section=divs[i+1];
29      var button=header.firstChild;
30      if (button!='IMG'){
31        divs[i].insertBefore(document.createTextNode(' '),divs[i].firstChild);
32        button=document.createElement('img');
33        divs[i].insertBefore(button,divs[i].firstChild);
34      }
35      header.style.cursor='pointer';
36      header.onclick=changeDisplayState;
37      header.id='dynheader'+sectionCounter;
38      button.src='closed.gif';
39      section.id='dynsection'+sectionCounter;
40      section.style.display='none';
41      section.style.marginLeft='14px';
42      sectionCounter++;
43    }
44  }
45}
46window.onload = initDynSections;
47-->
48</script>
49<div class="navigation" id="top">
50  <div class="tabs">
51    <ul>
52      <li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
53      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
54      <li><a href="modules.html"><span>Modules</span></a></li>
55      <li><a href="annotated.html"><span>Classes</span></a></li>
56      <li class="current"><a href="files.html"><span>Files</span></a></li>
57    </ul>
58  </div>
59  <div class="tabs">
60    <ul>
61      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
62      <li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
63    </ul>
64  </div>
65<h1>ls_solve.h</h1><a href="ls__solve_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
66<a name="l00029"></a>00029 <span class="preprocessor">#ifndef LS_SOLVE_H</span>
67<a name="l00030"></a>00030 <span class="preprocessor"></span><span class="preprocessor">#define LS_SOLVE_H</span>
68<a name="l00031"></a>00031 <span class="preprocessor"></span>
69<a name="l00032"></a>00032 <span class="preprocessor">#include &lt;<a class="code" href="mat_8h.html" title="Matrix Class Definitions.">itpp/base/mat.h</a>&gt;</span>
70<a name="l00033"></a>00033
71<a name="l00034"></a>00034
72<a name="l00035"></a>00035 <span class="keyword">namespace </span>itpp
73<a name="l00036"></a>00036 {
74<a name="l00037"></a>00037
75<a name="l00038"></a>00038
76<a name="l00041"></a>00041
77<a name="l00042"></a>00042
78<a name="l00048"></a>00048 <span class="keywordtype">bool</span> <a class="code" href="group__linearequations.html#g66c689c7c7dd59dcc617297e9e09674c" title="Solve multiple linear equations by LU factorisation.">ls_solve</a>(<span class="keyword">const</span> mat &amp;A, <span class="keyword">const</span> vec &amp;b, vec &amp;x);
79<a name="l00049"></a>00049
80<a name="l00055"></a>00055 vec <a class="code" href="group__linearequations.html#g66c689c7c7dd59dcc617297e9e09674c" title="Solve multiple linear equations by LU factorisation.">ls_solve</a>(<span class="keyword">const</span> mat &amp;A, <span class="keyword">const</span> vec &amp;b);
81<a name="l00056"></a>00056
82<a name="l00062"></a>00062 <span class="keywordtype">bool</span> <a class="code" href="group__linearequations.html#g66c689c7c7dd59dcc617297e9e09674c" title="Solve multiple linear equations by LU factorisation.">ls_solve</a>(<span class="keyword">const</span> mat &amp;A, <span class="keyword">const</span> mat &amp;B, mat &amp;X);
83<a name="l00063"></a>00063
84<a name="l00069"></a>00069 mat <a class="code" href="group__linearequations.html#g66c689c7c7dd59dcc617297e9e09674c" title="Solve multiple linear equations by LU factorisation.">ls_solve</a>(<span class="keyword">const</span> mat &amp;A, <span class="keyword">const</span> mat &amp;B);
85<a name="l00070"></a>00070
86<a name="l00071"></a>00071
87<a name="l00077"></a>00077 <span class="keywordtype">bool</span> <a class="code" href="group__linearequations.html#g66c689c7c7dd59dcc617297e9e09674c" title="Solve multiple linear equations by LU factorisation.">ls_solve</a>(<span class="keyword">const</span> cmat &amp;A, <span class="keyword">const</span> cvec &amp;b, cvec &amp;x);
88<a name="l00078"></a>00078
89<a name="l00084"></a>00084 cvec <a class="code" href="group__linearequations.html#g66c689c7c7dd59dcc617297e9e09674c" title="Solve multiple linear equations by LU factorisation.">ls_solve</a>(<span class="keyword">const</span> cmat &amp;A, <span class="keyword">const</span> cvec &amp;b);
90<a name="l00085"></a>00085
91<a name="l00091"></a>00091 <span class="keywordtype">bool</span> <a class="code" href="group__linearequations.html#g66c689c7c7dd59dcc617297e9e09674c" title="Solve multiple linear equations by LU factorisation.">ls_solve</a>(<span class="keyword">const</span> cmat &amp;A, <span class="keyword">const</span> cmat &amp;B, cmat &amp;X);
92<a name="l00092"></a>00092
93<a name="l00098"></a>00098 cmat <a class="code" href="group__linearequations.html#g66c689c7c7dd59dcc617297e9e09674c" title="Solve multiple linear equations by LU factorisation.">ls_solve</a>(<span class="keyword">const</span> cmat &amp;A, <span class="keyword">const</span> cmat &amp;B);
94<a name="l00099"></a>00099
95<a name="l00100"></a>00100
96<a name="l00106"></a>00106 <span class="keywordtype">bool</span> <a class="code" href="group__linearequations.html#g682ef1051b2386ed6e47c328617f46d1" title="Solve linear equation system by Cholesky factorisation.">ls_solve_chol</a>(<span class="keyword">const</span> mat &amp;A, <span class="keyword">const</span> vec &amp;b, vec &amp;x);
97<a name="l00107"></a>00107
98<a name="l00113"></a>00113 vec <a class="code" href="group__linearequations.html#g682ef1051b2386ed6e47c328617f46d1" title="Solve linear equation system by Cholesky factorisation.">ls_solve_chol</a>(<span class="keyword">const</span> mat &amp;A, <span class="keyword">const</span> vec &amp;b);
99<a name="l00114"></a>00114
100<a name="l00120"></a>00120 <span class="keywordtype">bool</span> <a class="code" href="group__linearequations.html#g682ef1051b2386ed6e47c328617f46d1" title="Solve linear equation system by Cholesky factorisation.">ls_solve_chol</a>(<span class="keyword">const</span> mat &amp;A, <span class="keyword">const</span> mat &amp;B, mat &amp;X);
101<a name="l00121"></a>00121
102<a name="l00127"></a>00127 mat <a class="code" href="group__linearequations.html#g682ef1051b2386ed6e47c328617f46d1" title="Solve linear equation system by Cholesky factorisation.">ls_solve_chol</a>(<span class="keyword">const</span> mat &amp;A, <span class="keyword">const</span> mat &amp;B);
103<a name="l00128"></a>00128
104<a name="l00129"></a>00129
105<a name="l00135"></a>00135 <span class="keywordtype">bool</span> <a class="code" href="group__linearequations.html#g682ef1051b2386ed6e47c328617f46d1" title="Solve linear equation system by Cholesky factorisation.">ls_solve_chol</a>(<span class="keyword">const</span> cmat &amp;A, <span class="keyword">const</span> cvec &amp;b, cvec &amp;x);
106<a name="l00136"></a>00136
107<a name="l00142"></a>00142 cvec <a class="code" href="group__linearequations.html#g682ef1051b2386ed6e47c328617f46d1" title="Solve linear equation system by Cholesky factorisation.">ls_solve_chol</a>(<span class="keyword">const</span> cmat &amp;A, <span class="keyword">const</span> cvec &amp;b);
108<a name="l00143"></a>00143
109<a name="l00149"></a>00149 <span class="keywordtype">bool</span> <a class="code" href="group__linearequations.html#g682ef1051b2386ed6e47c328617f46d1" title="Solve linear equation system by Cholesky factorisation.">ls_solve_chol</a>(<span class="keyword">const</span> cmat &amp;A, <span class="keyword">const</span> cmat &amp;B, cmat &amp;X);
110<a name="l00150"></a>00150
111<a name="l00156"></a>00156 cmat <a class="code" href="group__linearequations.html#g682ef1051b2386ed6e47c328617f46d1" title="Solve linear equation system by Cholesky factorisation.">ls_solve_chol</a>(<span class="keyword">const</span> cmat &amp;A, <span class="keyword">const</span> cmat &amp;B);
112<a name="l00157"></a>00157
113<a name="l00158"></a>00158
114<a name="l00159"></a>00159
115<a name="l00165"></a>00165 <span class="keywordtype">bool</span> <a class="code" href="group__linearequations.html#g60f41335126f7c70973f95ff8147fbfd" title="Solves overdetermined linear equation systems.">ls_solve_od</a>(<span class="keyword">const</span> mat &amp;A, <span class="keyword">const</span> vec &amp;b, vec &amp;x);
116<a name="l00166"></a>00166
117<a name="l00172"></a>00172 vec <a class="code" href="group__linearequations.html#g60f41335126f7c70973f95ff8147fbfd" title="Solves overdetermined linear equation systems.">ls_solve_od</a>(<span class="keyword">const</span> mat &amp;A, <span class="keyword">const</span> vec &amp;b);
118<a name="l00173"></a>00173
119<a name="l00179"></a>00179 <span class="keywordtype">bool</span> <a class="code" href="group__linearequations.html#g60f41335126f7c70973f95ff8147fbfd" title="Solves overdetermined linear equation systems.">ls_solve_od</a>(<span class="keyword">const</span> mat &amp;A, <span class="keyword">const</span> mat &amp;B, mat &amp;X);
120<a name="l00180"></a>00180
121<a name="l00186"></a>00186 mat <a class="code" href="group__linearequations.html#g60f41335126f7c70973f95ff8147fbfd" title="Solves overdetermined linear equation systems.">ls_solve_od</a>(<span class="keyword">const</span> mat &amp;A, <span class="keyword">const</span> mat &amp;B);
122<a name="l00187"></a>00187
123<a name="l00188"></a>00188
124<a name="l00194"></a>00194 <span class="keywordtype">bool</span> <a class="code" href="group__linearequations.html#g60f41335126f7c70973f95ff8147fbfd" title="Solves overdetermined linear equation systems.">ls_solve_od</a>(<span class="keyword">const</span> cmat &amp;A, <span class="keyword">const</span> cvec &amp;b, cvec &amp;x);
125<a name="l00195"></a>00195
126<a name="l00201"></a>00201 cvec <a class="code" href="group__linearequations.html#g60f41335126f7c70973f95ff8147fbfd" title="Solves overdetermined linear equation systems.">ls_solve_od</a>(<span class="keyword">const</span> cmat &amp;A, <span class="keyword">const</span> cvec &amp;b);
127<a name="l00202"></a>00202
128<a name="l00208"></a>00208 <span class="keywordtype">bool</span> <a class="code" href="group__linearequations.html#g60f41335126f7c70973f95ff8147fbfd" title="Solves overdetermined linear equation systems.">ls_solve_od</a>(<span class="keyword">const</span> cmat &amp;A, <span class="keyword">const</span> cmat &amp;B, cmat &amp;X);
129<a name="l00209"></a>00209
130<a name="l00215"></a>00215 cmat <a class="code" href="group__linearequations.html#g60f41335126f7c70973f95ff8147fbfd" title="Solves overdetermined linear equation systems.">ls_solve_od</a>(<span class="keyword">const</span> cmat &amp;A, <span class="keyword">const</span> cmat &amp;B);
131<a name="l00216"></a>00216
132<a name="l00217"></a>00217
133<a name="l00218"></a>00218
134<a name="l00224"></a>00224 <span class="keywordtype">bool</span> <a class="code" href="group__linearequations.html#g67f1f4ffa7b7ea7bdb0c2d8276b58988" title="Solves underdetermined linear equation systems.">ls_solve_ud</a>(<span class="keyword">const</span> mat &amp;A, <span class="keyword">const</span> vec &amp;b, vec &amp;x);
135<a name="l00225"></a>00225
136<a name="l00231"></a>00231 vec <a class="code" href="group__linearequations.html#g67f1f4ffa7b7ea7bdb0c2d8276b58988" title="Solves underdetermined linear equation systems.">ls_solve_ud</a>(<span class="keyword">const</span> mat &amp;A, <span class="keyword">const</span> vec &amp;b);
137<a name="l00232"></a>00232
138<a name="l00238"></a>00238 <span class="keywordtype">bool</span> <a class="code" href="group__linearequations.html#g67f1f4ffa7b7ea7bdb0c2d8276b58988" title="Solves underdetermined linear equation systems.">ls_solve_ud</a>(<span class="keyword">const</span> mat &amp;A, <span class="keyword">const</span> mat &amp;B, mat &amp;X);
139<a name="l00239"></a>00239
140<a name="l00245"></a>00245 mat <a class="code" href="group__linearequations.html#g67f1f4ffa7b7ea7bdb0c2d8276b58988" title="Solves underdetermined linear equation systems.">ls_solve_ud</a>(<span class="keyword">const</span> mat &amp;A, <span class="keyword">const</span> mat &amp;B);
141<a name="l00246"></a>00246
142<a name="l00247"></a>00247
143<a name="l00253"></a>00253 <span class="keywordtype">bool</span> <a class="code" href="group__linearequations.html#g67f1f4ffa7b7ea7bdb0c2d8276b58988" title="Solves underdetermined linear equation systems.">ls_solve_ud</a>(<span class="keyword">const</span> cmat &amp;A, <span class="keyword">const</span> cvec &amp;b, cvec &amp;x);
144<a name="l00254"></a>00254
145<a name="l00260"></a>00260 cvec <a class="code" href="group__linearequations.html#g67f1f4ffa7b7ea7bdb0c2d8276b58988" title="Solves underdetermined linear equation systems.">ls_solve_ud</a>(<span class="keyword">const</span> cmat &amp;A, <span class="keyword">const</span> cvec &amp;b);
146<a name="l00261"></a>00261
147<a name="l00267"></a>00267 <span class="keywordtype">bool</span> <a class="code" href="group__linearequations.html#g67f1f4ffa7b7ea7bdb0c2d8276b58988" title="Solves underdetermined linear equation systems.">ls_solve_ud</a>(<span class="keyword">const</span> cmat &amp;A, <span class="keyword">const</span> cmat &amp;B, cmat &amp;X);
148<a name="l00268"></a>00268
149<a name="l00274"></a>00274 cmat <a class="code" href="group__linearequations.html#g67f1f4ffa7b7ea7bdb0c2d8276b58988" title="Solves underdetermined linear equation systems.">ls_solve_ud</a>(<span class="keyword">const</span> cmat &amp;A, <span class="keyword">const</span> cmat &amp;B);
150<a name="l00275"></a>00275
151<a name="l00276"></a>00276
152<a name="l00282"></a>00282 <span class="keywordtype">bool</span> <a class="code" href="group__linearequations.html#g3d33801c6488e98ad4b9e0842909644f" title="A general linear equation system solver.">backslash</a>(<span class="keyword">const</span> mat &amp;A, <span class="keyword">const</span> vec &amp;b, vec &amp;x);
153<a name="l00283"></a>00283
154<a name="l00289"></a>00289 vec <a class="code" href="group__linearequations.html#g3d33801c6488e98ad4b9e0842909644f" title="A general linear equation system solver.">backslash</a>(<span class="keyword">const</span> mat &amp;A, <span class="keyword">const</span> vec &amp;b);
155<a name="l00290"></a>00290
156<a name="l00296"></a>00296 <span class="keywordtype">bool</span> <a class="code" href="group__linearequations.html#g3d33801c6488e98ad4b9e0842909644f" title="A general linear equation system solver.">backslash</a>(<span class="keyword">const</span> mat &amp;A, <span class="keyword">const</span> mat &amp;B, mat &amp;X);
157<a name="l00297"></a>00297
158<a name="l00303"></a>00303 mat <a class="code" href="group__linearequations.html#g3d33801c6488e98ad4b9e0842909644f" title="A general linear equation system solver.">backslash</a>(<span class="keyword">const</span> mat &amp;A, <span class="keyword">const</span> mat &amp;B);
159<a name="l00304"></a>00304
160<a name="l00305"></a>00305
161<a name="l00311"></a>00311 <span class="keywordtype">bool</span> <a class="code" href="group__linearequations.html#g3d33801c6488e98ad4b9e0842909644f" title="A general linear equation system solver.">backslash</a>(<span class="keyword">const</span> cmat &amp;A, <span class="keyword">const</span> cvec &amp;b, cvec &amp;x);
162<a name="l00312"></a>00312
163<a name="l00318"></a>00318 cvec <a class="code" href="group__linearequations.html#g3d33801c6488e98ad4b9e0842909644f" title="A general linear equation system solver.">backslash</a>(<span class="keyword">const</span> cmat &amp;A, <span class="keyword">const</span> cvec &amp;b);
164<a name="l00319"></a>00319
165<a name="l00325"></a>00325 <span class="keywordtype">bool</span> <a class="code" href="group__linearequations.html#g3d33801c6488e98ad4b9e0842909644f" title="A general linear equation system solver.">backslash</a>(<span class="keyword">const</span> cmat &amp;A, <span class="keyword">const</span> cmat &amp;B, cmat &amp;X);
166<a name="l00326"></a>00326
167<a name="l00332"></a>00332 cmat <a class="code" href="group__linearequations.html#g3d33801c6488e98ad4b9e0842909644f" title="A general linear equation system solver.">backslash</a>(<span class="keyword">const</span> cmat &amp;A, <span class="keyword">const</span> cmat &amp;B);
168<a name="l00333"></a>00333
169<a name="l00334"></a>00334
170<a name="l00335"></a>00335
171<a name="l00342"></a>00342 vec <a class="code" href="group__linearequations.html#g8c7d440ecb34fd3d1c6f015fe4877ff7" title="Forward substitution of band matrices.">forward_substitution</a>(<span class="keyword">const</span> mat &amp;L, <span class="keyword">const</span> vec &amp;b);
172<a name="l00343"></a>00343
173<a name="l00350"></a>00350 <span class="keywordtype">void</span> <a class="code" href="group__linearequations.html#g8c7d440ecb34fd3d1c6f015fe4877ff7" title="Forward substitution of band matrices.">forward_substitution</a>(<span class="keyword">const</span> mat &amp;L, <span class="keyword">const</span> vec &amp;b, vec &amp;x);
174<a name="l00351"></a>00351
175<a name="l00359"></a>00359 vec <a class="code" href="group__linearequations.html#g8c7d440ecb34fd3d1c6f015fe4877ff7" title="Forward substitution of band matrices.">forward_substitution</a>(<span class="keyword">const</span> mat &amp;L, <span class="keywordtype">int</span> p, <span class="keyword">const</span> vec &amp;b);
176<a name="l00360"></a>00360
177<a name="l00368"></a>00368 <span class="keywordtype">void</span> <a class="code" href="group__linearequations.html#g8c7d440ecb34fd3d1c6f015fe4877ff7" title="Forward substitution of band matrices.">forward_substitution</a>(<span class="keyword">const</span> mat &amp;L, <span class="keywordtype">int</span> p, <span class="keyword">const</span> vec &amp;b, vec &amp;x);
178<a name="l00369"></a>00369
179<a name="l00376"></a>00376 vec <a class="code" href="group__linearequations.html#g4dc8a32c721296c2480fd991b8a570d1" title="Backward substitution of band matrix.">backward_substitution</a>(<span class="keyword">const</span> mat &amp;U, <span class="keyword">const</span> vec &amp;b);
180<a name="l00377"></a>00377
181<a name="l00384"></a>00384 <span class="keywordtype">void</span> <a class="code" href="group__linearequations.html#g4dc8a32c721296c2480fd991b8a570d1" title="Backward substitution of band matrix.">backward_substitution</a>(<span class="keyword">const</span> mat &amp;U, <span class="keyword">const</span> vec &amp;b, vec &amp;x);
182<a name="l00385"></a>00385
183<a name="l00393"></a>00393 vec <a class="code" href="group__linearequations.html#g4dc8a32c721296c2480fd991b8a570d1" title="Backward substitution of band matrix.">backward_substitution</a>(<span class="keyword">const</span> mat &amp;U, <span class="keywordtype">int</span> q, <span class="keyword">const</span> vec &amp;b);
184<a name="l00394"></a>00394
185<a name="l00402"></a>00402 <span class="keywordtype">void</span> <a class="code" href="group__linearequations.html#g4dc8a32c721296c2480fd991b8a570d1" title="Backward substitution of band matrix.">backward_substitution</a>(<span class="keyword">const</span> mat &amp;U, <span class="keywordtype">int</span> q, <span class="keyword">const</span> vec &amp;b, vec &amp;x);
186<a name="l00403"></a>00403
187<a name="l00405"></a>00405
188<a name="l00406"></a>00406 } <span class="comment">//namespace itpp</span>
189<a name="l00407"></a>00407
190<a name="l00408"></a>00408 <span class="preprocessor">#endif // #ifndef LS_SOLVE_H</span>
191<a name="l00409"></a>00409 <span class="preprocessor"></span>
192<a name="l00410"></a>00410
193<a name="l00411"></a>00411
194</pre></div></div>
195<hr size="1"><address style="text-align: right;"><small>Generated on Tue Jun 2 10:02:12 2009 for mixpp by&nbsp;
196<a href="http://www.doxygen.org/index.html">
197<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.8 </small></address>
198</body>
199</html>
Note: See TracBrowser for help on using the browser.