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