Chain

org.appliedtopology.tda4j.Chain
See theChain companion class
object Chain

Attributes

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

Members list

Value members

Concrete methods

def apply[CellT : Ordering, CoefficientT](cs: (CellT, CoefficientT)*): Chain[CellT, CoefficientT]

Attributes

Source
Chain.scala
def apply[CellT, CoefficientT](c: CellT)(using evidence$1: Ordering[CellT], fld: Field { type Self = CoefficientT; }): Chain[CellT, CoefficientT]

Attributes

Source
Chain.scala
def empty[CellT : Ordering, CoefficientT]: Chain[CellT, CoefficientT]

Attributes

Source
Chain.scala
def from[CellT, CoefficientT](cs: Seq[(CellT, CoefficientT)])(using ord: Ordering[CellT], evidence$1: Field { type Self = CoefficientT; }): Chain[CellT, CoefficientT]

Attributes

Source
Chain.scala
def packed[CellT, CoefficientT](keys: Array[Int], coefficients: Array[AnyRef], decoder: CellDecoder[CellT])(using ord: Ordering[CellT], fld: Field { type Self = CoefficientT; }): Chain[CellT, CoefficientT]

A PackedChain: keys decoded by decoder, distinct and ascending under Ordering[CellT], with the matching nonzero coefficients (boxed coefficient values). The caller guarantees the order; nothing checks it, and a chain out of order gives wrong leading terms (so wrong reductions), not an error.

A PackedChain: keys decoded by decoder, distinct and ascending under Ordering[CellT], with the matching nonzero coefficients (boxed coefficient values). The caller guarantees the order; nothing checks it, and a chain out of order gives wrong leading terms (so wrong reductions), not an error.

Attributes

Source
Chain.scala
final def reduceBy[CellT : Ordering, CoefficientT](z: Chain[CellT, CoefficientT], basis: Map[CellT, Chain[CellT, CoefficientT]], reductionLog: Chain[CellT, CoefficientT], fallback: CellT => Option[Chain[CellT, CoefficientT]] = ...): (Chain[CellT, CoefficientT], Chain[CellT, CoefficientT])

Attributes

Source
Chain.scala
final def reduceByUntil[CellT : Ordering, CoefficientT](z: Chain[CellT, CoefficientT], basis: Map[CellT, Chain[CellT, CoefficientT]], reductionLog: Chain[CellT, CoefficientT], stop: CellT => Boolean = ..., fallback: CellT => Option[Chain[CellT, CoefficientT]] = ...): (Chain[CellT, CoefficientT], Chain[CellT, CoefficientT])

Attributes

Source
Chain.scala

Givens

Givens

given chainIsOrderedBasis: [CellT, CoefficientT] => (Ordering[CellT], Field { type Self = CoefficientT; }) => chainIsOrderedBasis[CellT, CoefficientT]

Attributes

Source
Chain.scala
given chainShow: [CellT, CoefficientT] => (Show[CellT], Field { type Self = CoefficientT; }) => Show[Chain[CellT, CoefficientT]]

c.show for a chain whose cells have a Show: its terms, each cell once with its nonzero coefficient, in the chain's order ("1 ⊠ ∆(0,1) + -1 ⊠ ∆(1,2)"; the zero chain is "0"). Coefficients are shown by their field.

c.show for a chain whose cells have a Show: its terms, each cell once with its nonzero coefficient, in the chain's order ("1 ⊠ ∆(0,1) + -1 ⊠ ∆(1,2)"; the zero chain is "0"). Coefficients are shown by their field.

Attributes

Source
Chain.scala
given given_is_Chain_RingModule: [CellT, CoefficientT] => (Ordering[CellT], Field { type Self = CoefficientT; }) => is[Chain[CellT, CoefficientT], RingModule { type R = CoefficientT; }]

Attributes

Source
Chain.scala

Extensions

Extensions

extension [CellT, CoefficientT](z: Chain[CellT, CoefficientT])
def boundary: Seq[(CellT, CoefficientT)]

Attributes

Source
Chain.scala