SciPy

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

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