IPCC  1.0
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
KNIPCCUtility.h
Go to the documentation of this file.
1 
7 #pragma once
8 
9 #include "KNMatrixOperation.h"
10 #include "KNLanczosMethod.h"
18 {
19 public:
22 
23  static void ShowDoubleMatrix(double *pMatrix, int m, int n, int startm, int endm, int startn, int endn, char *pszDebugMsg);
24  static void ShowDoubleArray(double *vector, char *pszDebugMsg, int due);
25  static void ShowDoubleVector(CKNMatrixOperation::CKNVector vector, char *pszDebugMsg, int due = -1);
26  static void ShowComplex(CKNComplex number, char *pszDebugMsg);
27  static void ShowDouble(double number, char *pszDebugMsg);
28  static void ShowMsg(char *pszBuffer);
29  static void SaveResult(CKNLanczosMethod::LPEIGENVALUE_RESULT lpResult, int nIndex);
30  static void SetShow(bool bShow){ m_bShowMsg = bShow; };
31  static void ShowCSR(CKNMatrixOperation::CKNCSR *pCSR, char *pszDebugMsg);
32  static void ShowCSR(CKNMatrixOperation::CKNCSR *pCSR, int startm, int endm, int startn, int endn, char *pszDebugMsg);
33  static void ShowDenseMatrix(CKNMatrixOperation::CKNDMatrix *pMatrix, int startm, int endm, int startn, int endn, char *pszDebugMsg, bool bLineFeed = false, bool bShowImaginary = false);
34  static void DumpCSR(CKNMatrixOperation::CKNCSR *pCSR, char *pszFileName, double fAtomIDStartIndex);
35  static void DumpCSRBinary(CKNMatrixOperation::CKNCSR *pCSR, char *pszFileName, double fAtomIDStartIndex);
36  static void ConvertLower(char *pszBuffer);
37 
38 private:
39  static bool m_bShowMsg;
40 };
41 
static void ShowMsg(char *pszBuffer)
Show message.
Data and operation representation of Matrix.
Show message and debugging variable.
static void ShowComplex(CKNComplex number, char *pszDebugMsg)
Show vector class.
Data and operation representation of CSR(Compressed Sparse Row)
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.
static void SaveResult(CKNLanczosMethod::LPEIGENVALUE_RESULT lpResult, int nIndex)
Show lanczos method result.
static void ShowDouble(double number, char *pszDebugMsg)
Show one double data.
This class includes functions for matrix debugging.
Definition: KNIPCCUtility.h:17
static void ConvertLower(char *pszBuffer)
Convert string to lower case.
static bool m_bShowMsg
Flag for display message.
Definition: KNIPCCUtility.h:39
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.
static void SetShow(bool bShow)
Definition: KNIPCCUtility.h:30
static void ShowCSR(CKNMatrixOperation::CKNCSR *pCSR, char *pszDebugMsg)
Set show message or not.
Collection of vector and matrix operation.
static void DumpCSR(CKNMatrixOperation::CKNCSR *pCSR, char *pszFileName, double fAtomIDStartIndex)
Dump CSR to text file.
Structure for engienvalue computing.
static void ShowDoubleArray(double *vector, char *pszDebugMsg, int due)
Show double array.
This class for complex operation and saving value.
Definition: KNComplex.h:18
static void DumpCSRBinary(CKNMatrixOperation::CKNCSR *pCSR, char *pszFileName, double fAtomIDStartIndex)
Dump CSR to binary file.
static void ShowDoubleVector(CKNMatrixOperation::CKNVector vector, char *pszDebugMsg, int due=-1)
This class for describing vector for Lanczos method.