在C矢量阵最好的lib ++ [英] best lib for vector array in c++

查看:107
本文介绍了在C矢量阵最好的lib ++的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须做的1,2,3 ... 9维矢量阵列的计算,而这些向量的数目显著变化(例如从100到高达几百万)。当然,如果数据容器可以很容易地分解,使并行算法将是巨大的。

I have to do calculation on array of 1,2,3...9 dimensional vectors, and the number of those vectors varies significantly (say from 100 to up to couple of millions). Of course, it would be great if the data container can be easily decomposed to enable parallel algorithms.

我碰到热捧来到++(几乎不可能编译对我来说),但是否有操纵的矢量数据阵列的任何其他快速库?是的boost ::融合值得一看?此外,VTK的vtkDoubleArray似乎不错,但VTK是LIB仅用于可视化。我必须承认,有元组数组是一个诱人的想法,但我没有看到有关的boost ::融合和/或任何vtkDoubleArray基准。正如他们不是专为记速度。有什么想法?

I came across blitz++(almost impossible to compile for me), but are there any other fast libs that manipulate array of vector data? Is boost::fusion worth a look? Furthermore, vtk's vtkDoubleArray seems nice, but vtk is lib used only for visualization. I must admit that having array of tuples is a tempting idea, but I didn't see any benchmarks regarding boost::fusion and/or vtkDoubleArray. Just as they are not built for speed in mind. Any thoughts?

最好的问候,

mightydodol

mightydodol

推荐答案

,支持在某些码编译器载体的自动向量化(GCC 4,VC ++ 2008)。

Eigen, supports auto-vectorisation of vector on certains compilers (GCC 4, VC++ 2008).

这篇关于在C矢量阵最好的lib ++的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆