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

Function is_canonical

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

\brief Return whether a sparse tensor index is canonical, or not. If a sparse tensor index is canonical, it is sorted in the lexicographical order, and the corresponding sparse tensor doesn't have duplicated entries.

Source from the content-addressed store, hash-verified

168 /// If a sparse tensor index is canonical, it is sorted in the lexicographical order,
169 /// and the corresponding sparse tensor doesn't have duplicated entries.
170 bool is_canonical() const { return is_canonical_; }
171
172 /// \brief Return a string representation of the sparse index
173 std::string ToString() const override;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected