Persistent cohomology of a cubical grid by Bauer's Ripser algorithm on the grid itself: what CellularCohomologyEngine computes on a CubicalGridStream, or on its cells up to dimension topDim as a LimitedCubicalGridStream shows them -- the same bars, pairs, cocycles and cycles, term for term and in the same list order -- without a Cube, a hash of one or a Chain inside the reduction.
A cell is its index in the doubled grid (KMM encoding, see Cube). Within a dimension cells are ordered by the rank of their value (GridRanks) and then by index: the generic engine's order there, value ascending, then the encoding ascending. Boundaries and coboundaries come from index arithmetic. Clearing as in the generic engine; apparent pairs (a cell whose oldest same-value cofacet has it as its youngest same-value facet) are paired without a reduction and their columns rebuilt when another column needs them, which changes no output (useApparentPairs = false turns them off). Degree 0 is paired by union-find over the edges, the elder rule, with the indicator of the dying component as the cocycle (useUnionFind = false reduces the vertices' coboundaries instead, with the same output). Cycles come from the involution on the same pairs, specialised to packed cells as PackedRipserCohomologyEngine does it. A cell every pixel around which is masked (NaN) is not in the complex: it has rank GridRanks.masked, and is never listed nor met as a cofacet.
Attributes
- Companion
- object
- Experimental
- true
- Source
- PackedCubicalCohomology.scala
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any