SciPy

scipy.sparse.csr_matrix.has_sorted_indices

property csr_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