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 /*! -zgematrix operator */
00010 inline _zhematrix operator-(const zhematrix& mat)
00011 {VERBOSE_REPORT;
00012   zhematrix newmat(mat.n);
00013   for(long i=0; i<mat.n; i++){ for(long j=0; j<=i; j++){
00014     newmat(i,j) =-mat(i,j);
00015   }}
00016   
00017   return _(newmat);
00018 }
 All Classes Files Functions Variables Friends