talira

C++ template library for linear algebra: matrices, vectors and solvers

open sourceMPL-2.0free

Eigen is a header-only C++ template library for linear algebra: fixed-size and dynamic dense matrices, sparse matrices, vectors, matrix decompositions, numerical solvers and geometry. It needs nothing beyond the C++ standard library (C++14), with no binary to link. Expression templates avoid temporaries, fixed-size matrices avoid heap allocation, and it vectorizes explicitly for SSE, AVX, AVX2, AVX-512, FMA, ARM NEON, PowerPC AltiVec/VSX and more. Unsupported modules add non-linear optimization, matrix functions, a polynomial solver and FFT. Its site moved from eigen.tuxfamily.org to GitLab Pages.

Ways to install

Package managers

Problems it solves

  • fast matrix and vector maths in C++
  • solve a system of linear equations in C++
  • a header-only C++ linear algebra library with no dependencies

Features

  • matrix and vector maths in C++ with fixed-size, dynamic and sparse matrices
  • matrix decompositions and linear solvers
  • header-only with no dependencies
  • SIMD vectorization for SSE, AVX, AVX-512 and NEON

Alternatives

The same job

These do what Eigen does.

  1. OpenGL Mathematics (GLM) Header-only C++ mathematics library for graphics, modelled on GLSL

Compare Eigen with the top 3