#include <Wm4LinearSystem.h>
Public Types | |
typedef std::map< std::pair < int, int >, Real > | SparseMatrix |
Public Member Functions | |
bool | Inverse (const GMatrix< Real > &rkA, GMatrix< Real > &rkInvA) |
bool | Invert (const BandedMatrix< Real > &rkA, GMatrix< Real > &rkInvA) |
LinearSystem () | |
bool | Solve (const GMatrix< Real > &rkA, const Real *afB, Real *afX) |
bool | Solve2 (const Real aafA[2][2], const Real afB[2], Real afX[2]) |
bool | Solve3 (const Real aafA[3][3], const Real afB[3], Real afX[3]) |
bool | SolveBanded (const BandedMatrix< Real > &rkA, const Real *afB, Real *afX) |
bool | SolveConstTri (int iSize, Real fA, Real fB, Real fC, Real *afR, Real *afU) |
bool | SolveSymmetricCG (int iSize, const SparseMatrix &rkA, const Real *afB, Real *afX) |
bool | SolveSymmetricCG (const GMatrix< Real > &rkA, const Real *afB, Real *afX) |
bool | SolveTri (int iSize, Real *afA, Real *afB, Real *afC, Real *afR, Real *afU) |
Public Attributes | |
Real | ZeroTolerance |
Definition at line 28 of file Wm4LinearSystem.h.
typedef std::map<std::pair<int,int>,Real> Wm4::LinearSystem< Real >::SparseMatrix |
Definition at line 96 of file Wm4LinearSystem.h.
Wm4::LinearSystem< Real >::LinearSystem | ( | ) | [inline] |
Definition at line 24 of file Wm4LinearSystem.cpp.
References Wm4::LinearSystem< Real >::ZeroTolerance.
bool Wm4::LinearSystem< Real >::Inverse | ( | const GMatrix< Real > & | rkA, | |
GMatrix< Real > & | rkInvA | |||
) | [inline] |
Definition at line 83 of file Wm4LinearSystem.cpp.
References Wm4::GMatrix< Real >::GetColumns(), Wm4::GMatrix< Real >::GetRows(), Wm4::GMatrix< Real >::SwapRows(), WM4_DELETE, and WM4_NEW.
bool Wm4::LinearSystem< Real >::Invert | ( | const BandedMatrix< Real > & | rkA, | |
GMatrix< Real > & | rkInvA | |||
) | [inline] |
Definition at line 728 of file Wm4LinearSystem.cpp.
References Wm4::BandedMatrix< Real >::GetSize().
bool Wm4::LinearSystem< Real >::Solve | ( | const GMatrix< Real > & | rkA, | |
const Real * | afB, | |||
Real * | afX | |||
) | [inline] |
Definition at line 189 of file Wm4LinearSystem.cpp.
References Wm4::GMatrix< Real >::GetColumns(), Wm4::System::Memcpy(), Wm4::GMatrix< Real >::SwapRows(), WM4_DELETE, and WM4_NEW.
bool Wm4::LinearSystem< Real >::Solve2 | ( | const Real | aafA[2][2], | |
const Real | afB[2], | |||
Real | afX[2] | |||
) | [inline] |
Definition at line 30 of file Wm4LinearSystem.cpp.
References Wm4::LinearSystem< Real >::ZeroTolerance.
bool Wm4::LinearSystem< Real >::Solve3 | ( | const Real | aafA[3][3], | |
const Real | afB[3], | |||
Real | afX[3] | |||
) | [inline] |
Definition at line 46 of file Wm4LinearSystem.cpp.
References Wm4::LinearSystem< Real >::ZeroTolerance.
bool Wm4::LinearSystem< Real >::SolveBanded | ( | const BandedMatrix< Real > & | rkA, | |
const Real * | afB, | |||
Real * | afX | |||
) | [inline] |
Definition at line 612 of file Wm4LinearSystem.cpp.
References Wm4::BandedMatrix< Real >::GetSize(), Wm4::BandedMatrix< Real >::GetUBands(), and Wm4::System::Memcpy().
bool Wm4::LinearSystem< Real >::SolveConstTri | ( | int | iSize, | |
Real | fA, | |||
Real | fB, | |||
Real | fC, | |||
Real * | afR, | |||
Real * | afU | |||
) | [inline] |
Definition at line 337 of file Wm4LinearSystem.cpp.
References WM4_DELETE, and WM4_NEW.
bool Wm4::LinearSystem< Real >::SolveSymmetricCG | ( | int | iSize, | |
const SparseMatrix & | rkA, | |||
const Real * | afB, | |||
Real * | afX | |||
) | [inline] |
Definition at line 505 of file Wm4LinearSystem.cpp.
References Wm4::System::Memcpy(), WM4_DELETE, WM4_NEW, and Wm4::LinearSystem< Real >::ZeroTolerance.
bool Wm4::LinearSystem< Real >::SolveSymmetricCG | ( | const GMatrix< Real > & | rkA, | |
const Real * | afB, | |||
Real * | afX | |||
) | [inline] |
Definition at line 452 of file Wm4LinearSystem.cpp.
References Wm4::GMatrix< Real >::GetColumns(), Wm4::GMatrix< Real >::GetRows(), Wm4::System::Memcpy(), WM4_DELETE, WM4_NEW, and Wm4::LinearSystem< Real >::ZeroTolerance.
bool Wm4::LinearSystem< Real >::SolveTri | ( | int | iSize, | |
Real * | afA, | |||
Real * | afB, | |||
Real * | afC, | |||
Real * | afR, | |||
Real * | afU | |||
) | [inline] |
Definition at line 300 of file Wm4LinearSystem.cpp.
References WM4_DELETE, and WM4_NEW.
Real Wm4::LinearSystem< Real >::ZeroTolerance |
Definition at line 119 of file Wm4LinearSystem.h.
Referenced by Wm4::LinearSystem< Real >::LinearSystem(), Wm4::LinearSystem< Real >::Solve2(), Wm4::LinearSystem< Real >::Solve3(), and Wm4::LinearSystem< Real >::SolveSymmetricCG().