Heap

org.appliedtopology.tda4j.ParallelPackedCohomology.Heap
open class Heap(wide: Boolean, bits: Int)

A working column: a binary min-heap of (key, coefficient), equal keys combined when they reach the top. With two-word keys (wide) each entry also holds its block, and entries are ordered by block, then key.

Attributes

Source
ParallelPackedCohomology.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def clear(): Unit

Attributes

Source
ParallelPackedCohomology.scala
def drain(p: Int): (Array[Long], Array[Int], Array[Int])

Every entry, combined and ascending, as keys, coefficients and (two-word keys only, else null) blocks; empties the heap.

Every entry, combined and ascending, as keys, coefficients and (two-word keys only, else null) blocks; empties the heap.

Attributes

Source
ParallelPackedCohomology.scala
def pivot(p: Int): Long

The smallest key with a non-zero combined coefficient, left alone on top; -1 if the column is zero.

The smallest key with a non-zero combined coefficient, left alone on top; -1 if the column is zero.

Attributes

Source
ParallelPackedCohomology.scala
def push(k: Long, b: Int, c: Int): Unit

Adds c times the key k, whose block is b (read only for two-word keys).

Adds c times the key k, whose block is b (read only for two-word keys).

Attributes

Source
ParallelPackedCohomology.scala
def topBlock: Int

The top key's block.

The top key's block.

Attributes

Source
ParallelPackedCohomology.scala
def topCoefficient: Int

Attributes

Source
ParallelPackedCohomology.scala

Concrete fields

var size: Int

Attributes

Source
ParallelPackedCohomology.scala