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