A C ++库阵列,矩阵,向量,和经典线性代数运算
你使用哪种库N维数组?
Which library do you use for N-dimensional arrays?
我用闪电战++在工作中,我真的不喜欢它的某些方面。
它的某些方面甚至是危险的。需要调整前
使用operator =。 A(范围::全部(),范围::全部())抛出一个(0,0)
矩阵等和线性代数操作是要
通过CLAPACK完成。
I use blitz++ at work and I really dislike some aspect of it. Some aspect of it are even dangerous. The need for resizing before using operator=. A(Range::all(), Range::all()) throws for an (0,0) matrix, etc. and the linear algebra operations are to be done via clapack.
我曾经和喜爱征。我AP preciate其全头的实施,
C ++的语法糖,和所有的线性代数运算的presence
我需要(矩阵乘法,系统分辨率,乔莱斯基...)
I used and loved eigen. I appreciate its "all-in-header" implementations, the C++ syntactic sugar, and the presence of all the linear algebra operations I need (matrix multiplication, system resolution, cholesky...)
您使用的是什么了?
的的boost ::数组也的的boost :: MultiArray的。还有一个pretty良好的线性代数包升压叫的的uBLAS
boost::array and also boost::MultiArray. There's also a pretty good linear algebra package in boost called uBLAS