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  destroy();
23  return _(newmat);
24 }
(DO NOT USE) Smart-temporary Complex Double-precision Hermitian Matrix Class
Definition: _zhematrix.hpp:3
double * Array
1D Array to store vector data
Definition: _drovector.hpp:8
void destroy() const
Definition: _drovector-misc.hpp:3
Complex Double-precision Hermitian Matrix Class [L-type (UPLO=L) Strage].
Definition: zhematrix.hpp:4