Commit bcb867f6 authored by Gregor Olenik's avatar Gregor Olenik
Browse files

Fix sorting bounds of sorting_idxs

parent 7f5b3f07
......@@ -184,7 +184,7 @@ public:
// to avoid unnecessary index re-orderings
// when v contains elements of equal values
std::stable_sort(sorting_idxs_->data(),
&sorting_idxs_->data()[nCells()],
&sorting_idxs_->data()[nElems()],
[this](size_t i1, size_t i2) {
return row_idxs_[i1] < row_idxs_[i2];
});
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment