From 323f4ad5c54a7c34b7d296902e27ae5e0e84d1e7 Mon Sep 17 00:00:00 2001 From: boufaras Date: Wed, 14 Sep 2011 13:18:06 +0000 Subject: [PATCH] update doc git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@2370 331e1502-861f-0410-8da2-ba01fb791d7f --- .../src/GPUType/moGPUPermutationVector.h | 28 ++----------------- 1 file changed, 3 insertions(+), 25 deletions(-) diff --git a/branches/ParadisEO-GPU/src/GPUType/moGPUPermutationVector.h b/branches/ParadisEO-GPU/src/GPUType/moGPUPermutationVector.h index 17cacf190..bd3fcc4f3 100644 --- a/branches/ParadisEO-GPU/src/GPUType/moGPUPermutationVector.h +++ b/branches/ParadisEO-GPU/src/GPUType/moGPUPermutationVector.h @@ -61,11 +61,11 @@ public: /** *Constructor. - *@param _neighborhoodSize The neighborhood size. + *@param _size The solution size. */ - moGPUPermutationVector(unsigned _neighborhoodSize) : - moGPUIntVector (_neighborhoodSize) { + moGPUPermutationVector(unsigned _size) : + moGPUIntVector (_size) { create(); } /** @@ -86,28 +86,6 @@ public: } } - /** - *Function inline to set the size of vector, called from host. - *@param _size the vector size - */ - - void setSize(unsigned _size) { - - if (_size < N) { - moGPUPermutationVector tmp_vect(_size); - for (unsigned i = 0; i < tmp_vect.N; i++) - tmp_vect.vect[i] = vect[i]; - (tmp_vect).invalidate(); - (*this) = tmp_vect; - } else if (_size > N) { - moGPUPermutationVector tmp_vect(_size); - for (unsigned i = 0; i < N; i++) - tmp_vect.vect[i] = vect[i]; - (tmp_vect).invalidate(); - (*this) = tmp_vect; - } - - } };