invoke
Create a new matrix that is a copy of the original
Parameters
The source for the matrix data
Create a new SparseMatrix with the given size and intialization function. The initialization function
Parameters
The width of the matrix
The height of the matrix
An initialization function that sets the values for the matrix.
Create a SparseIntMatrix initialized with the given value
Parameters
Width of the matrix
Height of the matrix
The function initializing the matrix
Create a new SparseMatrix with the given size and intialization function. It also requires a validate function
Return
The resulting matrix.
Parameters
The width of the matrix
The height of the matrix
A value for the non-sparse elements of the matrix
A function that is used to determine whether a particular coordinate is contained in the matrix.
Create a SparseIntMatrix initialized with the given value
Parameters
Width of the matrix
Height of the matrix
The value of all cells
The function that determines whether a given cell is valid.
Create a new SparseMatrix with the given size and intialization function. It also requires a validate function
Return
The resulting matrix.
Parameters
The width of the matrix
The height of the matrix
A function that is used to determine whether a particular coordinate is contained in the matrix.
An initialization function that sets the values for the matrix.
Create a SparseIntMatrix initialized with the given value
Parameters
Width of the matrix
Height of the matrix
The function initializing the matrix
The function that determines whether a given cell is valid.