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