LibraryLink`
LibraryLink`

MSparseArray_getRowPointers (C Function)

get a pointer to the MSparseArray containing the row pointer array for s.

Details

  • Used in C/C++ code in a library function called from the Wolfram Language.
  • The result will point to an empty MTensor or an MTensor of rank 1 with integer type. Its length is equal to where is the number of rows of s, or for rank 1 s, the length is 2.
  • The values are the cumulative number of explicitly represented elements for each row, so the values will be nondecreasing for positions 0 through .