CubeBoxes

org.appliedtopology.tda4j.CubeBoxes
open class CubeBoxes(shape: Array[Int])

Cubes of one grid built cheaply: a Vector[Int] holds its coordinates boxed, so every coordinate's box is made once per grid (doubled coordinates run up to 2 shape(i)), and the vector is made directly at its size. The result is an ordinary Vector[Int], equal to and hashing like Vector.tabulate's; a cube costs a vector and an array.

Attributes

Experimental
true
Source
FastCubicalHomology.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

inline def cube(inline coordinate: Int => Int): Cube

The cube with doubled coordinates coordinate(0 until d).

The cube with doubled coordinates coordinate(0 until d).

Attributes

Source
FastCubicalHomology.scala