My Project
dssmatrix-cast.hpp
1 //============================================================================
3 inline dssmatrix::operator _zssmatrix()
4 {
5 #ifdef CPPL_VERBOSE
6  std::cerr << "# [MARK] dssmatrix::operator _zssmatrix()"
7  << std::endl;
8 #endif//CPPL_VERBOSE
9 
10  zssmatrix newmat(M,N,CAP);
11  for(long c=0; c<VOL; c++){
12  newmat.fput(Indx[c], Jndx[c], std::complex<double>(Array[c],0.0));
13  }
14 
15 #ifdef CPPL_DEBUG
16  std::cerr << "# [NOTE] dssmatrix::operator _zssmatrix() "
17  << "A new casted matrix at " << newmat.array
18  << " has been made." << std::endl;
19 #endif//CPPL_DEBUG
20 
21  return _(newmat);
22 }
void fput(const long &, const long &, const std::complex< double > &)
Definition: zssmatrix-io.hpp:75
(DO NOT USE) Smart-temporary Complex Double-precision Sparse Matrix Class
Definition: _zssmatrix.hpp:3
double * Array
1D Array to store vector data
Definition: _drovector.hpp:8
std::complex< double > *const & array
1D array to store matrix data (readable)
Definition: zssmatrix.hpp:21
Complex Double-precision Sparse Matrix Class.
Definition: zssmatrix.hpp:3