Eigen庫爲了使用指令集(如SSE等)加速方案,一般採用字節對齊的方案。若是使用C++的標準庫,如Vector,Map等,須要使用以下方案
std::map<int, Eigen::Vector4f>
std::map<int, Eigen::Vector4f, std::less<int>,
ref: https://eigen.tuxfamily.org/dox/group__TopicStlContainers.html
GFlags 是一個很是好用的調節和輸入參數的三方庫。好用,方便,易於入門。