fix eigen bugs #2827
Merge pull request #2833 from YaqiWang/eigen_bug_2827

Fix eigen bugs to pass parallel and debug testing #2827
Merge commit '3a724cac8c889fac13d098fa7265987fe1ca2af1'