The cofactor matrix (denoted by cof) is the matrix created from the determinants of the matrices not part of a given element's row and column. For example,
Notice that the elements of the matrix follow a "checkerboard" pattern of positives and negatives.
A related type of matrix is an adjoint or adjugate matrix, which is the transpose of the cofactor matrix. Adjoints are very useful in computing inverses of matrices.