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

drovector-unary.hpp File Reference

Go to the source code of this file.

Functions

const drovectoroperator+ (const drovector &vec)
_drovector operator- (const drovector &vec)


Function Documentation

const drovector& operator+ const drovector vec  )  [inline]
 

+drovector operator

Definition at line 3 of file drovector-unary.hpp.

00004 {
00005   return vec;
00006 }

_drovector operator- const drovector vec  )  [inline]
 

-drovector operator

Definition at line 10 of file drovector-unary.hpp.

References drovector::Array, _drovector::Array, drovector::L, and drovector::Ll.

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