//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
{
std::vector<std::size_t> ret;
std::size_t nbOfPlacesToTakeCpy(nbOfPlacesToTake),offset(0);
{
std::vector<std::size_t> ret;
std::size_t nbOfPlacesToTakeCpy(nbOfPlacesToTake),offset(0);
{
std::vector<std::size_t> contIdsInRes(res.allocateFor(nbOfPlacesToTakeCpy,nbCoresPerCont));
std::for_each(contIdsInRes.begin(),contIdsInRes.end(),[offset](std::size_t& val) { val += offset; });
{
std::vector<std::size_t> contIdsInRes(res.allocateFor(nbOfPlacesToTakeCpy,nbCoresPerCont));
std::for_each(contIdsInRes.begin(),contIdsInRes.end(),[offset](std::size_t& val) { val += offset; });
{
std::size_t nbOfWorker(static_cast<std::size_t>(res.nbCores()/nbCoresPerCont));
std::size_t minId(offset),maxId(offset+nbOfWorker);
{
std::size_t nbOfWorker(static_cast<std::size_t>(res.nbCores()/nbCoresPerCont));
std::size_t minId(offset),maxId(offset+nbOfWorker);
std::vector<int> PlayGround::BuildVectOfIdsFromVecBool(const std::vector<bool>& v)
{
std::size_t sz(std::count(v.begin(),v.end(),true)),i(0);
std::vector<int> PlayGround::BuildVectOfIdsFromVecBool(const std::vector<bool>& v)
{
std::size_t sz(std::count(v.begin(),v.end(),true)),i(0);