update documentation

git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@2212 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
boufaras 2011-05-11 14:57:37 +00:00
commit 39d860453a

View file

@ -95,10 +95,11 @@ public:
virtual moGPUVector& operator=(const moGPUVector & _vector) {
if (N >= 1)
if (!(N == _vector.N) && (N >= 1)) {
delete[] vect;
N = _vector.N;
vect = new ElemType[N];
N = _vector.N;
vect = new ElemType[N];
}
for (unsigned i = 0; i < N; i++)
vect[i] = _vector.vect[i];
if (!(_vector.invalid()))
@ -155,8 +156,10 @@ public:
}
/**
* Print the solution
* Write object. Called printOn since it prints the object _on_ a stream.
* @param _os A std::ostream.
*/
virtual void printOn(std::ostream& os) const=0;