Mutable Boolean Matrix
Interface representing a mutable matrix containing specialised for boolean values.
Inheritors
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 implementation will just check that the coordinates are in range. There should be no reason to no use this default implementation.
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.