static_math
static_math copied to clipboard
Compile time mathematic functions for C++14
Running `cmake` and `make install` fails with `file INSTALL given no DESTINATION` ``` root@c9bbfcb93f67:/static_math# cmake --version cmake version 3.22.1 CMake suite maintained and supported by Kitware (kitware.com/cmake). root@c9bbfcb93f67:/static_math# cmake ....
It seems like that the cmath.inl::get_fast_converge_params algorithm is using an integer intermediate (size_t) representation, where not all floats can be represented with. ``` template static constexpr auto get_fast_converge_params(Float* const A,...
The default value for the option STATIC_MATH_BUILD_TESTS should be OFF. Users generally don't want to build your tests. :wink:
Some of the tests that passed start failing with GCC 9: * The `smath::exp` tests in `cmath.cpp` * The `smath::cos` tests in `trigonometry.cpp` They fail with issues such as the...
Despite having started this library years ago, I don't have the required skills to maintain it, especially the parts that were contributed by other people: it was merely a toy...
(a + ib)(c + id) = (ac - bd) + (bc + ad)i (bc + ad) = (a+b)(c+d) - ac - bd
Very cool library! I found it mentioned in a constexpr stackexchange question. I like to dabble with low level math like this and I've derived a theoretically exact way to...
Functions such as `exp()` for complex (from [``](https://en.cppreference.com/w/cpp/header/complex)) are missing. Would a PR be appreciated, or were these omitted for some horrifying reason I haven't discovered yet? :D