ArrayMutableMatrix

constructor(width: Int, height: Int, initValue: T)

Create a matrix that is initialized with a single value.

Parameters

width

The width of the matrix

height

The (initial) height of the matrix

initValue

The initial value for each cell


constructor(original: Matrix<T>)

Create a matrix by copying the original matrix. Note that this doesn't do a deep copy (copy the value objects).

Parameters

original

The matrix to copy from.