ProductComplex

org.appliedtopology.tda4j.ProductComplex

The product of two filtered complexes as a stream: a cell σ × τ for every pair of a cell of each, entering at the larger of the two values (Combine.Max, the default: the sublevel set at t is the product of the two sublevel sets) or at their sum (Combine.Sum: the tensor product of the two filtered chain complexes).

val circle = VietorisRips(points, maxDimension = 2)
val interval = VietorisRips(otherPoints, maxDimension = 2)
Persistence(ProductComplex(circle, interval))        // the homology of the product, by any engine
Barcode.kunneth(bars1, bars2)                         // the same bars from the bars of the factors

Both streams are held in memory, and the product has a cell for every pair, so this is for factors of a few hundred cells each. A factor cut off at a homological degree k (homologyDegreeLimit) makes the product accurate to the smaller of the two degrees. The bars carry chains of ProductCells, (left, right) being the cells of the factors.

Attributes

Experimental
true
Source
ProductComplex.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

enum Combine

How the filtration values of the two factors combine in the product: Max for the larger one (the Künneth theorem is H_n(X × Y) = ⊕ H_p(X) ⊗ H_q(Y), Barcode.tensor of the barcodes), Sum for their sum (the tensor product of filtered chain complexes: Barcode.convolve of the barcodes, plus the Barcode.tor terms).

How the filtration values of the two factors combine in the product: Max for the larger one (the Künneth theorem is H_n(X × Y) = ⊕ H_p(X) ⊗ H_q(Y), Barcode.tensor of the barcodes), Sum for their sum (the tensor product of filtered chain complexes: Barcode.convolve of the barcodes, plus the Barcode.tor terms).

Attributes

Source
ProductComplex.scala
Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Value members

Concrete methods

def apply[A, B](left: StratifiedCellStream[A, Double], right: StratifiedCellStream[B, Double], combine: Combine = ...)(using leftCells: OrderedCell { type Self = A; }, rightCells: OrderedCell { type Self = B; }): StratifiedCellStream[ProductCell[A, B], Double]

The product of left and right, in the filtration order of the combined values.

The product of left and right, in the filtration order of the combined values.

Attributes

Source
ProductComplex.scala