invoke
Create a new matrix that is a copy of the original. The copy is a shallow copy.
Parameters
the matrix to copy (dimensions and content).
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.
Parameters
The width of the matrix to create
The height of the matrix to create
The initial value of each cell (this is also the actual value for read-only matrices)
Create an IntMatrix initialized with the given value
Parameters
Width of the matrix
Height of the matrix
The value of all cells
Create a new matrix with the given dimensions and initialised using the init function.
Parameters
The width of the matrix to create
The height of the matrix to create
The function that determines the initial value for each function
Create an IntMatrix initialized according to the init function.
Parameters
Width of the matrix
Height of the matrix
Function used to initialise each cell.