typecasting Eigen::VectorXd to std::vector

vector<int> vec(mat.data(), mat.data() + mat.rows() * mat.cols());

Leave a Comment