invoke

inline operator fun invoke(maxWidth: Int, maxHeight: Int, noinline validator: (Int, Int) -> Boolean, init: (Int, Int) -> Boolean): ArrayMutableSparseBooleanMatrix

Create a new instance with given maxWidth, maxHeight, validator and initialized according to init.

Parameters

validator

This function determines whether a particular cell is part of the matrix. Note that the implementation expect this function to return the same result for all invocations.