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