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