fixed compile error when eigen3 not installed
Merge pull request #2008 from sunil1337/compile_error

fixed compile error when eigen3 not installed