My Project
drovector-cast.hpp
1 //============================================================================
3 inline drovector::operator _zrovector()
4 {
5 #ifdef CPPL_VERBOSE
6  std::cerr << "# [MARK] drovector::operator _zrovector()"
7  << std::endl;
8 #endif//CPPL_VERBOSE
9 
10  zrovector newvec(L);
11  for(long i=0; i<L; i++){
12  newvec.array[i] =std::complex<double>(Array[i],0.0);
13  }
14 
15 #ifdef CPPL_DEBUG
16  std::cerr << "# [NOTE] drovector::operator _zrovector() "
17  << "A new casted matrix at " << newvec.array
18  << " has been made." << std::endl;
19 #endif//CPPL_DEBUG
20 
21  return _(newvec);
22 }
double * Array
1D Array to store vector data
Definition: _drovector.hpp:8
Complex Double-precision Row Vector Class.
Definition: zrovector.hpp:3
(DO NOT USE) Smart-temporary Complex Double-precision Row Vector Class
Definition: _zrovector.hpp:3
long L
vector size
Definition: _drovector.hpp:7