Function that sets the size of a matrix.
- Parameters:
-
new_rows | : Number of rows in the matrix |
new_cols | : Numnber of columns in the matrix |
Functions is used to set dimensions of a previously defined matrix. Example, M.set_dimensions(10,10) makes M a 10x10 matrix.