Skip to content

Commit

Permalink
Style.
Browse files Browse the repository at this point in the history
  • Loading branch information
rok committed Feb 5, 2020
1 parent 4f2bf00 commit 24a831f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 2 additions & 0 deletions cpp/src/arrow/compare.cc
Expand Up @@ -1194,6 +1194,7 @@ inline bool SparseTensorEqualsImplDispatch(const SparseTensorImpl<SparseIndexTyp
checked_cast<const SparseTensorImpl<SparseCSCIndex>&>(right);
return SparseTensorEqualsImpl<SparseIndexType, SparseCSCIndex>::Compare(left,
right_csc);
}

case SparseTensorFormat::CSF: {
const auto& right_csf =
Expand Down Expand Up @@ -1236,6 +1237,7 @@ bool SparseTensorEquals(const SparseTensor& left, const SparseTensor& right) {
case SparseTensorFormat::CSC: {
const auto& left_csc = checked_cast<const SparseTensorImpl<SparseCSCIndex>&>(left);
return SparseTensorEqualsImplDispatch(left_csc, right);
}

case SparseTensorFormat::CSF: {
const auto& left_csf = checked_cast<const SparseTensorImpl<SparseCSFIndex>&>(left);
Expand Down
2 changes: 0 additions & 2 deletions cpp/src/arrow/sparse_tensor.cc
Expand Up @@ -735,8 +735,6 @@ Status MakeTensorFromSparseTensor(MemoryPool* pool, const SparseTensor* sparse_t
internal::checked_cast<const SparseCSCIndex&>(*sparse_tensor->sparse_index());
const std::shared_ptr<const Tensor> indptr = sparse_index.indptr();
const std::shared_ptr<const Tensor> indices = sparse_index.indices();
const auto raw_data =
reinterpret_cast<const value_type*>(sparse_tensor->raw_data());

int64_t offset;
for (int64_t j = 0; j < indptr->size() - 1; ++j) {
Expand Down
2 changes: 1 addition & 1 deletion cpp/src/arrow/sparse_tensor_test.cc
Expand Up @@ -933,7 +933,7 @@ class TestSparseCSFTensorBase : public ::testing::Test {
protected:
std::vector<int64_t> shape_;
std::vector<std::string> dim_names_;
std::shared_ptr<SparseCSCMatrix> sparse_tensor_from_dense_;
std::shared_ptr<SparseCSFTensor> sparse_tensor_from_dense_;
};

class TestSparseCSFTensor : public TestSparseCSFTensorBase<Int64Type> {};
Expand Down

0 comments on commit 24a831f

Please sign in to comment.