18 #include <sys/types.h>
60 if (fabs(fResult) < fTolerance)
63 sprintf(szBuffer,
"EV[%2d] [AX - ramdaX: %20.20f] %s \n", i, fResult, bPass ?
"OK" :
"NG");
94 for (j = 0; j < nWaveFunctionSize; j++)
99 if (fabs(1 - tempResult.
GetNorm()) < fTolerance)
102 sprintf(szBuffer,
"WF[%2d] sum: [ %20.20f ] %s\n", i, tempResult.
GetNorm(), bPass ?
"OK" :
"NG");
void SetSize(unsigned int nSize)
Set Vector elements size.
CKNMatrixOperation::CKNVector * pWaveFunctions
static void ShowMsg(char *pszBuffer)
Show message.
void ScalarMultiple(CKNComplex Scalar)
Scalar multiple operation.
Show message and debugging variable.
CKNMatrixOperation::CKNVector * pEigenVectorsForAMatrix
unsigned int GetColumnCount()
Getting row size of matrix.
Data and operation representation of CSR(Compressed Sparse Row)
Lanczos method result audit class.
void MinusVector(CKNVector *vector)
Do minus operation between vectors.
double GetNorm()
Get norm of complex number.
static void AuditResult_WF(CKNLanczosMethod::LPEIGENVALUE_RESULT lpResult, double fTolerance, unsigned int nWaveFunctionSize)
Audit wave function.
CKNComplex GetAt(unsigned int nIndex)
Get element value from specific index.
Structure for engienvalue computing.
static void MVMul(CKNCSR *pAMatrix, CKNVector *pVector, CKNVector *pResult)
Matrix and vector multiple operation.
void Finalize()
Free allocated memory for vector elements.
This class includes functions for matrix debugging.
double GetNorm(bool bMPI=false)
Getting norm of vector.
unsigned int nEigenValueCount
This class for complex operation and saving value.
static void AuditResult_EV(CKNMatrixOperation::CKNCSR *pCSR, CKNLanczosMethod::LPEIGENVALUE_RESULT lpResult, double fTolerance)
Audit eigen vector.
void SetComplexNumber(double fReal, double fImaginaray)
Set Complex number using real part and imaginary part.
This class for describing vector for Lanczos method.