Array Mutable Boolean Matrix
An implementation of a mutable matrix backed by a BooleanArray. This matrix optimizes storing Boolean values.
Types
Properties
Functions
Get all elements in the matrix as sequence.
Determine whether the content of this matrix is the same as the other by checking equality on the cell values. Sparse matrices with different dimensions, but the same valid indices can be equal.
Creates a copy of the matrix of an appropriate type with the same content.
Helper function to set values into a MutableSparseMatrix.
Helper function to set values into a MutableSparseBooleanMatrix.
This function can be used to determine whether the given coordinates are valid. Returns true if valid. This function works on any value for the coordinates and should return false
for all values out of range (x<0 || x>=[maxWidth]
), (y<0 || y>=[maxHeight]
).
A map implementation that creates a boolean matrix based upon the receiver and the transformation function.
A map implementation that creates a boolean sparse matrix based upon the receiver and the transformation function.
Create a new IntMatrix with the dimensions of the original where the value of each cell is the result of applying the transform to the value of the cell in the original.
Create a new SparseIntMatrix with the dimensions of the original where the value of each cell is the result of applying the transform to the value of the cell in the original.