Fork me on GitHub

Eigen对齐(加速)方案

Eigen库为了使用指令集(如SSE等)加速方案,通常采用字节对齐的方案。如果使用C++的标准库,如Vector,Map等,需要使用如下方案
std::map<int, Eigen::Vector4f>

you need to use

std::map<int, Eigen::Vector4f, std::less<int>,
 
ref: https://eigen.tuxfamily.org/dox/group__TopicStlContainers.html
 
GFlags 是一个非常好用的调节和输入参数的三方库。好用,方便,易于入门。
 
posted @ 2019-05-15 16:33  小狮子  阅读(993)  评论(0编辑  收藏  举报