warp.sparse.bsr_row_index#

warp.sparse.bsr_row_index = <Function bsr_row_index(offsets: array(ndim=1, dtype=int32), row_count: int, block_index: int)>#

Returns the index of the row containing a given block, or -1 if no such row exists.

Parameters:
  • offsets (array(ndim=1, dtype=int32)) – Array of size at least 1 + row_count containing the offsets of the blocks in each row.

  • row_count (int) – Number of rows of blocks.

  • block_index (int) – Index of the block.

Return type:

int