Eigen對齊(加速)方案

Eigen庫爲了使用指令集(如SSE等)加速方案,一般採用字節對齊的方案。若是使用C++的標準庫,如Vector,Map等,須要使用以下方案
std::map<int, Eigen::Vector4f>

you need to usehtml

std::map<int, Eigen::Vector4f, std::less<int>,
 
ref: https://eigen.tuxfamily.org/dox/group__TopicStlContainers.html
 
GFlags 是一個很是好用的調節和輸入參數的三方庫。好用,方便,易於入門。
相關文章
相關標籤/搜索