Companion
Functions
Link copied to clipboard
Create a new matrix that is a copy of the original. The copy is a shallow copy.
Create a new matrix with the given dimensions and initial value. Note that this function is provided for concistency on Matrix, but SingleValueMatrix is recommended for the usecase.
Create an BooleanMatrix initialized with the given value
open inline operator override fun <T : Boolean> invoke(width: Int, height: Int, init: (Int, Int) -> T): Matrix<T>
Create a new matrix with the given dimensions and initialised using the init function.
Create an BooleanMatrix initialized according to the init function.