File: _hierarchical_fast.pxd

package info (click to toggle)
scikit-learn 1.7.2%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 25,752 kB
  • sloc: python: 219,120; cpp: 5,790; ansic: 846; makefile: 191; javascript: 110
file content (9 lines) | stat: -rw-r--r-- 245 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
from ..utils._typedefs cimport intp_t

cdef class UnionFind:
    cdef intp_t next_label
    cdef intp_t[:] parent
    cdef intp_t[:] size

    cdef void union(self, intp_t m, intp_t n) noexcept
    cdef intp_t fast_find(self, intp_t n) noexcept