Is there any reimplementation of Matlab eigs(A, B, k, sigma) in C/Cpp?

  c++, eigen, eigenvalue, matlab, sparse-matrix

I need to compute the generalized eigenvalue and eigenvector of two large sparse matrices A and B in C++, and it seems hard to find any pratical solution. doesn’t support two matrices. I tried, but this code gives some wrong results. Is there anybody who knows any better way to solve this? By the way, it’s would be better if the code is compatible with Eigen.

Source: Windows Questions C++