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