fix: better dimension management in edo/adaptive operators

This commit is contained in:
Johann Dreo 2020-04-27 22:00:10 +02:00
commit 4110534122
5 changed files with 50 additions and 8 deletions

View file

@ -90,7 +90,8 @@ public:
* INITIALIZATION
*********************************************************************/
unsigned int N = pop[0].size(); // FIXME expliciter la dimension du pb ?
unsigned int N = this->distribution().size();
assert(this->distribution().size() == pop[0].size());
unsigned int lambda = pop.size();
// number of calls to the operator == number of generations