Lines Matching refs:theVect

57 cDVector::cDVector(const cDVector& theVect) : mvV(0), mvVm1(0), mvN(0)  in cDVector()  argument
59 Initialize(theVect.mvN) ; in cDVector()
60 Copy(theVect.mvV) ; in cDVector()
69 cDVector::cDVector(uint theN, const double* theVect) : mvV(0), mvVm1(0), mvN(0) in cDVector() argument
72 Copy(theVect) ; in cDVector()
92 void cDVector::ReAlloc(uint theSize, double* theVect) in ReAlloc() argument
99 mvV[i] = theVect[i] ; in ReAlloc()
102 cDVector& cDVector::operator=(const cDVector& theVect) in operator =() argument
104 if (mvV == theVect.mvV) in operator =()
107 if (mvN == theVect.mvN) // no need to re-alloc in operator =()
108 Copy(theVect.mvV) ; in operator =()
112 Initialize(theVect.mvN) ; in operator =()
113 Copy(theVect.mvV) ; in operator =()
119 cDVector& cDVector::operator=(const double* theVect) in operator =() argument
121 Copy(theVect) ; in operator =()
246 std::ostream& operator<<(std::ostream& theStream, const cDVector& theVect) in operator <<() argument
248 uint myN=theVect.GetSize() ; in operator <<()
250 theStream << theVect[i] << " " << std::endl ; in operator <<()
254 static cDVector ScalMult(const cDVector& theVect, const double& theValue) in ScalMult() argument
256 uint myN = theVect.GetSize() ; in ScalMult()
259 myTmpVect[i] = theVect[i] * theValue ; in ScalMult()
263 cDVector operator*(const cDVector& theVect, const double& theValue) in operator *() argument
265 return ScalMult(theVect, theValue) ; in operator *()
268 cDVector operator *=(cDVector& theVect, const double& theValue) in operator *=() argument
270 theVect = ScalMult(theVect, theValue) ; in operator *=()
271 return theVect ; in operator *=()
274 cDVector operator*(const double& theVal, const cDVector& theVect) in operator *() argument
276 return ScalMult(theVect, theVal) ; in operator *()
279 cDVector operator/(const cDVector& theVect, const double& theVal) in operator /() argument
283 return ScalMult(theVect, 1.0/theVal) ; in operator /()
286 cDVector operator /=(cDVector& theVect, const double& theVal) in operator /=() argument
290 theVect = ScalMult(theVect, 1/theVal) ; in operator /=()
291 return theVect ; in operator /=()
304 cDVector operator += (cDVector& theVect, const cDVector& theRightVect) in operator +=() argument
306 uint myN = theVect.GetSize() ; in operator +=()
309 theVect[i] += theRightVect[i] ; in operator +=()
310 return theVect ; in operator +=()
313 cDVector operator-(const cDVector& theVect, const cDVector& theRightVect) in operator -() argument
315 uint myN = theVect.GetSize() ; in operator -()
319 myTmpVect[i] = theVect[i] - theRightVect[i] ; in operator -()
323 cDVector operator-=(cDVector& theVect, const cDVector& theRightVect) in operator -=() argument
325 uint myN = theVect.GetSize() ; in operator -=()
328 theVect[i] -= theRightVect[i] ; in operator -=()
329 return theVect ; in operator -=()
338 double AsDouble(const cDVector& theVect) in AsDouble() argument
339 { return theVect[0] ; in AsDouble()
342 cDVector CopyDouble(double* theVect, uint theSize) in CopyDouble() argument
344 cDVector myTmpVect(theSize, theVect) ; in CopyDouble()
389 cDVector cat(const cDVector& theVect, double theDouble) in cat() argument
391 uint mySize = theVect.GetSize() ; in cat()
394 SetSubVector(theVect, 0, myVect) ; in cat()
400 cDVector cat(double theDouble, const cDVector& theVect) in cat() argument
402 uint mySize = theVect.GetSize() ; in cat()
405 SetSubVector(theVect, 1, myVect) ; in cat()