Main Page | Class List | File List | Class Members | File Members | Related Pages

drovector-unary.hpp

Go to the documentation of this file.
00001 //=============================================================================
00002 /*! +drovector operator */
00003 inline const drovector& operator+(const drovector& vec)
00004 {
00005   return vec;
00006 }
00007 
00008 //=============================================================================
00009 /*! -drovector operator */
00010 inline _drovector operator-(const drovector& vec)
00011 {
00012   _drovector newvec(vec.L);
00013   for(long i=0; i<vec.Ll; i++){ newvec.Array[i]=-vec.Array[i]; }
00014   
00015   return newvec;
00016 }

Generated on Sat Jan 31 19:25:44 2004 for CPPScaLapack by doxygen 1.3.5