Go to the source code of this file.
Functions | |
const drovector & | operator+ (const drovector &vec) |
_drovector | operator- (const drovector &vec) |
|
+drovector operator Definition at line 3 of file drovector-unary.hpp.
00004 {
00005 return vec;
00006 }
|
|
-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 } |