8 Best CPP Math Libraries 2024

share link

by Kanika Maheshwari dot icon Updated: Feb 15, 2024

technology logo
technology logo

Guide Kit Guide Kit  

Here are some famous C++ Math Libraries. Some C++ Math Libraries' use cases include Numerical Analysis, Statistical Analysis, Machine Learning, Data Visualization, Image Processing, and Scientific Computing.


Cpp math libraries are libraries of mathematical functions written in C++ designed to aid in the development of applications that require complex mathematical operations. They provide a set of tools to allow developers to quickly and easily access math functions and calculations.


Let us look at some libraries in detail.

dlib

  • Contains a wide variety of optimized algorithms and data structures.
  • Provides tools for linear algebra, machine learning, and image processing.
  • Has a number of utilities for generating random numbers.

dlibby davisking

C++ doticonstar image 11993 doticonVersion:v19.24.2doticon
License: Permissive (BSL-1.0)

A toolkit for making real world machine learning and data analysis applications in C++

Support
    Quality
      Security
        License
          Reuse

            dlibby davisking

            C++ doticon star image 11993 doticonVersion:v19.24.2doticon License: Permissive (BSL-1.0)

            A toolkit for making real world machine learning and data analysis applications in C++
            Support
              Quality
                Security
                  License
                    Reuse

                      root

                      • Provide multi-dimensional histograms and graphs.
                      • Advanced statistical analysis and data fitting.
                      • Highly modular and extensible, making it easy to add new features or extend existing ones.

                      rootby root-project

                      C++ doticonstar image 2137 doticonVersion:v6-26-10doticon
                      License: Others (Non-SPDX)

                      The official repository for ROOT: analyzing, storing and visualizing big data, scientifically

                      Support
                        Quality
                          Security
                            License
                              Reuse

                                rootby root-project

                                C++ doticon star image 2137 doticonVersion:v6-26-10doticon License: Others (Non-SPDX)

                                The official repository for ROOT: analyzing, storing and visualizing big data, scientifically
                                Support
                                  Quality
                                    Security
                                      License
                                        Reuse

                                          eigen

                                          • Optimized for speed and memory-efficiency to provide the best possible performance.
                                          • Supports both dense and sparse matrices, as well as dynamic-sized matrices.
                                          • Provides an intuitive and expressive API that makes it easy to write code with.

                                          eigenby PX4

                                          C++ doticonstar image 323 doticonVersion:Currentdoticon
                                          License: Others (Non-SPDX)

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

                                          Support
                                            Quality
                                              Security
                                                License
                                                  Reuse

                                                    eigenby PX4

                                                    C++ doticon star image 323 doticonVersion:Currentdoticon License: Others (Non-SPDX)

                                                    Eigen is a C++ template library for linear algebra: matrices, vectors, numerical solvers, and related algorithms.
                                                    Support
                                                      Quality
                                                        Security
                                                          License
                                                            Reuse

                                                              blitz

                                                              • Has an intuitive syntax that allows for easy coding and debugging.
                                                              • Provides built-in support for parallelization and distributed computing.
                                                              • Provides built-in support for parallelization and distributed computing.

                                                              blitzby blitzpp

                                                              C++ doticonstar image 359 doticonVersion:1.0.2doticon
                                                              License: Others (Non-SPDX)

                                                              Blitz++ Multi-Dimensional Array Library for C++

                                                              Support
                                                                Quality
                                                                  Security
                                                                    License
                                                                      Reuse

                                                                        blitzby blitzpp

                                                                        C++ doticon star image 359 doticonVersion:1.0.2doticon License: Others (Non-SPDX)

                                                                        Blitz++ Multi-Dimensional Array Library for C++
                                                                        Support
                                                                          Quality
                                                                            Security
                                                                              License
                                                                                Reuse

                                                                                  blaze

                                                                                  • Compatible with a wide range of compilers.
                                                                                  • Supports both dense and sparse matrices, enabling efficient calculations with large datasets.
                                                                                  • Able to perform complex calculations with a minimal amount of code.

                                                                                  blazeby unidentifieddeveloper

                                                                                  C++ doticonstar image 53 doticonVersion:Currentdoticon
                                                                                  License: Permissive (MIT)

                                                                                  A blazing fast exporter for your Elasticsearch data.

                                                                                  Support
                                                                                    Quality
                                                                                      Security
                                                                                        License
                                                                                          Reuse

                                                                                            blazeby unidentifieddeveloper

                                                                                            C++ doticon star image 53 doticonVersion:Currentdoticon License: Permissive (MIT)

                                                                                            A blazing fast exporter for your Elasticsearch data.
                                                                                            Support
                                                                                              Quality
                                                                                                Security
                                                                                                  License
                                                                                                    Reuse

                                                                                                      armadillo

                                                                                                      • Provides a wide range of operations on matrices, vectors and scalars.
                                                                                                      • Includes support for matrix decompositions, Fourier transforms, advanced linear algebra operations and random number generation.
                                                                                                      • Written in expressive modern C++ code, taking advantage of C++11 features such as template metaprogramming

                                                                                                      armadilloby lsolanka

                                                                                                      C++ doticonstar image 43 doticonVersion:Currentdoticon
                                                                                                      License: Weak Copyleft (MPL-2.0)

                                                                                                      A personal fork of the armadillo C++ linear algebra library (http://arma.sourceforge.net/)

                                                                                                      Support
                                                                                                        Quality
                                                                                                          Security
                                                                                                            License
                                                                                                              Reuse

                                                                                                                armadilloby lsolanka

                                                                                                                C++ doticon star image 43 doticonVersion:Currentdoticon License: Weak Copyleft (MPL-2.0)

                                                                                                                A personal fork of the armadillo C++ linear algebra library (http://arma.sourceforge.net/)
                                                                                                                Support
                                                                                                                  Quality
                                                                                                                    Security
                                                                                                                      License
                                                                                                                        Reuse

                                                                                                                          GiNaC

                                                                                                                          • Has a sophisticated yet easy to use interface.
                                                                                                                          • Features an extensive set of functions, such as integrals, series, and derivatives.
                                                                                                                          • Allows users to extend their applications by adding custom functions.

                                                                                                                          GiNaCby AlexeiSheplyakov

                                                                                                                          C++ doticonstar image 38 doticonVersion:Currentdoticon
                                                                                                                          License: Strong Copyleft (GPL-2.0)

                                                                                                                          Special purpose C++ library for symbolic computations

                                                                                                                          Support
                                                                                                                            Quality
                                                                                                                              Security
                                                                                                                                License
                                                                                                                                  Reuse

                                                                                                                                    GiNaCby AlexeiSheplyakov

                                                                                                                                    C++ doticon star image 38 doticonVersion:Currentdoticon License: Strong Copyleft (GPL-2.0)

                                                                                                                                    Special purpose C++ library for symbolic computations
                                                                                                                                    Support
                                                                                                                                      Quality
                                                                                                                                        Security
                                                                                                                                          License
                                                                                                                                            Reuse

                                                                                                                                              MathGL

                                                                                                                                              • Supports the OpenGL and OpenCL graphics libraries.
                                                                                                                                              • Has a built-in library of special mathematical functions, such as Bessel, Legendre and Chebyshev functions.
                                                                                                                                              • Wide range of plotting capabilities, with over 40 different types of 2D and 3D plots.

                                                                                                                                              MathGLby svn2github

                                                                                                                                              C++ doticonstar image 7 doticonVersion:Currentdoticon
                                                                                                                                              no licences License: No License (null)

                                                                                                                                              This is a clone of an SVN repository at svn://svn.code.sf.net/p/mathgl/code. It had been cloned by http://svn2github.com/ , but the service was since closed. Please read a closing note on my blog post: http://piotr.gabryjeluk.pl/blog:closing-svn2github . If you want to continue synchronizing this repo, look at https://github.com/gabrys/svn2github

                                                                                                                                              Support
                                                                                                                                                Quality
                                                                                                                                                  Security
                                                                                                                                                    License
                                                                                                                                                      Reuse

                                                                                                                                                        MathGLby svn2github

                                                                                                                                                        C++ doticon star image 7 doticonVersion:Currentdoticonno licences License: No License

                                                                                                                                                        This is a clone of an SVN repository at svn://svn.code.sf.net/p/mathgl/code. It had been cloned by http://svn2github.com/ , but the service was since closed. Please read a closing note on my blog post: http://piotr.gabryjeluk.pl/blog:closing-svn2github . If you want to continue synchronizing this repo, look at https://github.com/gabrys/svn2github
                                                                                                                                                        Support
                                                                                                                                                          Quality
                                                                                                                                                            Security
                                                                                                                                                              License
                                                                                                                                                                Reuse

                                                                                                                                                                  See similar Kits and Libraries