ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
complexmatrix_test.cpp File Reference
#include "../complexmatrix.h"
#include "../matrix.h"
#include "gtest/gtest.h"
#include "gmock/gmock.h"
Include dependency graph for complexmatrix_test.cpp:

Classes

class  ComplexMatrixTest

Functions

void EXPECT_COMPLEX_EQ (const std::complex< double > &a, const std::complex< double > &b)
 TEST (ComplexMatrix, Constructor)
 TEST (ComplexMatrix, ConstructorNrNc)
 TEST_F (ComplexMatrixTest, ConstructorCM)
 TEST_F (ComplexMatrixTest, ConstructorCMrvalue)
 TEST (ComplexMatrix, ConstrucotrMatrix)
 TEST (ComplexMatrix, Create)
 TEST_F (ComplexMatrixTest, OperatorEqual)
 TEST_F (ComplexMatrixTest, OperatorEqualrvalue)
 TEST_F (ComplexMatrixTest, OperatorParentheses)
 TEST_F (ComplexMatrixTest, OperatorParenthesesConst)
 TEST_F (ComplexMatrixTest, OperatorMultiEqual)
 TEST_F (ComplexMatrixTest, OperatorPlusEqual)
 TEST_F (ComplexMatrixTest, OperatorMinusEqual)
 TEST_F (ComplexMatrixTest, real)
 TEST_F (ComplexMatrixTest, ZeroOut)
 TEST_F (ComplexMatrixTest, SetAsIdentityMatrix)
 TEST (ComplexMatrix, CheckReal)
 TEST_F (ComplexMatrixTest, OperatorPlus)
 TEST_F (ComplexMatrixTest, OperatorMinus)
 TEST_F (ComplexMatrixTest, OperatorMultMatrix)
 TEST_F (ComplexMatrixTest, OperatorMultDouble)
 TEST_F (ComplexMatrixTest, OperatorMultComplex)
 TEST_F (ComplexMatrixTest, Trace)
 TEST_F (ComplexMatrixTest, abs2Row)
 TEST_F (ComplexMatrixTest, abs2Column)
 TEST_F (ComplexMatrixTest, abs2)
 TEST_F (ComplexMatrixTest, abs2arraymatrix)
 TEST_F (ComplexMatrixTest, transpose)
 TEST_F (ComplexMatrixTest, conj)
 TEST_F (ComplexMatrixTest, ScaleAccumulate)
 TEST_F (ComplexMatrixTest, ScaleAccumulateArray)
 TEST_F (ComplexMatrixTest, ScaleSum)
 TEST_F (ComplexMatrixTest, ScaleSumArray)
 TEST_F (ComplexMatrixTest, print)

Function Documentation

◆ EXPECT_COMPLEX_EQ()

void EXPECT_COMPLEX_EQ ( const std::complex< double > & a,
const std::complex< double > & b )
inline

Tested functions of class ComplexMatrix

  • constructor
    • ComplexMatrix()
    • ComplexMatrix(const int nrows,const int ncols,const bool flag_zero=true)
    • ComplexMatrix(const ComplexMatrix &m1)
    • ComplexMatrix(ComplexMatrix && m1)
    • explicit ComplexMatrix(const matrix &m)
  • operator "=" : a ComplexMatrix and the rvalue of a ComplexMatrix
  • operator "()": access the element. the normal function and the the "const" function
  • operator "*=" "+=" "-="
  • real()
  • zero_out();
  • set_as_identity_matrix()
  • print():Output the elements of this complex matrix greater than threshold.
  • checkreal()

Tested relative functions

  • operator "+" "-" "*" between two ComplexMatrix
  • operator "*" between a ComplexMatrix and double or complex, and reverse.
  • trace()
  • abs2_row()
  • abs2_column()
  • abs2():
  • transpose()
  • conj()
  • scale_accumulate():
  • scaled_sum():
Here is the caller graph for this function:

◆ TEST() [1/5]

TEST ( ComplexMatrix ,
CheckReal  )
Here is the call graph for this function:

◆ TEST() [2/5]

TEST ( ComplexMatrix ,
ConstrucotrMatrix  )
Here is the call graph for this function:

◆ TEST() [3/5]

TEST ( ComplexMatrix ,
Constructor  )

◆ TEST() [4/5]

TEST ( ComplexMatrix ,
ConstructorNrNc  )

◆ TEST() [5/5]

TEST ( ComplexMatrix ,
Create  )
Here is the call graph for this function:

◆ TEST_F() [1/29]

TEST_F ( ComplexMatrixTest ,
abs2  )

◆ TEST_F() [2/29]

TEST_F ( ComplexMatrixTest ,
abs2arraymatrix  )

◆ TEST_F() [3/29]

TEST_F ( ComplexMatrixTest ,
abs2Column  )

◆ TEST_F() [4/29]

TEST_F ( ComplexMatrixTest ,
abs2Row  )

◆ TEST_F() [5/29]

TEST_F ( ComplexMatrixTest ,
conj  )
Here is the call graph for this function:

◆ TEST_F() [6/29]

TEST_F ( ComplexMatrixTest ,
ConstructorCM  )
Here is the call graph for this function:

◆ TEST_F() [7/29]

TEST_F ( ComplexMatrixTest ,
ConstructorCMrvalue  )
Here is the call graph for this function:

◆ TEST_F() [8/29]

TEST_F ( ComplexMatrixTest ,
OperatorEqual  )
Here is the call graph for this function:

◆ TEST_F() [9/29]

TEST_F ( ComplexMatrixTest ,
OperatorEqualrvalue  )
Here is the call graph for this function:

◆ TEST_F() [10/29]

TEST_F ( ComplexMatrixTest ,
OperatorMinus  )
Here is the call graph for this function:

◆ TEST_F() [11/29]

TEST_F ( ComplexMatrixTest ,
OperatorMinusEqual  )
Here is the call graph for this function:

◆ TEST_F() [12/29]

TEST_F ( ComplexMatrixTest ,
OperatorMultComplex  )
Here is the call graph for this function:

◆ TEST_F() [13/29]

TEST_F ( ComplexMatrixTest ,
OperatorMultDouble  )
Here is the call graph for this function:

◆ TEST_F() [14/29]

TEST_F ( ComplexMatrixTest ,
OperatorMultiEqual  )
Here is the call graph for this function:

◆ TEST_F() [15/29]

TEST_F ( ComplexMatrixTest ,
OperatorMultMatrix  )
Here is the call graph for this function:

◆ TEST_F() [16/29]

TEST_F ( ComplexMatrixTest ,
OperatorParentheses  )

◆ TEST_F() [17/29]

TEST_F ( ComplexMatrixTest ,
OperatorParenthesesConst  )
Here is the call graph for this function:

◆ TEST_F() [18/29]

TEST_F ( ComplexMatrixTest ,
OperatorPlus  )
Here is the call graph for this function:

◆ TEST_F() [19/29]

TEST_F ( ComplexMatrixTest ,
OperatorPlusEqual  )
Here is the call graph for this function:

◆ TEST_F() [20/29]

TEST_F ( ComplexMatrixTest ,
print  )
Here is the call graph for this function:

◆ TEST_F() [21/29]

TEST_F ( ComplexMatrixTest ,
real  )
Here is the call graph for this function:

◆ TEST_F() [22/29]

TEST_F ( ComplexMatrixTest ,
ScaleAccumulate  )
Here is the call graph for this function:

◆ TEST_F() [23/29]

TEST_F ( ComplexMatrixTest ,
ScaleAccumulateArray  )
Here is the call graph for this function:

◆ TEST_F() [24/29]

TEST_F ( ComplexMatrixTest ,
ScaleSum  )
Here is the call graph for this function:

◆ TEST_F() [25/29]

TEST_F ( ComplexMatrixTest ,
ScaleSumArray  )
Here is the call graph for this function:

◆ TEST_F() [26/29]

TEST_F ( ComplexMatrixTest ,
SetAsIdentityMatrix  )
Here is the call graph for this function:

◆ TEST_F() [27/29]

TEST_F ( ComplexMatrixTest ,
Trace  )
Here is the call graph for this function:

◆ TEST_F() [28/29]

TEST_F ( ComplexMatrixTest ,
transpose  )
Here is the call graph for this function:

◆ TEST_F() [29/29]

TEST_F ( ComplexMatrixTest ,
ZeroOut  )
Here is the call graph for this function: