In mathematics, the kth compound matrix Ck(A) of an m × n matrix A is the ( ( m k ) − 1 ) × ( ( n k ) − 1 ) {\displaystyle \left({\binom {m}{k}}-1\right)\times \left({\binom {n}{k}}-1\right)} matrix formed from the determinants of all k × k submatrices of A arranged with the submatrix index sets in lexicographic order.
To efficiently calculate compound matrices see: "Compound matrices: properties, numerical issues and analytical computations" - Christos Kravvaritis · Marilena Mitrouli - DOI 10.1007/s11075-008-9222-7