4 ms·
Eigen is a great library. A similar one to consider that can at times be slightly easier to use coming from a python background is armadillo: http://arma.sourc
by conformist 5y ago
Eigen is a great library.
A similar one to consider that can at times be slightly easier to use coming from a python background is armadillo:
http://arma.sourceforge.net/ http://arma.sourceforge.net/
- yarky 5y agoI really like armadillo's syntax, it feels like your doing R/Matlab.
- structural 5y agoThat's not a positive for everyone, Matlab's API choices are a bit polarizing/confusing for people who don't use it.
- bayindirh 5y agoI’m using Eigen extensively in a project of mine. It’s extremely fast, versatile, easy to use and reliable. I’m a fan, one might say.
- jabl 5y agoSlightly tooting my own horn here; In case anyone is interested in a (trivial) comparison between them I have a tiny example project implemented both with Eigen and Arma (And Fortran and Python/numpy and Julia, FWIW): https://gitlab.com/jabl/tb https://gitlab.com/jabl/tb
- hcrisp 5y agoI wonder how Eigen compares to xtensor, which was inspired by Numpy and has support for views, slicing, and broadcasting? https://github.com/xtensor-stack/xtensor https://github.com/xtensor-stack/xtensor
- structural 5y agoEigen is similar to xtensor, but with 1) Eigen being significantly more mature, and used in production in simulation/research environments and 2) Eigen having not just basic operations on arrays, but also a full suite of linear algebra operations comparable to a full BLAS library, including a full test suite. xtensor wins on having better integration with Python and other languages out of the box. There's also some performance limitations due to being inspired by numpy, particularly with respect to memory management.
- patrick451 5y agoIt's not quite out of the box, but pybind11 has really nice support for eigen matrices and vectors and automatically converts them to/from numpy arrays.