Converts a set or algebraic structure to a matrix.
The set or structure
The number of rows of the matrix
Optional
The number of columns of the matrix (optional, defaults to the number of rows to make a square matrix)
Converts a set or algebraic structure to a matrix.