IT++ Logo
ls_solve.h
Go to the documentation of this file.
1
29#ifndef LS_SOLVE_H
30#define LS_SOLVE_H
31
32#include <itpp/base/mat.h>
33#include <itpp/itexports.h>
34
35namespace itpp
36{
37
38
42
48ITPP_EXPORT bool ls_solve(const mat &A, const vec &b, vec &x);
49
55ITPP_EXPORT vec ls_solve(const mat &A, const vec &b);
56
62bool ls_solve(const mat &A, const mat &B, mat &X);
63
69ITPP_EXPORT mat ls_solve(const mat &A, const mat &B);
70
71
77ITPP_EXPORT bool ls_solve(const cmat &A, const cvec &b, cvec &x);
78
84ITPP_EXPORT cvec ls_solve(const cmat &A, const cvec &b);
85
91ITPP_EXPORT bool ls_solve(const cmat &A, const cmat &B, cmat &X);
92
98ITPP_EXPORT cmat ls_solve(const cmat &A, const cmat &B);
99
100
106ITPP_EXPORT bool ls_solve_chol(const mat &A, const vec &b, vec &x);
107
113ITPP_EXPORT vec ls_solve_chol(const mat &A, const vec &b);
114
120ITPP_EXPORT bool ls_solve_chol(const mat &A, const mat &B, mat &X);
121
127ITPP_EXPORT mat ls_solve_chol(const mat &A, const mat &B);
128
129
135ITPP_EXPORT bool ls_solve_chol(const cmat &A, const cvec &b, cvec &x);
136
142ITPP_EXPORT cvec ls_solve_chol(const cmat &A, const cvec &b);
143
149ITPP_EXPORT bool ls_solve_chol(const cmat &A, const cmat &B, cmat &X);
150
156ITPP_EXPORT cmat ls_solve_chol(const cmat &A, const cmat &B);
157
158
159
165ITPP_EXPORT bool ls_solve_od(const mat &A, const vec &b, vec &x);
166
172ITPP_EXPORT vec ls_solve_od(const mat &A, const vec &b);
173
179ITPP_EXPORT bool ls_solve_od(const mat &A, const mat &B, mat &X);
180
186ITPP_EXPORT mat ls_solve_od(const mat &A, const mat &B);
187
188
194ITPP_EXPORT bool ls_solve_od(const cmat &A, const cvec &b, cvec &x);
195
201ITPP_EXPORT cvec ls_solve_od(const cmat &A, const cvec &b);
202
208ITPP_EXPORT bool ls_solve_od(const cmat &A, const cmat &B, cmat &X);
209
215ITPP_EXPORT cmat ls_solve_od(const cmat &A, const cmat &B);
216
217
218
224ITPP_EXPORT bool ls_solve_ud(const mat &A, const vec &b, vec &x);
225
231ITPP_EXPORT vec ls_solve_ud(const mat &A, const vec &b);
232
238ITPP_EXPORT bool ls_solve_ud(const mat &A, const mat &B, mat &X);
239
245ITPP_EXPORT mat ls_solve_ud(const mat &A, const mat &B);
246
247
253ITPP_EXPORT bool ls_solve_ud(const cmat &A, const cvec &b, cvec &x);
254
260ITPP_EXPORT cvec ls_solve_ud(const cmat &A, const cvec &b);
261
267ITPP_EXPORT bool ls_solve_ud(const cmat &A, const cmat &B, cmat &X);
268
274ITPP_EXPORT cmat ls_solve_ud(const cmat &A, const cmat &B);
275
276
282ITPP_EXPORT bool backslash(const mat &A, const vec &b, vec &x);
283
289ITPP_EXPORT vec backslash(const mat &A, const vec &b);
290
296ITPP_EXPORT bool backslash(const mat &A, const mat &B, mat &X);
297
303ITPP_EXPORT mat backslash(const mat &A, const mat &B);
304
305
311ITPP_EXPORT bool backslash(const cmat &A, const cvec &b, cvec &x);
312
318ITPP_EXPORT cvec backslash(const cmat &A, const cvec &b);
319
325ITPP_EXPORT bool backslash(const cmat &A, const cmat &B, cmat &X);
326
332ITPP_EXPORT cmat backslash(const cmat &A, const cmat &B);
333
334
335
342ITPP_EXPORT vec forward_substitution(const mat &L, const vec &b);
343
350ITPP_EXPORT void forward_substitution(const mat &L, const vec &b, vec &x);
351
359ITPP_EXPORT vec forward_substitution(const mat &L, int p, const vec &b);
360
368ITPP_EXPORT void forward_substitution(const mat &L, int p, const vec &b, vec &x);
369
376ITPP_EXPORT vec backward_substitution(const mat &U, const vec &b);
377
384ITPP_EXPORT void backward_substitution(const mat &U, const vec &b, vec &x);
385
393ITPP_EXPORT vec backward_substitution(const mat &U, int q, const vec &b);
394
402ITPP_EXPORT void backward_substitution(const mat &U, int q, const vec &b, vec &x);
403
405
406} //namespace itpp
407
408#endif // #ifndef LS_SOLVE_H
409
410
411
bool ls_solve_chol(const mat &A, const vec &b, vec &x)
Solve linear equation system by Cholesky factorisation.
Definition: ls_solve.cpp:128
bool ls_solve(const mat &A, const vec &b, vec &x)
Solve linear equation system by LU factorisation.
Definition: ls_solve.cpp:268
vec backward_substitution(const mat &U, const vec &b)
Backward substitution of square matrix.
Definition: ls_solve.cpp:813
bool ls_solve_ud(const mat &A, const vec &b, vec &x)
Solves underdetermined linear equation systems.
Definition: ls_solve.cpp:585
bool ls_solve_od(const mat &A, const vec &b, vec &x)
Solves overdetermined linear equation systems.
Definition: ls_solve.cpp:424
vec forward_substitution(const mat &L, const vec &b)
Forward substitution of square matrix.
Definition: ls_solve.cpp:756
bool backslash(const mat &A, const vec &b, vec &x)
A general linear equation system solver.
Definition: ls_solve.cpp:651
Matrix Class Definitions.
itpp namespace
Definition: itmex.h:37
SourceForge Logo

Generated on Tue Jan 24 2023 00:00:00 for IT++ by Doxygen 1.9.6