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

Function indptrBuffer

cpp/src/generated/SparseTensor_generated.h:292–294  ·  view source on GitHub ↗

indptrBuffer stores the location and size of indptr array that represents the range of the rows. The i-th row spans from `indptr[i]` to `indptr[i+1]` in the data. The length of this array is 1 + (the number of rows), and the type of index value is long. For example, let X be the following 6x4 matrix: ```text X := [[0, 1, 2, 0], [0, 0, 3, 0], [0, 4, 0, 5], [0, 0, 0, 0], [6, 0, 7, 8], [0, 9, 0, 0]]

Source from the content-addressed store, hash-verified

290 /// indptr(X) = [0, 2, 3, 5, 5, 8, 10].
291 /// ```
292 const org::apache::arrow::flatbuf::Buffer *indptrBuffer() const {
293 return GetStruct<const org::apache::arrow::flatbuf::Buffer *>(VT_INDPTRBUFFER);
294 }
295 /// The type of values in indicesBuffer
296 const org::apache::arrow::flatbuf::Int *indicesType() const {
297 return GetPointer<const org::apache::arrow::flatbuf::Int *>(VT_INDICESTYPE);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected