jzmaddock
jzmaddock
This would be tricky to program correctly in general, but I think you're correct that this would be useful, and the correct method would be to use decltype post C++11...
Bisect naturally returns an interval which contains the true root - IMO yes .second can be useful, especially if the procedure terminates prior to finding a tight interval. I can...
Having now looked into this some more, I see that it's a non-starter, I just can't get dimensioned quantities to work inside bisect> Among other things: * No comparison to...
Actually.... that program may not build with gcc/clang but does with msvc: something I need to investigate! It *will* build with -DTEST_TYPE=double though.
Apologies, I haven't had a chance to try them out - hopefully soon - honest!
FYI there's a Miller Rabin test in Multiprecision already.
>I do recommend that the prime table not be used at all; my own preference would be to deprecate this header once your sieve is in. Note that the internal...
Test case is here: https://github.com/boostorg/config/blob/develop/test/boost_no_ctype_functions.ipp
I'm not sure when that constraint was added, but it's not in C++11. The point is that these should be real functions and not macros as they originally were on...
The test case has to be C++, I'll change it, now that C++20 has apparently broken it.