Replace boost::heap::priority_queue with std::vector

This commit is contained in:
LiuZhuojin
2022-04-09 14:58:28 +08:00
parent ae69f60927
commit 562f25f4ea
@@ -105,7 +105,7 @@ CosineTree::CosineTree(const arma::mat& dataset,
// Pop node from queue with highest projection error.
CosineTree* currentNode;
currentNode = treeQueue.front();
std::pop_heap(treeQueue.begin(), treeQueue.end());
std::pop_heap(treeQueue.begin(), treeQueue.end(), comp);
treeQueue.pop_back();
// If the priority is 0, we can't improve anything, and we can assume that