SciPy

scipy.sparse.csc_matrix.has_sorted_indices

csc_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