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

dcovector-double.hpp File Reference

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)


Function Documentation

_dcovector operator * const dcovector vec,
const double &  d
[inline]
 

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 operator/ const dcovector vec,
const double &  d
[inline]
 

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 }


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