• matrix_from_rows_and_columns if you want to extract submatrices, see this documentation page
• minors if you are only interesed in the determinants (you will have to iterate over all sizes), see this documentation page