Map and normalize a compressed row.
Equations
Instances For
@[inline]
Use counting only when its vertex scan is bounded by eight times the row length. Sparse rows keep the existing merge sort.
Equations
- Hex.SparseGraph.Builder.mapRowFast xs f = if n ≤ 8 * xs.size then Hex.SparseGraph.Builder.countRow xs f else Hex.SparseGraph.Builder.normalize (List.map f xs.toList)