void KMCentersTree::get_assignments(Ints &close_center) { IMP_LOG(VERBOSE,"KMCentersTree::get_assignments for " << centers_->get_number_of_centers() << " centers "<<std::endl); close_center.clear(); Ints candidate_centers; for (int j = 0; j < centers_->get_number_of_centers(); j++) { candidate_centers.push_back(j); } close_center.clear(); for(int i=0;i<data_points_->get_number_of_points();i++) { close_center.push_back(0); } root_->get_assignments(candidate_centers,close_center); }
void NeuNetUI::selectedNets(Ints & netIds) const { netIds.clear(); for (QTableWidgetItem *item : ui->nets->selectedItems()) if (item && tuteNow.contains(item->row())) throw AlreadyTute(); for (QTableWidgetItem *item : ui->nets->selectedItems()) { if (item && item->column() == 0) { int index = item->row(); netIds.append(index); } item->setSelected(false); } }