The Residue Determinant