C++ math libraries
Linear algebra, numerics and geometry libraries for C++, ranked by GitHub stars
Actualizado · GitHub stars (stars)
Por qué estos 20
Ranked by GitHub stars: how many developers bookmarked the project. Stars measure attention, not quality, so each row also shows forks, licence and the last push. Tools without a public repository have no star count and can't be ranked here.
-
1
Dlib
zap: - A modern C++11 machine learning, computer vision, numerical optimization, and deep learning toolkit. [Boost] website
14,479 stars 3,438 forkslast push 2026-11-17C++BSL-1.0
También en: #2 C++ frameworks#2 C++ image processing libraries#6 C++ machine learning libraries#4 general machine learning packages
-
2
QuantLib
A free/open-source library for quantitative finance. [Modified BSD] website
7,789 stars 2,393 forkslast push 2026-11-20C++NOASSERTION
-
3
CGAL
Collection of efficient and reliable geometric algorithms. [LGPL&GPL] website
6,134 stars 1,628 forkslast push 2026-11-20C++NOASSERTION
-
4
NumCpp
A templatized header only C++ implementation of the Python Numpy library. [MIT]
3,972 stars 576 forkslast push 2026-11-20C++MIT
-
5
xtensor
A C++14 library for numerical analysis with multi-dimensional array expressions, inspired by NumPy syntax. [BSD 3-clause] website
3,772 stars 449 forkslast push 2026-11-11C++BSD-3-Clause
-
6
geogram
A programming library of geometric algorithms. [BSD-3-Clause]
2,580 stars 217 forkslast push 2026-11-21C++NOASSERTION
-
7
autodiff
A modern, fast and expressive C++ library for automatic differentiation. [MIT] website
1,967 stars 199 forkslast push 2025-01-27C++MIT
-
8
TinyExpr
A C library for parsing and evaluating math expressions from strings. [zlib]
1,940 stars 316 forkslast push 2026-10-27CZlib
-
9
NumKong
SIMD-accelerated distances, dot products, matrix ops, geospatial & geometric kernels for 16 numeric types. [Apache2] (previously named SimSIMD)
1,911 stars 143 forkslast push 2026-11-20CApache-2.0
-
10
DirectXMath
An all inline SIMD C++ linear algebra library for use in games and graphics apps.
1,821 stars 267 forkslast push 2026-11-17C++MIT
-
11
-
12
MatX
A GPU-accelerated C++17 numerical computing library with a MATLAB/Python-like syntax. [BSD 3-clause]
1,454 stars 132 forkslast push 2026-11-20C++BSD-3-Clause
-
13
SymEngine
Fast symbolic manipulation library, a rewriting of SymPy's core in C++. [MIT]
1,429 stars 315 forkslast push 2026-11-13C++NOASSERTION
-
14
libdivide
Optimized integer division for C/C++ using libdivide. [zlib] website
1,374 stars 105 forkslast push 2026-10-04C++NOASSERTION
-
15
linmath.h
A lean linear math library, aimed at graphics programming. [WTFPL]
1,069 stars 141 forkslast push 2023-05-31CWTFPL
-
16
linalg.h
Single header, public domain, short vector math library for C++. [Unlicense]
974 stars 74 forkslast push 2023-07-02C++Unlicense
-
17
libfixmath
Cross Platform Fixed Point Maths Library. [MIT]
888 stars 196 forkslast push 2026-11-19CNOASSERTION
-
18
Spectra
A C++ library for large scale eigenvalue problems, built on top of Eigen. [MPL2] website
872 stars 142 forkslast push 2026-07-04C++MPL-2.0
-
19
Fastor
A lightweight high performance tensor algebra framework for modern C++. [MIT]
846 stars 83 forkslast push 2025-07-08C++MIT
-
20
LibTomMath
A free open source portable number theoretic multiple-precision integer library written entirely in C. [PublicDomain & WTFPL] website
817 stars 226 forkslast push 2026-04-20CNOASSERTION
Referencias
- fffaraz/awesome-cpp: Math, GitHub community list (list text MIT; star counts from the GitHub API). Checked 2026-11-21 08:24 UTC.
- fffaraz/awesome-cpp (Math), GitHub community list, 45 tools with a public repository.