GridRanks

org.appliedtopology.tda4j.GridRanks
See theGridRanks companion class
object GridRanks

Attributes

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

Members list

Value members

Concrete methods

def apply(shape: IndexedSeq[Int], pixels: Array[Double]): GridRanks

Attributes

Source
GridRanks.scala
def checkedProduct(dims: Array[Int], what: String): Int

The product of dims, refused past Int.MaxValue with a message naming what.

The product of dims, refused past Int.MaxValue with a message naming what.

Attributes

Source
GridRanks.scala
def coordinates(shape: Array[Int], p: Int): Array[Int]

The lattice coordinates of pixel p (row-major, last axis fastest).

The lattice coordinates of pixel p (row-major, last axis fastest).

Attributes

Source
GridRanks.scala
def encodingWeights(shape: Array[Int]): Array[Long]

Weights turning a cube's doubled-coordinate encoding (coordinate i in 0 .. 2 shape(i)) into a Long ordered like the encoding itself, lexicographically: the cube's index in the doubled grid.

Weights turning a cube's doubled-coordinate encoding (coordinate i in 0 .. 2 shape(i)) into a Long ordered like the encoding itself, lexicographically: the cube's index in the doubled grid.

Attributes

Source
GridRanks.scala
def strides(dims: Array[Int]): Array[Int]

Row-major strides of dims.

Row-major strides of dims.

Attributes

Source
GridRanks.scala