Go to the source code of this file.
Functions | |
_dcovector | operator * (const dcovector &vec, const double &d) |
_dcovector | operator/ (const dcovector &vec, const double &d) |
|
dcovector*double operator Definition at line 23 of file dcovector-double.hpp. References dcovector::Array, _dcovector::Array, dcovector::L, and dcovector::Ll.
00024 { 00025 _dcovector newvec(vec.L); 00026 for(int i=0; i<vec.Ll; i++){ newvec.Array[i] =vec.Array[i]*d; } 00027 00028 return newvec; 00029 } |
|
dcovector/double operator Definition at line 33 of file dcovector-double.hpp. References dcovector::Array, _dcovector::Array, dcovector::L, and dcovector::Ll.
00034 { 00035 double inv_d(1./d); 00036 00037 _dcovector newvec(vec.L); 00038 for(int i=0; i<vec.Ll; i++){ newvec.Array[i] =vec.Array[i]*inv_d; } 00039 00040 return newvec; 00041 } |