SciPy

This is documentation for an old release of SciPy (version 0.17.1). Read this page in the documentation of the latest stable release (version 1.15.1).

scipy.sparse.csr_matrix.has_sorted_indices

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