CPPLapack
 All Classes Files Functions Variables Friends Pages
dgematrix-cast.hpp
Go to the documentation of this file.
1 //=============================================================================
2 /*! cast to _zgematrix */
4 {CPPL_VERBOSE_REPORT;
5  zgematrix newmat(m,n);
6  for(CPPL_INT i=0; i<m*n; i++){
7  newmat.array[i] =comple(array[i],0.0);
8  }
9 
10  return _(newmat);
11 }
CPPL_INT m
matrix row size
Definition: dgematrix.hpp:9
double * array
1D array to store matrix data
Definition: dgematrix.hpp:11
CPPL_INT n
matrix column size
Definition: dgematrix.hpp:10
Complex Double-precision General Dence Matrix Class.
Definition: zgematrix.hpp:3
comple * array
1D array to store matrix data
Definition: zgematrix.hpp:11
(DO NOT USE) Smart-temporary Complex Double-precision General Dence Matrix Class
Definition: _zgematrix.hpp:3
_zgematrix to_zgematrix() const
friend _dgematrix i(const dgematrix &)
friend _dgematrix _(dgematrix &)