Skip to content

Commit deb18f8

Browse files
docs: show difference from numpy behavior
1 parent 04e901d commit deb18f8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

fastremap/fastremap.pyx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1063,7 +1063,10 @@ def _unique_via_array(
10631063
(max_label+1,), dtype=np.uint64
10641064
)
10651065
cdef cnp.ndarray[uintptr_t, ndim=1] index
1066-
1066+
1067+
# NOTE: This behavior differs from Numpy because it
1068+
# may be iterating in F order, whereas numpy iterates in
1069+
# C order.
10671070
cdef uintptr_t sentinel = np.iinfo(np.uintp).max
10681071
if return_index:
10691072
index = np.full(

0 commit comments

Comments
 (0)