CPPLapack
 All Classes Files Functions Variables Friends Pages
zgsmatrix-cast.hpp
Go to the documentation of this file.
1 //=============================================================================
2 /*! convert to _zgematrix */
4 {CPPL_VERBOSE_REPORT;
5  zgematrix newmat( zgematrix(m,n).zero() );
6 
7  const size_t data_size =data.size();
8  for(size_t c=0; c<data_size; c++){
9  const zcomponent& z =data[c];
10  newmat(z.i,z.j) =z.v;
11  }
12 
13  return _(newmat);
14 }
comple v
value of the component
Definition: zcomponent.hpp:11
friend _zgsmatrix _(zgsmatrix &)
Complex Double-precision General Dence Matrix Class.
Definition: zgematrix.hpp:3
std::vector< zcomponent > data
matrix data
Definition: zgsmatrix.hpp:11
Component Class for Complex Double-precision Sparse Matrix Classes.
Definition: zcomponent.hpp:3
(DO NOT USE) Smart-temporary Complex Double-precision General Dence Matrix Class
Definition: _zgematrix.hpp:3
CPPL_INT j
j index of the component
Definition: zcomponent.hpp:10
_zgematrix to_zgematrix() const
CPPL_INT i
i index of the component
Definition: zcomponent.hpp:9
CPPL_INT m
matrix row size
Definition: zgsmatrix.hpp:9
zgsmatrix & zero()
CPPL_INT n
matrix column size
Definition: zgsmatrix.hpp:10