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 MutableBooleanMatrix initialized with the default value of the Boolean type (0
)
Parameters
Width of the matrix
Height of the matrix
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 a MutableBooleanMatrix initialized with the default value of the Boolean type (0
)
Parameters
Width of the matrix
Height of the matrix
The initial value of the elements of the matrix
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