sparse_is_sorted
sparse_is_sorted(i, j)
Categories: Sparse
Description
checks whether the indices in i and j of a sparse coo format come in the order that they would appear inside an image * @param i, j index arrays * @param nnz dimension of i, j returns 0 for all OK k for first non-sorted element -k for first duplicate
Parameters
| Name | Description |
|---|---|
i |
Row indices (uint16). |
j |
Col indices (uint16). |
Constraints
i.slow_axis == 0i.format == 'H' or i.itemsize == 2j.format == 'H' or j.itemsize == 2j.n == i.n
Overloads
| C function | Condition |
|---|---|
sparse_is_sorted |
always |
Built from commit 7ba8255fa8d680e1a1df79e67aee3873247ce69c (v0.4.5)