My Project
dsymatrix-cast.hpp
1 //============================================================================
3 inline dsymatrix::operator _zhematrix()
4 {
5 #ifdef CPPL_VERBOSE
6  std::cerr << "# [MARK] dsymatrix::operator _zhematrix()"
7  << std::endl;
8 #endif//CPPL_VERBOSE
9 
10  complete();
11  zhematrix newmat(N);
12  for(long i=0; i<N*N; i++){
13  newmat.array[i] =std::complex<double>(array[i],0.0);
14  }
15 
16 #ifdef CPPL_DEBUG
17  std::cerr << "# [NOTE] dsymatrix::operator _zhematrix() "
18  << "A new casted matrix at " << newmat.array
19  << " has been made." << std::endl;
20 #endif//CPPL_DEBUG
21 
22  return _(newmat);
23 }
(DO NOT USE) Smart-temporary Complex Double-precision Hermitian Matrix Class
Definition: _zhematrix.hpp:3
std::complex< double > *const & array
1D array to store matrix data (readable)
Definition: zhematrix.hpp:15
Complex Double-precision Hermitian Matrix Class [L-type (UPLO=L) Strage].
Definition: zhematrix.hpp:4