Skip to content

Commit

Permalink
Fixed the iterator comparison in SparseStorage
Browse files Browse the repository at this point in the history
  • Loading branch information
cvanaret committed Oct 16, 2024
1 parent b0d5da2 commit 8bdf815
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion uno/linear_algebra/SparseStorage.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ namespace uno {
}

friend bool operator!=(const iterator& a, const iterator& b) {
return &a.sparse_storage != &b.sparse_storage || a.column_index != b.column_index || a.nonzero_index != b.nonzero_index;
return a.nonzero_index != b.nonzero_index;
}

protected:
Expand Down

0 comments on commit 8bdf815

Please sign in to comment.