diff --git a/branches/ParadisEO-GPU/src/cudaType/moCudaVector.h b/branches/ParadisEO-GPU/src/cudaType/moCudaVector.h index bf5d236ab..263bead5a 100644 --- a/branches/ParadisEO-GPU/src/cudaType/moCudaVector.h +++ b/branches/ParadisEO-GPU/src/cudaType/moCudaVector.h @@ -62,11 +62,9 @@ public: *@param _size The neighborhood size. */ - moCudaVector(unsigned _size) { + moCudaVector(unsigned _size): N (_size){ - N = _size; - - vect = new ElemType[_size]; + vect = new ElemType[N]; } @@ -154,15 +152,7 @@ public: * Print the solution */ - virtual void printOn(std::ostream& os) const { - EO::printOn(os); - os << ' '; - os << N << ' '; - unsigned int i; - for (i = 0; i < N; i++) - os << vect[i] << ' '; - - } + virtual void printOn(std::ostream& os) const=0; protected: