C++ Math

Open-source C++ projects categorized as Math

Top 23 C++ Math Projects

  • glm

    OpenGL Mathematics (GLM)

    Latest mention: Nyx: 3rd party libraries | dev.to | 2021-01-13

    glm [link]

  • quantlib

    The QuantLib C++ library

  • cgal

    The public CGAL repository, see the README below

  • ceres-solver

    A large scale non-linear optimization library

  • Vc

    SIMD Vector Classes for C++

  • primesieve

    🚀 Fast prime number generator

    Latest mention: I understand why the borrow checker won't allow this. But what's my Rust-idiomatic alternative? | reddit.com/r/rust | 2021-01-05

    There are approximately 193 million primes under 232 which is the square root of 264, you quickly generate a list of all primes using https://github.com/kimwalisch/primesieve - and then do trial division in paralelle on your input set using rayon.

  • klein

    P(R*_{3, 0, 1}) specialized SIMD Geometric Algebra Library

  • exprtk

    C++ Mathematical Expression Parsing And Evaluation Library

  • muparser

    official repository of the muparser fast math parser library

  • safe_numerics

    Replacements to standard numeric types which throw exceptions on errors

  • wykobi

    Wykobi C++ Computational Geometry Library

  • multiprecision


  • maths

    Linear algebra library with vector swizzling, intersection tests and useful functions for games and graphics dev.

    Latest mention: maths - templated c++ linear algebra library with vector swizzling, intersection tests and useful functions for games and graphics dev... includes live webgl/wasm demo. | reddit.com/r/cpp | 2021-01-12

    that's exactly what the OP's library does link

  • hblas

    haskell bindings for blas and lapack

  • metamath

    Meta mathematics. Symbolic functions and derivatives.

  • haskell-eigen

    Haskel binding for Eigen library. Eigen is a C++ template library for linear algebra: matrices, vectors, numerical solvers, and related algorithms.

  • gmtl

    Generic Math Template Library (forked from http://ggt.sourceforge.net/)

  • xerus

    A general purpose library for numerical calculations with higher order tensors, Tensor-Train Decompositions / Matrix Product States and other Tensor Networks

  • MissionImpossible

    A concise C++17 implementation of automatic differentiation (operator overloading)

  • jalla

    Just another library for linear algebra (Haskell)

  • casadi-bindings

    haskell bindings to the CasADi algorithmic differentiation and optimal control library

  • clipper

    Haskell bindings for clipper

  • matrix-sized

    Generic matrix with statically known size and bindings to C++ linear algebra libraries (Eigen, Spectra).

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).


What are some of the best open-source Math projects in C++? This list will help you:

Project Stars
1 glm 4,751
2 quantlib 2,377
3 cgal 2,295
4 ceres-solver 1,796
5 Vc 952
6 primesieve 625
7 klein 454
8 exprtk 296
9 muparser 206
10 safe_numerics 167
11 wykobi 115
12 multiprecision 80
13 maths 68
14 hblas 50
15 metamath 29
16 haskell-eigen 22
17 gmtl 18
18 xerus 17
19 MissionImpossible 12
20 jalla 5
21 casadi-bindings 4
22 clipper 2
23 matrix-sized 0