ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
Classes | Typedefs | Functions
test_para_linear_trans.cpp File Reference
#include "../para_linear_transform.h"
#include <gtest/gtest.h>
#include <mpi.h>
Include dependency graph for test_para_linear_trans.cpp:

Classes

class  ParaLinearTransformTest< T >
 

Typedefs

typedef ::testing::Types< double, std::complex< double > > MyTypes
 

Functions

void random_data (std::vector< double > &A_global, std::vector< double > &B_global, std::vector< double > &U_global, double &alpha, double &beta)
 
void random_data (std::vector< std::complex< double > > &A_global, std::vector< std::complex< double > > &B_global, std::vector< std::complex< double > > &U_global, std::complex< double > &alpha, std::complex< double > &beta)
 
double get_double (std::complex< double > &val)
 
double get_double (double &val)
 
 TYPED_TEST_SUITE (ParaLinearTransformTest, MyTypes)
 
 TYPED_TEST (ParaLinearTransformTest, globalU)
 
 TYPED_TEST (ParaLinearTransformTest, localU)
 
int main (int argc, char **argv)
 

Typedef Documentation

◆ MyTypes

typedef ::testing::Types<double, std::complex<double> > MyTypes

Function Documentation

◆ get_double() [1/2]

double get_double ( double &  val)

◆ get_double() [2/2]

double get_double ( std::complex< double > &  val)
Here is the caller graph for this function:

◆ main()

int main ( int  argc,
char **  argv 
)

◆ random_data() [1/2]

void random_data ( std::vector< double > &  A_global,
std::vector< double > &  B_global,
std::vector< double > &  U_global,
double &  alpha,
double &  beta 
)
Here is the caller graph for this function:

◆ random_data() [2/2]

void random_data ( std::vector< std::complex< double > > &  A_global,
std::vector< std::complex< double > > &  B_global,
std::vector< std::complex< double > > &  U_global,
std::complex< double > &  alpha,
std::complex< double > &  beta 
)

◆ TYPED_TEST() [1/2]

TYPED_TEST ( ParaLinearTransformTest  ,
globalU   
)
Here is the call graph for this function:

◆ TYPED_TEST() [2/2]

TYPED_TEST ( ParaLinearTransformTest  ,
localU   
)
Here is the call graph for this function:

◆ TYPED_TEST_SUITE()

TYPED_TEST_SUITE ( ParaLinearTransformTest  ,
MyTypes   
)