CPPLapack
 All Classes Files Functions Variables Friends
dgematrix-unary.hpp
Go to the documentation of this file.
00001 //=============================================================================
00002 /*! +dgematrix operator */
00003 inline const dgematrix& operator+(const dgematrix& mat)
00004 {VERBOSE_REPORT;
00005   return mat;
00006 }
00007 
00008 //=============================================================================
00009 /*! -dgematrix operator */
00010 inline _dgematrix operator-(const dgematrix& mat)
00011 {VERBOSE_REPORT;
00012   dgematrix newmat(mat.m,mat.n);
00013   for(long i=0; i<newmat.m*newmat.n; i++){ newmat.array[i]=-mat.array[i]; }
00014   return _(newmat);
00015 }
 All Classes Files Functions Variables Friends