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

Function non_zero_length

cpp/src/arrow/sparse_tensor.h:165–165  ·  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

163 /// \brief Return the number of non zero values in the sparse tensor related
164 /// to this sparse index
165 int64_t non_zero_length() const override { return coords_->shape()[0]; }
166
167 /// \brief Return whether a sparse tensor index is canonical, or not.
168 /// If a sparse tensor index is canonical, it is sorted in the lexicographical order,

Callers

nothing calls this directly

Calls 3

backMethod · 0.80
shapeMethod · 0.45
non_zero_lengthMethod · 0.45

Tested by

no test coverage detected