ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
diago_mock.h File Reference
#include "mpi.h"
#include "source_base/parallel_reduce.h"
#include "source_hsolver/hs_operator.h"
#include "source_psi/psi.h"
#include <random>
#include <algorithm>
#include <complex>
#include <fstream>
#include <iostream>
#include <vector>
#include "source_base/macros.h"
Include dependency graph for diago_mock.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  HPsi< T >
class  HSOperatorMock< T >

Namespaces

namespace  DIAGOTEST

Functions

void DIAGOTEST::readh (std::ifstream &inf, std::vector< double > &hm)
void DIAGOTEST::readh (std::ifstream &inf, std::vector< std::complex< double > > &hm)
void DIAGOTEST::readh (std::ifstream &inf, std::vector< std::complex< float > > &hm)
template<class T>
void DIAGOTEST::divide_psi (T *psi, T *psi_local)
template void DIAGOTEST::divide_psi< double > (double *psi, double *psi_local)
template void DIAGOTEST::divide_psi< std::complex< double > > (std::complex< double > *psi, std::complex< double > *psi_local)
template void DIAGOTEST::divide_psi< std::complex< float > > (std::complex< float > *psi, std::complex< float > *psi_local)
void DIAGOTEST::cal_division (int &npw)
template<typename T>
void DIAGOTEST::divide_hpsi (psi::Psi< T > &psi, psi::Psi< T > &psi_local, std::vector< T > &hmatrix, std::vector< T > &hmatrix_local)
template<typename T>
std::vector< T > & DIAGOTEST::hmatrix_local_of ()
 the process-local slice of the test matrix for each scalar type
template<>
std::vector< double > & DIAGOTEST::hmatrix_local_of< double > ()
template<>
std::vector< std::complex< double > > & DIAGOTEST::hmatrix_local_of< std::complex< double > > ()
template<>
std::vector< std::complex< float > > & DIAGOTEST::hmatrix_local_of< std::complex< float > > ()

Variables

std::vector< double > DIAGOTEST::hmatrix_d
std::vector< double > DIAGOTEST::hmatrix_local_d
std::vector< std::complex< double > > DIAGOTEST::hmatrix
std::vector< std::complex< double > > DIAGOTEST::hmatrix_local
std::vector< std::complex< float > > DIAGOTEST::hmatrix_f
std::vector< std::complex< float > > DIAGOTEST::hmatrix_local_f
int DIAGOTEST::h_nr
int DIAGOTEST::h_nc
int DIAGOTEST::npw
int * DIAGOTEST::npw_local