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