Package-level declarations

A package with additional functionality including a Coordinate class for matrix coordinates. In adition there are specialized matrix types for single values or function based values.

Types

Link copied to clipboard
value class Coordinate(packed: Int)

In many cases it is easier to work with a single coordinate rather than with a pair of coordinates. The coordinate class allows this.

Link copied to clipboard
class FunMatrix<T>(val width: Int, val height: Int, val valueFun: (Int, Int) -> T) : AbstractMatrix<T>

Matrix where values are determined by a function, not storage.

Link copied to clipboard

SparseMatrix where values are determined by a function, not storage.

Link copied to clipboard
open class SingleValueMatrix<T>(val width: Int, val height: Int, value: T) : AbstractMatrix<T>

Matrix that contains a single value for all coordinates.

Link copied to clipboard
open class SingleValueSparseMatrix<T>(val maxWidth: Int, val maxHeight: Int, value: T, val validator: (Int, Int) -> Boolean) : AbstractSparseMatrix<T>

Matrix that contains a single value for all nonsparse coordinates.