MCPcopy Create free account
hub / github.com/apache/arrow / non_zero_length

Method non_zero_length

cpp/src/arrow/sparse_tensor.h:293–293  ·  view source on GitHub ↗

\brief Return the number of non zero values in the sparse tensor related to this sparse index

Source from the content-addressed store, hash-verified

291 /// \brief Return the number of non zero values in the sparse tensor related
292 /// to this sparse index
293 int64_t non_zero_length() const override { return indices_->shape()[0]; }
294
295 /// \brief Return a string representation of the sparse index
296 std::string ToString() const override {

Callers 15

SparseCOOTensorToNdarrayFunction · 0.45
SparseCSXMatrixToNdarrayFunction · 0.45
SparseCSFTensorToNdarrayFunction · 0.45
CompareMethod · 0.45
SparseTensorEqualsFunction · 0.45
non_zero_lengthFunction · 0.45
TEST_FFunction · 0.45
TYPED_TEST_PFunction · 0.45

Calls 1

shapeMethod · 0.45

Tested by 5

TEST_FFunction · 0.36
TYPED_TEST_PFunction · 0.36