Generalized eigenproblem without fermion doubling for Dirac fermions on a lattice