SciPy

scipy.sparse.bsr_matrix.has_sorted_indices

bsr_matrix.has_sorted_indices

Determine whether the matrix has sorted indices

Returns
  • True: if the indices of the matrix are in sorted order

  • False: otherwise