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

Function non_zero_length

cpp/src/generated/SparseTensor_generated.h:652–654  ·  view source on GitHub ↗

The number of non-zero values in a sparse tensor.

Source from the content-addressed store, hash-verified

650 }
651 /// The number of non-zero values in a sparse tensor.
652 int64_t non_zero_length() const {
653 return GetField<int64_t>(VT_NON_ZERO_LENGTH, 0);
654 }
655 org::apache::arrow::flatbuf::SparseTensorIndex sparseIndex_type() const {
656 return static_cast<org::apache::arrow::flatbuf::SparseTensorIndex>(GetField<uint8_t>(VT_SPARSEINDEX_TYPE, 0));
657 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected