1 | initial version |
To complement previous answers in a "don't reinvent the wheel" way, let me point to the following two methods:
matrix_from_rows_and_columns
if you want to extract submatrices, see this documentation pageminors
if you are only interesed in the determinants (you will have to iterate over all sizes), see this documentation page