update doc
git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@2370 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
parent
37835557fc
commit
323f4ad5c5
1 changed files with 3 additions and 25 deletions
|
|
@ -61,11 +61,11 @@ public:
|
|||
|
||||
/**
|
||||
*Constructor.
|
||||
*@param _neighborhoodSize The neighborhood size.
|
||||
*@param _size The solution size.
|
||||
*/
|
||||
|
||||
moGPUPermutationVector(unsigned _neighborhoodSize) :
|
||||
moGPUIntVector<Fitness> (_neighborhoodSize) {
|
||||
moGPUPermutationVector(unsigned _size) :
|
||||
moGPUIntVector<Fitness> (_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<Fitness> 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<Fitness> tmp_vect(_size);
|
||||
for (unsigned i = 0; i < N; i++)
|
||||
tmp_vect.vect[i] = vect[i];
|
||||
(tmp_vect).invalidate();
|
||||
(*this) = tmp_vect;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue