CPPLapack
 All Classes Files Functions Variables Friends
_zgsmatrix-cast.hpp
Go to the documentation of this file.
00001 //=============================================================================
00002 /*! convert to _zgematrix */
00003 inline _zgematrix _zgsmatrix::to_zgematrix() const
00004 {VERBOSE_REPORT;
00005   zgematrix newmat(m,n);
00006   newmat.zero();
00007   
00008   for(std::vector<zcomponent>::const_iterator it=data.begin(); it!=data.end(); it++){
00009     newmat(it->i,it->j) = it->v;
00010   }
00011   
00012   destroy();
00013   return _(newmat);
00014 }
 All Classes Files Functions Variables Friends