2
0
mirror of https://github.com/boostorg/math.git synced 2026-01-30 08:02:11 +00:00
Commit Graph

3701 Commits

Author SHA1 Message Date
Matt Borland
cd92c648fd Fix NVRTC usage of lgamma 2025-06-10 14:41:46 -04:00
Matt Borland
f650dc19bd More missing promotion headers 2025-06-10 14:41:46 -04:00
Matt Borland
21a89ff0f7 Replace std::numeric_limits with boost::math::numeric_limits 2025-06-10 14:41:46 -04:00
Matt Borland
f1810a3dd9 Add missing headers 2025-06-10 14:41:46 -04:00
Matt Borland
56e1197d35 Fix NVRTC deprecation warning 2025-06-10 14:41:46 -04:00
Matt Borland
3b3f18e644 Use boost.math cstdint type 2025-06-10 14:41:46 -04: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
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
a8948c31dc Coverage: cosmetic change to prime.hpp for coverage detection. 2025-05-10 14:25:24 +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
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
1ec15ddad5 Coverage: Improve next.hpp. 2025-05-06 17:16:32 +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
399139c301 Coverage: Remove dead code from legendre.hpp and add more test cases. 2025-05-04 11:53:54 +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
e74239638d Coverage: mark up lambert_w tables. 2025-05-02 09:59:18 +01:00
jzmaddock
490af2ef55 Unreachable line in fpclassify.hpp 2025-04-30 16:20:27 +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
895a4de2ec Coverage: Remove unneeded #includes from lambert_w.hpp. 2025-04-29 16:47:44 +01:00
jzmaddock
ca4d89128a Coverage: Improve Lambert_w error handling and fix up test cases. 2025-04-29 16:42:01 +01:00
jzmaddock
a7bb5f5c8b Coverage: Add more tests for LambertW.
Also change infinities to overflow_errors, and remove dead code branch.
2025-04-29 12:24:17 +01:00
Kilian Kilger
0d6ff719b1 Incomplete Gamma: Restore previous overflow check 2025-04-29 09:57:58 +02:00
jzmaddock
aaf7c2018c Coverage: jacobi_theta.hpp, cosmetic changes plus tests. 2025-04-28 16:22:34 +01:00
Kilian Kilger
5a30520951 Merge remote-tracking branch 'origin' into mydevelop 2025-04-28 14:40:02 +02:00
jzmaddock
1fc0741bcf Coverage: Jacobi Elliptic, test error handling, simplify code. 2025-04-28 13:18:57 +01:00
ckormanyos
bc0635f5be Continue try repair LCOV code annotations 2025-04-27 16:18:47 +02:00
ckormanyos
9f0490ea81 Clear up LCOV code annotations 2025-04-27 15:59:59 +02:00
ckormanyos
a029727a16 Repair a silly typo that slipped in 2025-04-27 15:12:25 +02:00
ckormanyos
0c973c9286 Address review and tune more syntax 2025-04-27 13:48:06 +02:00
ckormanyos
e92330ad5d Handle various conversion warnings 2025-04-27 08:55:49 +02:00
jzmaddock
33f80d9127 Coverage: Correct expected error rates on arm and s390,
Correct float128 log1p dispatch call.
2025-04-25 19:00:49 +01:00
jzmaddock
f1da303cbf Coverage: change FP_INFINITE to BOOST_MATH_FP_INFINITE 2025-04-25 12:53:56 +01:00
jzmaddock
5e5cdeeed1 Coverage: Correct assertions in gamma.hpp. 2025-04-22 16:50:46 +01:00
jzmaddock
7a249485fd BOOST_ASSERT->BOOST_MATH_ASSERT 2025-04-22 16:27:49 +01:00
jzmaddock
84f83b328c Coverage: Remove and assert currently unused p_derivative calculations,
In incomplete gamma.
2025-04-22 16:13:56 +01:00
jzmaddock
4a3d3bc66e Coverage: Improve gamma.hpp. 2025-04-22 10:13:08 +01:00
jzmaddock
ca6e976716 Warning fix in ellint_rj.hpp 2025-04-22 10:11:27 +01:00