Eigen对齐(加速)方案
阅读原文时间:2023年07月10日阅读:1

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

std::map

you need to use

std::map,

Eigen::aligned_allocator > >

ref: https://eigen.tuxfamily.org/dox/group__TopicStlContainers.html

GFlags 是一个非常好用的调节和输入参数的三方库。好用,方便,易于入门。

手机扫一扫

移动阅读更方便

阿里云服务器
腾讯云服务器
七牛云服务器

你可能感兴趣的文章