scipy.sparse
csr_matrix.
has_sorted_indices
Determine whether the matrix has sorted indices
scipy.sparse.csr_matrix.nnz
scipy.sparse.csr_matrix.arcsin