Creates a two-dimensional matrix where all positions are filled using the given generator.
Error if the width or the height given are zero or negative.
The number of rows of the matrix
The number of columns of the matrix
Optional
A function that given the i,j position of the element returns the element to store the matrix at that position
A T[][] where T is the type of the elements in the matrix.
T[][]
Creates a two-dimensional matrix where all positions are filled using the given generator.
Throws
Error if the width or the height given are zero or negative.