Software Recommendations Asked by einpoklum on February 18, 2021
I’d like to utilize C++14’s constexpr semantics expansion to calculate some mathematical formulae at compile time. But – I don’t want to "roll my own" constexpr versions of sqrt()
, log()
, sin()
etc. It’s not that I couldn’t do it, it’s just that it would be reinventing the wheel.
So has anyone published such a library?
Notes:
"C++11/14 constexpr based Containers, Algorithms, Random numbers, Parsing, Ray tracing, Synthesizer, and others."
by Bolero Murakami (I think that's the name)
Websites: Main site | GitHub Repo.
Caveats:
Answered by einpoklum on February 18, 2021
by Keith O'Hara
Websites: Main site | GitHub Repo.
Additional features of interest, from the library's website:
gcem::
syntax is identical to the C++ standard library (std::
).Caveat:
Answered by einpoklum on February 18, 2021
If you are using gcc to compile your C++ 11 then there is the GCC python plugin which you may be able to do what you need with.
The python gcc plugin allows you to use the full power of python as a part of your gcc compile & build process. Given that python provides full maths libraries, basic by default and very advanced from numpy, and this plugin lets you access gcc internals you should be able to perform almost any compile time calculations that you can imagine.
Answered by Steve Barnes on February 18, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP