MGCL V10  V10
MGCL V10
 全て クラス 名前空間 関数 変数 型定義 列挙型 列挙値 フレンド グループ ページ
LinearEquation.h
1 /********************************************************************/
2 /* Copyright (c) 2015 DG Technologies Inc. and Yuzi Mizuno */
3 /* All rights reserved. */
4 /********************************************************************/
5 #ifndef _MGLINEAREQUATION_HH_
6 #define _MGLINEAREQUATION_HH_
7 
12 
15 class MGMatrix;
16 class MGBPointSeq;
17 
33 void factorizeLU(
34  MGMatrix& W,
35  int* id
39 );
41 
42 
44 
46 void solveLU(
47  const MGMatrix& W,
51  const int* id,
52  const MGBPointSeq& A,
54  MGBPointSeq& X
55 );
57 
60  MGBPointSeq& W,
61  const MGBPointSeq& A,
67  MGBPointSeq& X
68 );
70 
71 
73 
87 int factorizeBandLU(
88  MGBPointSeq& W,
89  int nlower
107 );
108 
109 
111 
117 void solveBandLU(
118  const MGBPointSeq& W,
119  int nlower,
124  const MGBPointSeq& A,
125  MGBPointSeq& X
127 );
129 
131 
161 void factorizeCholeLU(
162  MGBPointSeq& W
163 );
180 
181 
183 
188 void solveCholeLU(
189  const MGBPointSeq& W,
190  const MGBPointSeq& A,
193  MGBPointSeq& X
194 );
196  // end of ALGORITHM group
198 #endif
int factorizeBandLU(MGBPointSeq &W, int nlower)
factorizeBandLU executes the LU-factorization without pivoting of a banded matrix M...
void solveSymetricTridiagonal(MGBPointSeq &W, const MGBPointSeq &A, MGBPointSeq &X)
Solve the linear equation M*X=A where M is a symetric tridiagonal matrix of order n...
void solveCholeLU(const MGBPointSeq &W, const MGBPointSeq &A, MGBPointSeq &X)
Solves the linear system C*X = A , provided W contains the Cholesky factorization.
Defines BPoint seq of a space dimension and of a capacity.
Definition: BPointSeq.h:38
void solveBandLU(const MGBPointSeq &W, int nlower, const MGBPointSeq &A, MGBPointSeq &X)
solveBandLU returns the solution of the linear system M*X = A.
void solveLU(const MGMatrix &W, const int *id, const MGBPointSeq &A, MGBPointSeq &X)
Solve the linear equation W*X=A to get X, inputting factorize W and A.
void factorizeCholeLU(MGBPointSeq &W)
Constructs Cholesky factorization.
void factorizeLU(MGMatrix &W, int *id)
LU factorization to solve linear equations, general version. This is a general solver using pivotting...
MGMatrix is a matix of m by m, where m is the space dimension.
Definition: Matrix.h:30