PCA implementation in c++ with Eigen and clx