Add check for self determinant calculation

If the matrix can calculate its own determinant, let it.