invoke

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

Factory function to create an ArrayMatrix.

Parameters

width

The width of the matrix.

height

The height of the matrix.

init

Function that determines the value at a particular location.