invoke
Factory function that creates and initializes a (readonly) ArraySparseMatrix. maxWidth and maxHeight are used for the underlying array dimensions. The validator will be called exactly once for each coordinate. If it returns true
the init function is called to determine the initial value.
Parameters
The maximum width allowed in the matrix
The maximum height allowed in the matrix
Function that determines whether a particular location is valid or not.
Function that determines the initial value for a location.
Factory function that creates and initializes a (readonly) ArraySparseMatrix. maxWidth and maxHeight are used for the underlying array dimensions. This variant uses a sealed return type to determine whether a value is sparse or not.
Parameters
The maximum width allowed in the matrix
The maximum height allowed in the matrix
Function that determines the initial value for a location.