rok commented on code in PR #49105:
URL: https://github.com/apache/arrow/pull/49105#discussion_r2760848146
##########
cpp/src/arrow/sparse_tensor.cc:
##########
Review Comment:
How about just replacing this function?
```suggestion
bool SparseCSFIndex::Equals(const SparseCSFIndex& other) const {
auto eq = [](const auto& a, const auto& b) { return a->Equals(*b); };
return axis_order() == other.axis_order()
&& std::ranges::equal(indices(), other.indices(), eq)
&& std::ranges::equal(indptr(), other.indptr(), eq);
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]