Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

A C++ library for Arrays, Matrix, Vector, and classical linear algebra operations [closed]

Tags:

c++

arrays

Which library do you use for N-dimensional arrays?

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.

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...)

What are you using?

like image 737
fulmicoton Avatar asked Feb 04 '23 08:02

fulmicoton


1 Answers

boost::array and also boost::MultiArray. There's also a pretty good linear algebra package in boost called uBLAS

like image 91
Andreas Brinck Avatar answered Feb 06 '23 15:02

Andreas Brinck