2
0
mirror of https://github.com/boostorg/math.git synced 2026-01-19 04:22:09 +00:00

7585 Commits

Author SHA1 Message Date
Matt Borland
6c8f87f408 Try even newer version of GCC on windows 2025-06-10 14:31:40 -04:00
Matt Borland
0705007511 Add removed ubuntu runs to drone 2025-06-10 13:37:11 -04:00
Matt Borland
a143ae45d4 Remove ubuntu-22.04 runs 2025-06-10 13:33:38 -04:00
Matt Borland
aaf502599e Remove windows-2019 which sadly has no replacement 2025-06-10 13:32:12 -04:00
jzmaddock
2b05d87c0f Merge pull request #1268 from boostorg/integrate_1251
Integrate PR 1251
2025-05-23 18:27:54 +01:00
jzmaddock
5b15651edf Disable new test when run under the clang sanitizers.
-fsanitize=integer trips up multiprecision code which has deliberate (and well defined) unsigned integer overflow via left shift.
2025-05-23 16:36:10 +01:00
John Maddock
036cf85c12 Merge branch 'mydevelop' of https://github.com/cohomology/math into integrate_1251 2025-05-23 16:27:12 +01:00
jzmaddock
aecd335492 Merge pull request #1262 from boostorg/improve_coverage_4
Improve Coverage Part 4
2025-05-20 12:14:02 +01:00
jzmaddock
ef849f342c Coverage: correct min/max usage for CUDA. 2025-05-15 19:12:23 +01:00
jzmaddock
60ef55dfb5 Coverage: Fix GPU support. 2025-05-15 18:37:01 +01:00
Tomato-in
af8ba3f7b2 Adjust parameter order in Differential Evolution algorithm
Problem Description
The optimization module implements four algorithms: Differential
Evolution, Algorithm jSO, Random Search, and Evolution Strategy with
Covariance Matrix Adaptation. All these algorithms accept seven
parameters: `cost_function`, `params`, `gen`, `value_to_reach`,
`cancellation`, `current_minimum_cost`, and `queries`. Unfortunately,
the Differential Evolution algorithm doesn't maintain parameter
consistency with the other three algorithms: the last two parameters
(`current_minimum_cost` and `queries`) are in reverse order compared to
the other algorithms. This appears to be an unintentional oversight.

Solution
- Adjust the parameter order in the Differential Evolution algorithm to ensure consistency with other optimization algorithms
- Update the algorithm documentation accordingly
(No changes to example code were needed as the examples don't use these two parameters)
2025-05-15 07:19:58 -07:00
Tomato-in
6bd0191186 Fix: Corrected the external archive error in the jSO algorithm
Problem Description: In the jSO algorithm, the external archive was storing successful trials, but according to the original paper, it should store eliminated individuals. The external archive is meant to maintain diversity, and storing successful trials fails to achieve this effect.

Solution: Modified the jSO algorithm's external archive update to store eliminated individuals.
2025-05-14 17:51:39 -07:00
jzmaddock
c851fe9478 Coverage: change uncovered lines in owens_t to asserts.
Fix some gcc warnings at the same time.
2025-05-14 12:18:30 +01:00
jzmaddock
3b49983bbd Coverage: mark up spurious missed line. 2025-05-14 11:29:03 +01:00
jzmaddock
b20cbfacd4 Allow test_log1p_simple.cpp to be run with no exceptions. 2025-05-14 11:26:11 +01:00
jzmaddock
d1101432c4 Coverage: zeta and ulp tweaks for full coverage. 2025-05-12 16:28:27 +01:00
jzmaddock
d760c314d5 Coverage: improve zeta.hpp coverage and tests. 2025-05-12 12:05:01 +01:00
jzmaddock
c159459504 Coverage: Add trivial tests for ulp.hpp. 2025-05-11 10:39:13 +01:00
jzmaddock
384cd81a2b Coverage: improve trigamma. 2025-05-10 18:36:42 +01:00
jzmaddock
034d097010 Coverage: improve sinhc_pi tests. 2025-05-10 14:49:13 +01:00
jzmaddock
a8948c31dc Coverage: cosmetic change to prime.hpp for coverage detection. 2025-05-10 14:25:24 +01:00
jzmaddock
4fdbd9a615 Coverage: weaken exception specification in test_nonfinite_io.cpp.
For Cygwin failures.
2025-05-10 14:21:23 +01:00
jzmaddock
ea0cd6af09 Coverage: try and fix up sinc_pi test. 2025-05-09 10:00:28 +01:00
jzmaddock
9a1c19d127 Coverage: spherical_harmonic tests. 2025-05-08 18:58:21 +01:00
jzmaddock
022dbe979b Coverage: Improve sinc_pi complex tests. 2025-05-08 18:39:51 +01:00
jzmaddock
ef4cdb9b91 Coverage: Add coverage for prime.hpp. 2025-05-08 16:42:08 +01:00
jzmaddock
a7f298c223 Coverage: powm1 tests. 2025-05-08 16:23:58 +01:00
jzmaddock
d5341809a4 Coverage: Mark up default & break statements which don't seem to cover even though they are invoked. 2025-05-08 11:37:53 +01:00
jzmaddock
b485b22912 Coverage: Fix test_next.cpp. 2025-05-08 11:34:52 +01:00
jzmaddock
404fccdd16 Coverage: Fix up nonfinite_num_facets.hpp
Add more tests, and enable one test that was not even being built.
2025-05-07 16:36:19 +01:00
jzmaddock
295c5a37f5 Coverage: last few lines of next.hpp. 2025-05-07 12:12:59 +01:00
jzmaddock
01e1a62e0b Coverage: Fix Jamfile. 2025-05-07 08:50:25 +01:00
jzmaddock
1ec15ddad5 Coverage: Improve next.hpp. 2025-05-06 17:16:32 +01:00
jzmaddock
aa1f9979d0 Coverage: logaddexp test case. 2025-05-05 13:12:50 +01:00
jzmaddock
c0a97eda31 Coverage: legendre.hpp trivial markup. 2025-05-05 13:05:30 +01:00
jzmaddock
7556310aae Coverage: Cosmetic changes to log1p plus more tests.
Also hook test_log1p_simple.cpp up to Jamfile.v2 as it had been omitted for some reason.
2025-05-04 16:12:13 +01:00
jzmaddock
6280934567 Coverage: legendre_stieltjes test case. 2025-05-04 13:13:16 +01:00
jzmaddock
399139c301 Coverage: Remove dead code from legendre.hpp and add more test cases. 2025-05-04 11:53:54 +01:00
jzmaddock
95e0c1f0d8 Coverage: another Lanczos test case. 2025-05-03 17:51:59 +01:00
jzmaddock
cf79a90f5e Coverage: Mark up expint tables. 2025-05-03 17:51:03 +01:00
jzmaddock
a6688c991d Coverage: trivial lambert_w markup. 2025-05-02 19:44:35 +01:00
jzmaddock
dbd2028123 Coverage: Add better Lanczos testing. 2025-05-02 19:44:09 +01:00
jzmaddock
e74239638d Coverage: mark up lambert_w tables. 2025-05-02 09:59:18 +01:00
jzmaddock
5daedec323 Coverage: many tests were not being run due to (accidental) dependency.
Remove dependency on 128 bit std/boost::floatmax_t except where really needed.
2025-05-01 11:35:16 +01:00
jzmaddock
490af2ef55 Unreachable line in fpclassify.hpp 2025-04-30 16:20:27 +01:00
jzmaddock
e4944107e2 Coverage: Make sure lambert_w_derivative tests are actually run! 2025-04-30 11:35:40 +01:00
jzmaddock
dfab2ad7fe Coverage: extra lambert_w test cases. 2025-04-30 11:35:08 +01:00
jzmaddock
e0f1785ed3 Coverage: lambert_w.hpp, remove dead code, turn dead code to asserts. 2025-04-30 11:34:26 +01:00
jzmaddock
82cbeadf51 Coverage: remove testing of lambert_wm1 with integer args.
As there are no valid integer inputs.
2025-04-30 09:55:15 +01:00
jzmaddock
895a4de2ec Coverage: Remove unneeded #includes from lambert_w.hpp. 2025-04-29 16:47:44 +01:00