| 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
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.