invoke

inline operator fun <T> invoke(width: Int, height: Int, init: (Int, Int) -> T): ArrayMutableMatrix<T>

Create and initialize a matrix.

Parameters

width

The width of the matrix to create.

height

The height of the matrix to create.

init

Initializer that determines the initial value for the given coordinate.