|
IPCC
1.0
|
This class includes functions for matrix debugging. More...
#include "KNMatrixDebug.h"

Public Member Functions | |
| CKNMatrixDebug () | |
| ~CKNMatrixDebug () | |
Static Public Member Functions | |
| static void | ShowDoubleMatrix (double *pMatrix, int m, int n, int startm, int endm, int startn, int endn, char *pszDebugMsg) |
| Show matrix in output debugging windows - Visual studio and Windows DebugView only. More... | |
| static void | ShowDoubleArray (double *vector, char *pszDebugMsg, int due) |
| Show double array. More... | |
| static void | ShowDoubleVector (CKNMatrixOperation::CKNVector vector, char *pszDebugMsg, int due=-1) |
| static void | ShowComplex (CKNComplex number, char *pszDebugMsg) |
| Show vector class. More... | |
| static void | ShowDouble (double number, char *pszDebugMsg) |
| Show one double data. More... | |
| static void | ShowMsg (char *pszBuffer) |
| Show message. More... | |
| static void | SaveResult (CKNLanczosMethod::LPEIGENVALUE_RESULT lpResult, int nIndex) |
| Show lanczos method result. More... | |
| static void | SetShow (bool bShow) |
| static void | ShowCSR (CKNMatrixOperation::CKNCSR *pCSR, char *pszDebugMsg) |
| Set show message or not. More... | |
| static void | ShowCSR (CKNMatrixOperation::CKNCSR *pCSR, int startm, int endm, int startn, int endn, char *pszDebugMsg) |
| Show CSR matrix partialy. More... | |
| static void | ShowDenseMatrix (CKNMatrixOperation::CKNDMatrix *pMatrix, int startm, int endm, int startn, int endn, char *pszDebugMsg, bool bLineFeed=false, bool bShowImaginary=false) |
| Show matrix partialy. More... | |
| static void | DumpCSR (CKNMatrixOperation::CKNCSR *pCSR, char *pszFileName, double fAtomIDStartIndex) |
| Dump CSR to text file. More... | |
| static void | DumpCSRBinary (CKNMatrixOperation::CKNCSR *pCSR, char *pszFileName, double fAtomIDStartIndex) |
| Dump CSR to binary file. More... | |
Static Private Attributes | |
| static bool | m_bShowMsg = false |
This class includes functions for matrix debugging.
Definition at line 17 of file KNMatrixDebug.h.
| CKNMatrixDebug::CKNMatrixDebug | ( | ) |
Definition at line 24 of file KNMatrixDebug.cpp.
| CKNMatrixDebug::~CKNMatrixDebug | ( | ) |
Definition at line 28 of file KNMatrixDebug.cpp.
|
static |
Dump CSR to text file.
Definition at line 340 of file KNMatrixDebug.cpp.
References CKNMPIManager::GetCurrentRank(), CKNMatrixOperation::CKNCSR::GetRowCount(), CKNMPIManager::GetTotalNodeCount(), CKNMPIManager::IsRootRank(), CKNMatrixOperation::CKNCSR::m_vectColumn, CKNMatrixOperation::CKNCSR::m_vectRow, CKNMPIManager::ReceiveDoubleBufferSync(), and CKNMPIManager::SendDoubleBufferSync().

|
static |
Dump CSR to binary file.
Definition at line 292 of file KNMatrixDebug.cpp.
References CKNMPIManager::GetCurrentRank(), CKNMatrixOperation::CKNCSR::GetRowCount(), CKNMPIManager::GetTotalNodeCount(), CKNMPIManager::IsRootRank(), CKNMatrixOperation::CKNCSR::m_vectColumn, CKNMatrixOperation::CKNCSR::m_vectRow, CKNMPIManager::ReceiveDoubleBufferSync(), and CKNMPIManager::SendDoubleBufferSync().

|
static |
Show lanczos method result.
| lpResult | Calculated eigenvalue result |
| nIndex | The index that want to save result |
Definition at line 274 of file KNMatrixDebug.cpp.
References CKNLanczosMethod::EIGENVALUE_RESULT::nEigenValueCount, and CKNLanczosMethod::EIGENVALUE_RESULT::pEigenValues.
Referenced by CKNLanczosTest::TestLanczos().

|
inlinestatic |
|
static |
Show vector class.
Show complex class
| number | The complex number that was wanted to show |
| pszDebugMsg | Text that was show first at matrix display |
Definition at line 244 of file KNMatrixDebug.cpp.
References CKNComplex::GetImaginaryNumber(), and CKNComplex::GetRealNumber().

|
static |
Set show message or not.
Show CSR matrix partialy
| pCSR | The matrix that was wanted to show |
| pszDebugMsg | Text that was show first at matrix display |
Definition at line 159 of file KNMatrixDebug.cpp.
References DUMY_STRING_FOR_COMPLEX_SHOWING, CKNMatrixOperation::CKNCSR::GetColumnCount(), CKNMatrixOperation::CKNCSR::GetElement(), CKNComplex::GetImaginaryNumber(), CKNComplex::GetRealNumber(), and CKNMatrixOperation::CKNCSR::GetRowCount().
Referenced by CKNLanczosTest::TestCSRBuilding().


|
static |
Show CSR matrix partialy.
| pCSR | The matrix that was wanted to show |
| pszDebugMsg | Text that was show first at matrix display |
| startm | Start row index that was wanted to show |
| endm | End row index that was wanted to show |
| startn | Start column index that was wanted to show |
| endn | End column index that was wanted to show |
Definition at line 128 of file KNMatrixDebug.cpp.
References DUMY_STRING_FOR_COMPLEX_SHOWING, CKNMatrixOperation::CKNCSR::GetElement(), CKNComplex::GetImaginaryNumber(), and CKNComplex::GetRealNumber().

|
static |
Show matrix partialy.
| pMatrix | The matrix that was wanted to show |
| startm | Start row index that was wanted to show |
| endm | End row index that was wanted to show |
| startn | Start column index that was wanted to show |
| endn | End column index that was wanted to show |
| pszDebugMsg | Text that was show first at matrix display |
| bLineFeed | Has linefeed between row or not |
| bShowImaginary | Determine show imaginary part or not |
Definition at line 90 of file KNMatrixDebug.cpp.
References CKNMatrixOperation::CKNDMatrix::GetElement(), CKNComplex::GetImaginaryNumber(), and CKNComplex::GetRealNumber().

|
static |
Show one double data.
| number | The number that was wanted to show |
| pszDebugMsg | Text that was show first at matrix display |
Definition at line 259 of file KNMatrixDebug.cpp.
|
static |
Show double array.
| vector | The vector that was wanted to show |
| pszDebugMsg | Text that was show first at matrix display |
| due | Debugger show vector element unti this index |
Definition at line 200 of file KNMatrixDebug.cpp.
|
static |
Show matrix in output debugging windows - Visual studio and Windows DebugView only.
| pMatrix | The matrix that was wanted to show |
| m | Numbers of row |
| n | Numbers of column |
| startm | Start row index that was wanted to show |
| endm | End row index that was wanted to show |
| startn | Start column index that was wanted to show |
| endn | End column index that was wanted to show |
| pszDebugMsg | Text that was show first at matrix display |
Definition at line 60 of file KNMatrixDebug.cpp.
|
static |
| vector | The vector that was wanted to show |
| pszDebugMsg | Text that was show first at matrix display |
| due | Debugger show vector element unti this index |
Definition at line 220 of file KNMatrixDebug.cpp.
References CKNMatrixOperation::CKNVector::GetAt(), CKNComplex::GetImaginaryNumber(), CKNComplex::GetRealNumber(), and CKNMatrixOperation::CKNVector::GetSize().

|
static |
Show message.
| pszBuffer | Showing message |
Definition at line 35 of file KNMatrixDebug.cpp.
Referenced by CKNLanczosTest::AuditResult(), CKNLanczosTest::AuditResult_EV(), CKNLanczosTest::AuditResult_Seorth(), CKNLanczosTest::AuditResult_WF(), CKNLanczosTest::CompareWithMatLabSeOrth(), CKNLanczosTest::COmpareWIthMatLabSeOrthMPI(), CKNLanczosTest::LanczosThread(), CKNLanczosTest::LanczosThreadForMPI(), CKNLanczosTest::LargeSizeMatrixMPI(), CKNGeometricConstructionLaunch::LaunchingGeometricConstructionMPI(), CKNLanczosTest::SolvingLargeSizeHamlitonian(), CKNLanczosTest::TestCSRBuilding(), CKNLanczosTest::TestLanczos(), and CKNLanczosTest::TestSimpleLanczos().

|
staticprivate |
Definition at line 38 of file KNMatrixDebug.h.
Referenced by SetShow().