CPPLapack
 All Classes Files Functions Variables Friends
zhsmatrix-unary.hpp
Go to the documentation of this file.
00001 //=============================================================================
00002 /*! +zhsmatrix operator */
00003 inline const zhsmatrix& operator+(const zhsmatrix& mat)
00004 {VERBOSE_REPORT;
00005   return mat;
00006 }
00007 
00008 //=============================================================================
00009 /*! -zhsmatrix operator */
00010 inline _zhsmatrix operator-(const zhsmatrix& mat)
00011 {VERBOSE_REPORT;
00012   zhsmatrix newmat(mat);
00013   for(std::vector<zcomponent>::iterator it=newmat.data.begin(); it!=newmat.data.end(); it++){
00014     it->v =-it->v;
00015   }
00016   return _(newmat);
00017 }
 All Classes Files Functions Variables Friends