I am interested in finding the eigenvalues/eigenfunctions of problems such as
$$ \partial_{xx} u = \lambda \partial_{yy} u, $$
which can be solved as the generalised eigenvalue problem
$$ \mathbf{A} \vec{u} = \lambda \mathbf{B} \vec{u}, $$
using the finite difference method. My question is about how to incorporate Neumann conditions into the $\mathbf{A}$ and $\mathbf{B}$ matrices. Examples I have found involved changing the right hand side of the equation in equations such as $ \mathbf{A} \vec{u} = \vec{b} $, i.e. not eigenvalue problems, but this is not possible in this case. I am not necessarily specifically interested in solving the PDE above, I am just looking for a general method.