Matrix Elements VB-800 Instrukcja Użytkownika Strona 70

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 172
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 69
62 Appendix A2 Exported Function Summary
LDLsolve
void LDLsolve(MATRIX mL, VECTOR vD, VECTOR vX, VECTOR vB, int cA);
mL[cA][cA] in: ptr to a matrix of which the strict lower diagonal
must contain L from the Choleski decomposition
computed using ILDLdec. (the upper diagonal is
not referenced);
vD[cA] in: contains the reciprocal of D
vX[cA] in: pointer containing the r.h.s. of Lx = b;
vB[cA] out: contains the solution x (if (vX == vB)thenvB
is overwritten by the solution)
No return value.
Description
Solves Ax = b, with A = LDL
0
a symmetric positive definite matrix.
LDLsolveInv
void LDLsolveInv(MATRIX mLDLt, MATRIX mAinv, int cA);
mLDLt[cA][cA] in: ptr to a matrix holding L : L
0
with 1/D on the
diagonal
mAinv[cA][cA] in: ptr to a matrix.
out: contains the inverse
No return value.
Description
Computes the inverse of a symmetric matrix A, L, D must be the Choleski de-
composition.
LUPsolve, LUPsolveInv
void LUPsolve(MATRIX mL, MATRIX mU, int *piPiv, VECTOR vB,int cA);
void LUPsolveInv(MATRIX mL, MATRIX mU, int *piPiv, MATRIX mAinv,
int cA);
mL[cA][cA] in: the strict lower diagonal contains the L matrix
(except for the 1’s on diag, so that mL and mU
may coincide)
mU[cA][cA] in: the upper diagonal contains U: PA = LU out-
put from ILUPdec.
piPiv[cA] in: the pivot information (P )
vB[cA] in: rhs vector of system to be solved: Ax = b.
out: contains x.
mAinv[cA][cA] in: ptr to a matrix.
out: contains the inverse of A
No return value.
Przeglądanie stron 69
1 2 ... 65 66 67 68 69 70 71 72 73 74 75 ... 171 172

Komentarze do niniejszej Instrukcji

Brak uwag