Package-level declarations

A package that contains specialized classes for Boolean types. It works analogous to the main matrix package (but specialized for boolean values).

Types

Link copied to clipboard
class ArrayMutableBooleanMatrix : ArrayMutableBooleanMatrixBase, MutableBooleanMatrix

An implementation of a mutable matrix backed by a BooleanArray. This matrix optimizes storing Boolean values.

Link copied to clipboard
class ArrayMutableSparseBooleanMatrix : ArrayMutableBooleanMatrixBase

A mutable sparse boolean matrix implementation backed by an array.

Link copied to clipboard

Interface representing a matrix that stores Boolean values natively.

Link copied to clipboard

Implementation of MutableSparseBooleanMatrix where the same matrix is used to store the sparseness as the actual value.

Link copied to clipboard

Interface representing a mutable matrix containing specialised for boolean values.

Link copied to clipboard

A mutable sparse matrix for Booleans. This interface supports mutating the values.

Link copied to clipboard

BooleanMatrix that contains a single value for all nonsparse coordinates.

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

SparseBooleanMatrix that contains a single value for all nonsparse coordinates.

Link copied to clipboard

A sparse matrix for storing booleans. It works just like SparseMatrix but optimizes boolean storage. This particular interface only provides read access. The matrix needs to be initialized appropriately or used on a class that is actually mutable.

Functions

Link copied to clipboard
inline fun MutableSparseBooleanMatrix.fill(setter: (Int, Int) -> Boolean)

Helper function to set values into a MutableSparseBooleanMatrix.

Link copied to clipboard
inline fun <T> Matrix<T>.mapBoolean(transform: (T) -> Boolean): BooleanMatrix

A map implementation that creates a boolean matrix based upon the receiver and the transformation function.

inline fun <T> SparseMatrix<T>.mapBoolean(transform: (T) -> Boolean): SparseBooleanMatrix

A map implementation that creates a boolean sparse matrix based upon the receiver and the transformation function.