invoke
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.
Factory function to create an ArrayMatrix.
The width of the matrix.
The height of the matrix.
Function that determines the value at a particular location.