Features¶
Beyond the basic min-cost assignment, fastlap ships a set of features aimed squarely at real production workloads — tracking pipelines, scheduling systems, and large batch jobs.
-
Reject assignments that exceed (or fall below) a threshold cost — the gating step every multi-object tracker needs.
-
Solve hundreds of independent matrices in parallel across all CPU cores via Rayon.
-
Multiply each cost entry by a per-element weight before solving, while total cost is still reported unweighted.
-
Solve and return the row/column dual potentials
(u, v)— feasible, tight on the matching, withsum(u) + sum(v)equal to the optimum. -
Rank the top-K alternative assignments in increasing cost order — for multi-hypothesis tracking.
-
Minimise the maximum edge cost in the assignment, not the sum — the bottleneck assignment problem.
-
Feed a
scipy.sparse.csr_matrixstraight into LAPMOD or LAPJVsp without ever densifying it. -
Drop-in replacements for
scipy.optimize.linear_sum_assignmentandlap.lapjv/lapx.lapjv— plus lapx-stylelapjvxandassignment_pairshelpers. -
Terminal heatmaps, an algorithm head-to-head, a bipartite-graph render, and a matplotlib overlay — runnable examples under
examples/.