C++ Math

Open-source C++ projects categorized as Math Edit details
Related topics: #CPP #C++ #Matrix #Mathematics #Cpp17

Top 23 C++ Math Projects

  • GLM

    OpenGL Mathematics (GLM)

    Project mention: Memory layout of struct vs array | reddit.com/r/cpp | 2022-05-07

    It is not guaranteed that the memory layout will be the same but the assumption is often made anyway. From what I recall, this is how the widely used GLM math library iterates over the members of vectors and matrices.

  • QuantLib

    The QuantLib C++ library (by lballabio)

  • Scout APM

    Less time debugging, more time building. Scout APM allows you to find and fix performance issues with no hassle. Now with error monitoring and external services monitoring, Scout is a developer's best friend when it comes to application development.

  • CGal

    The public CGAL repository, see the README below

  • ceres-solver

    A large scale non-linear optimization library

    Project mention: Photometric Bundle Adjustment library? | reddit.com/r/computervision | 2022-06-07

    http://ceres-solver.org (if you want to implement it manually, see tutorials & openCV sfm module)

  • Vc

    SIMD Vector Classes for C++

    Project mention: SPO600 project part 2 | dev.to | 2022-04-13

    First of all about our project, I previously decided to work with VC library.https://github.com/VcDevel/Vc

  • symengine

    SymEngine is a fast symbolic manipulation library, written in C++

    Project mention: Help rendering LateX equation to image format | reddit.com/r/cpp_questions | 2022-04-29

    Context: I'm making a application for robotics calculations, making symbolic calculations using (symengine), and at some point I would like to be able to see the steps of these calculations, symengine has a function that returns the latex code do the elements you want. So I was trying to find a library or something of sorts to render that text into an image, I'm using Dear IMGUI in the docking branch to make a simple UI where I would like to display these equations. I know it might not even exists but I would like to give it a try. I found KLateXFormula, which depends on Qt as far as I understood, so I would like to avoid that if possible, I also studied a bit about the TeXStudio repo and found they use Qt to render previews. I also tried to understand the miktex repo searching for a function that I could use, but I barely understood the structure of the repo. I'm getting frustraded. I also found approaches where people would call latex executables to parse latex to DVI(Or something like this) but I would also like to avoid this approaches if possible.

  • primesieve

    🚀 Fast prime number generator

    Project mention: How to implement wheel factorisation? | reddit.com/r/learnpython | 2022-05-23

    I've come across this excellent prime sieve on GitHub, and I just want to find out how it generally works. Yes, it's written in C but I plan to make a Python version that uses some of its methods to make a fairly quick prime sieve. However, I'm really not sure how it has implemented wheel factorisation, and no matter how hard I look online, I can't find a good execution of it that works with its segmented approach. Does anyone have any idea how the wheel factorisation is implemented? To my understanding it's a modulus array that tells you which numbers modulo n are definitely not prime leaving you with the candidate primes to check, but I'm not sure how you would implement this inside a segment so that you only check the candidate primes. In the prime sieve on GitHub it somehow finds the next multiple of the prime using its lookup tables, which I cannot decipher.

  • JetBrains

    Developer Ecosystem Survey 2022. Take part in the Developer Ecosystem Survey 2022 by JetBrains and get a chance to win a Macbook, a Nvidia graphics card, or other prizes. We’ll create an infographic full of stats, and you’ll get personalized results so you can compare yourself with other developers.

  • GamePhysicsCookbook

    Source code for Game Physics Cookbook

  • Klein

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

  • ExprTK

    C++ Mathematical Expression Parsing And Evaluation Library https://www.partow.net/programming/exprtk/index.html

    Project mention: Better library for evaluating math expressions stored on a String | reddit.com/r/androiddev | 2022-04-22

    I have used https://github.com/ArashPartow/exprtk for this task, since it is cpp we also used on IOS, however in android we changed to exp4j since it requires less space and did the same job.

  • gcem

    A C++ compile-time math library using generalized constant expressions

    Project mention: constexpr polyfit library | reddit.com/r/cpp_questions | 2021-12-23
  • XaoS

    Real-time interactive fractal zoomer

    Project mention: First Post | reddit.com/r/randomfractals | 2021-08-09

    Used Xaos for the fractal, get it here Xaos

  • muparser

    official repository of the muparser fast math parser library

    Project mention: OGL - A Great Cross Platform OpenGL Base Library With Almost Everything OpenGL You might Ever need | reddit.com/r/opengl | 2022-01-12

    muparser

  • primecount

    🚀 Fast prime counting function implementations

    Project mention: What the biggest prime number we know, that we sure all numbers under it not prime number? | reddit.com/r/askmath | 2021-12-19

    The MathWorld page on the prime counting function says that we learned in 2015 that there are 16,352,460,426,841,680,446,427,399 primes less than 1027; the github for the software used to compute that number says the program will work on any integer up to 1031. Expect it to take a loooong time to run on large numbers.

  • hlslpp

    Math library using hlsl syntax with SSE/NEON support

  • safe_numerics

    Replacements to standard numeric types which throw exceptions on errors

  • Wykobi

    Wykobi C++ Computational Geometry Library https://www.wykobi.com

  • Boost.Multiprecision

    Boost.Multiprecision

    Project mention: What is something you always thought about computers to be true but found later that you were wrong all along? | reddit.com/r/compsci | 2022-06-13
  • Sand-Table

    An open-source platform for building DIY sand tables (like the Sisyphus or ZenXY)

    Project mention: Needed a new desk for my room. Why wouldn't I spend 3 months designing and building one as an ever-changing kinetic sand sculpture? | reddit.com/r/Damnthatsinteresting | 2022-03-23

    Here you go.

  • maths

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

    Project 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 | 2022-01-12
  • YAWYSIWYGEE

    Yet another what-you-see-is-what-you-get equation editor

  • AE_tl_math

    An After Effect plugin to code in GLSL directly inside After Effect or to write math expressions to code your own filter

    Project mention: Integrating GLSL Shaders With AE In 2022 | reddit.com/r/AfterEffects | 2022-04-15

    Hi, what's currently the best method to work with GLSL shaders in AfterEffects? I found those two projects which seem good but not super actively developed. Are they still good to use or are there any better alternatives by now?

  • FastAD

    FastAD is a C++ implementation of automatic differentiation both forward and reverse mode.

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). The latest post mention was on 2022-06-13.

C++ Math related posts

Index

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

Project Stars
1 GLM 6,460
2 QuantLib 3,274
3 CGal 3,214
4 ceres-solver 2,450
5 Vc 1,215
6 symengine 859
7 primesieve 750
8 GamePhysicsCookbook 602
9 Klein 599
10 ExprTK 401
11 gcem 384
12 XaoS 325
13 muparser 276
14 primecount 258
15 hlslpp 254
16 safe_numerics 186
17 Wykobi 125
18 Boost.Multiprecision 124
19 Sand-Table 85
20 maths 81
21 YAWYSIWYGEE 71
22 AE_tl_math 71
23 FastAD 49
Find remote jobs at our new job board 99remotejobs.com. There are 4 new remote jobs listed recently.
Are you hiring? Post a new remote job listing for free.
Static code analysis for 29 languages.
Your projects are multi-language. So is SonarQube analysis. Find Bugs, Vulnerabilities, Security Hotspots, and Code Smells so you can release quality code every time. Get started analyzing your projects today for free.
www.sonarqube.org