WideSimplexIndexing

org.appliedtopology.tda4j.WideSimplexIndexing
See theWideSimplexIndexing companion object
open class WideSimplexIndexing(val vertexCount: Int)

The combinatorial number system of SimplexIndexing with indices of up to 126 bits, for vertex counts and dimensions whose indices do not fit in a Long (SimplexIndexing.fitsLong). An index is two words, both non-negative: low holds its lowest 63 bits and high the bits above, so index order is the order of (high, low). The cursors find the same cofacets and facets as SimplexIndexing's, in the same order.

Attributes

Companion
object
Experimental
true
Source
WideSimplexIndexing.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Type members

Classlikes

class CofacetCursor(startHigh: Long, startLow: Long, vertices: Array[Int], allCofacets: Boolean)

SimplexIndexing.CofacetCursor with two-word indices: read vertex (the added vertex), high and low (the cofacet's index), then advance().

SimplexIndexing.CofacetCursor with two-word indices: read vertex (the added vertex), high and low (the cofacet's index), then advance().

Attributes

Source
WideSimplexIndexing.scala
Supertypes
class Object
trait Matchable
class Any
class FacetCursor(startHigh: Long, startLow: Long, vertices: Array[Int])

SimplexIndexing.FacetCursor with two-word indices: vertex is the vertex removed to reach the facet at (high, low); the indices increase.

SimplexIndexing.FacetCursor with two-word indices: vertex is the vertex removed to reach the facet at (high, low); the indices increase.

Attributes

Source
WideSimplexIndexing.scala
Supertypes
class Object
trait Matchable
class Any
class SparseCofacetCursor(startHigh: Long, startLow: Long, vertices: Array[Int], allCofacets: Boolean, lists: NeighbourLists)

SimplexIndexing.SparseCofacetCursor with two-word indices: the cofacets whose added vertex is a neighbour of every vertex of the simplex, from the neighbour lists.

SimplexIndexing.SparseCofacetCursor with two-word indices: the cofacets whose added vertex is a neighbour of every vertex of the simplex, from the neighbour lists.

Attributes

Source
WideSimplexIndexing.scala
Supertypes
class Object
trait Matchable
class Any

Value members

Concrete methods

def chooseHigh(n: Int, k: Int): Long

The high word of C(n, k), 0 when k < 0 or n < k.

The high word of C(n, k), 0 when k < 0 or n < k.

Attributes

Source
WideSimplexIndexing.scala
def chooseLow(n: Int, k: Int): Long

The low word of C(n, k), 0 when k < 0 or n < k.

The low word of C(n, k), 0 when k < 0 or n < k.

Attributes

Source
WideSimplexIndexing.scala
def cofacetCursor(high: Long, low: Long, size: Int, allCofacets: Boolean = ...): CofacetCursor

Attributes

Source
WideSimplexIndexing.scala
def cofacetCursor(high: Long, low: Long, vertices: Array[Int], allCofacets: Boolean): CofacetCursor

cofacetCursor for a caller that has decoded the simplex already: vertices are the simplex at (high, low), ascending (the cursor reads, never changes, the array).

cofacetCursor for a caller that has decoded the simplex already: vertices are the simplex at (high, low), ascending (the cursor reads, never changes, the array).

Attributes

Source
WideSimplexIndexing.scala
def decodeToArray(high: Long, low: Long, size: Int): Array[Int]

The vertices, ascending, of the simplex with size vertices at index (high, low).

The vertices, ascending, of the simplex with size vertices at index (high, low).

Attributes

Source
WideSimplexIndexing.scala
def facetCursor(high: Long, low: Long, size: Int): FacetCursor

Attributes

Source
WideSimplexIndexing.scala
def facetCursor(high: Long, low: Long, vertices: Array[Int]): FacetCursor

facetCursor for a caller that has decoded the simplex already: vertices are the simplex at (high, low), ascending (the cursor reads, never changes, the array).

facetCursor for a caller that has decoded the simplex already: vertices are the simplex at (high, low), ascending (the cursor reads, never changes, the array).

Attributes

Source
WideSimplexIndexing.scala
def index(vertices: Array[Int]): (Long, Long)

The index of a simplex from its vertices in ascending order, as (high, low).

The index of a simplex from its vertices in ascending order, as (high, low).

Attributes

Source
WideSimplexIndexing.scala
def sparseCofacetCursor(high: Long, low: Long, vertices: Array[Int], allCofacets: Boolean, lists: NeighbourLists): SparseCofacetCursor

Attributes

Source
WideSimplexIndexing.scala

Concrete fields

val vertexCount: Int

Attributes

Source
WideSimplexIndexing.scala