2
0
mirror of https://github.com/boostorg/math.git synced 2026-01-28 19:32:08 +00:00
Commit Graph

2413 Commits

Author SHA1 Message Date
jzmaddock
48b249115f Add better bessel_iterator tests. 2024-02-10 10:33:36 +00:00
jzmaddock
319a521430 Merge branch 'develop' into improve_coverage
Fixed Conflicts:
	test/Jamfile.v2
	test/condition_number_test.cpp
2024-02-10 09:54:04 +00:00
Nick Thompson
3bf7d9791c Use math_unit_test.hpp to fix build failure
We often see the condition number test failing with

```
C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/as.exe: ..\..\..\bin.v2\libs\math\test\condition_number_test.test\a7486d3baaf381a6d13710dc26b7b123\condition_number_test.o: too many sections (32989)
C:\Users\RUNNER~1\AppData\Local\Temp\ccuI2rpi.s: Assembler messages:
C:\Users\RUNNER~1\AppData\Local\Temp\ccuI2rpi.s: Fatal error: can't write 155 bytes to section .text of ..\..\..\bin.v2\libs\math\test\condition_number_test.test\a7486d3baaf381a6d13710dc26b7b123\condition_number_test.o: 'File too big'
```

Use math_unit_test.hpp to fix this.
2024-02-09 15:32:35 -08:00
Nick Thompson
222d266048 CMA-ES 2024-02-09 12:09:53 -08:00
jzmaddock
851c171f16 More bessel function tests for improved coverage.
Kill some unused variable warnings.
Mark up code we think is unreachable but aren't sure about.
2024-02-09 19:34:42 +00:00
jzmaddock
eef497efea Make bessel_k_prime integer order aware. 2024-02-09 18:25:31 +00:00
jzmaddock
1d1a52cc27 Correct gauss and gauss_kronrod integrators with strange-precision types. 2024-02-09 18:11:18 +00:00
John Maddock
26e21c9720 Merge branch 'develop' into improve_coverage 2024-02-09 16:24:26 +00:00
jzmaddock
e285ef3501 Correct test cases. 2024-02-09 16:23:33 +00:00
jzmaddock
098676d6ac Correct test cases. 2024-02-09 13:14:15 +00:00
jzmaddock
cbf6b96a09 Merge pull request #1079 from boostorg/issue1075
Update pre-computed constexpr Gauss and Gauss-Kronrod constants
2024-02-09 12:28:23 +00:00
jzmaddock
b8ea32436a Correct concept failures. 2024-02-08 19:56:27 +00:00
jzmaddock
d6ec06df3a Improve Bessel K and Y prime coverage.
Improve overflow handling in the implementations themselves.
2024-02-08 19:25:56 +00:00
jzmaddock
60134c06e9 Improve Bessel Y derivative coverage.
Also fixes a bug in bessel_y_derivative_small_z_series corner case.
2024-02-06 18:26:35 +00:00
John Maddock
e1033c9558 Merge branch 'develop' into improve_coverage 2024-02-06 15:01:40 +00:00
jzmaddock
04c2c248df BOOST_ASSERT->BOOST_MATH_ASSERT. 2024-02-06 09:54:49 +00:00
jzmaddock
a57fb0a894 Reinstate root finding protection against huge jumps.
Apply error handling more rigorously to any root finding client.
Mark evaluation_error's as not reachable for code coverage.
Fixes https://github.com/boostorg/math/issues/184.
2024-02-05 19:16:33 +00:00
jzmaddock
c5feae34bb Simplify tables of constants in gauss and gauss_kronrod code.
Also mark up anything that uses BOOST_MATH_HUGE_CONSTANT as unreachable by code coverage as gcov seems to have an issue with it.
2024-02-02 18:48:57 +00:00
jzmaddock
b2b839ab4c Try and fix Mingw gcc-8 failures. 2024-02-01 20:05:58 +00:00
jzmaddock
c35f12c1f5 Update pre-computed constexpr Gauss and Gauss-Kronrod constants
to always store literal types.
Fixes: https://github.com/boostorg/math/issues/1077.
2024-02-01 18:43:41 +00:00
jzmaddock
d0bade9858 Improve Bessel Y coverage. 2024-02-01 16:56:39 +00:00
Nick
ca29a700f1 Remove warnings from naive Monte Carlo (#1075) 2024-01-30 14:28:17 -08:00
jzmaddock
b30b637f35 Remove some impossible to reach bessel_jn code.
Add some more tests for the code that can be reached.
2024-01-29 18:05:37 +00:00
jzmaddock
797714419b Continue improving Bessel coverage and removing dead code. 2024-01-26 19:31:34 +00:00
Nick
fccad84bf5 Random search (#1071) 2024-01-24 17:26:24 -08:00
jzmaddock
045a87e792 Refactor test coverage to put concept checks in their own group.
And don't try and run concept checks with test coverage collection.
2024-01-24 16:43:56 +00:00
jzmaddock
c046f713bb Correct typo. 2024-01-23 18:03:35 +00:00
jzmaddock
317b7a64e4 More Bessel function coverage.
Remove I0 initializers and rely on C++11 thread safe static const initialization.
2024-01-23 17:18:25 +00:00
Nick
a1f7a305ee Algorithm jSO (#1065)
Follows: Brest, Janez, Mirjam Sepesy Maucec, and Borko Boskovic. "Single objective real-parameter optimization: Algorithm jSO." 2017 IEEE congress on evolutionary computation (CEC). IEEE, 2017.
2024-01-22 14:06:52 -08:00
jzmaddock
27b3f9ea09 Begin improving ibeta coverage. 2024-01-22 19:28:16 +00:00
jzmaddock
1bf4096273 increase tolerance 2024-01-22 16:29:27 +00:00
jzmaddock
bc975995ed Correct bessel_J test case. 2024-01-22 16:14:29 +00:00
jzmaddock
7431f8141c Improve bernoulli and bessel coverage. 2024-01-22 13:23:33 +00:00
jzmaddock
9e18943090 Improve test coverage.
Try and get all the special_functions/a*.hpp files up to 100%.
2024-01-21 16:58:08 +00:00
Nick
de9a1a0ee5 Fix race conditions in differential evolution (#1063)
Through a combination of silly mistakes, I missed a pile of race conditions in the OpenMP threading.

Switch to C++ threading. Note that this change requires serial generation of trial vectors.

Hopefully I can figure out to parallelize the generation of trial vectors to reduce the serial section a la Ahmdahl's law,
while simultaneously keeping thread sanitizer happy.
2024-01-17 10:20:41 -08:00
Nick
4ee83916c5 Differential evolution (#1062)
* Differential evolution

---------

Co-authored-by: Matt Borland <matt@mattborland.com>
2024-01-01 17:09:16 -08:00
Matt Borland
de67ad3207 Rename our components 2023-12-22 05:09:32 -05:00
Matt Borland
23d54b385b Fix for msvc defining _Complex_I in complex.h 2023-12-21 07:20:24 -05:00
Nick Thompson
185bb52813 Remove last usage of boost::array
Now that boost.math is C++14, remove boost::array in order to improve orthogonality of the library.
2023-12-19 17:16:39 -08:00
Nick
e0c17f6856 Improve accuracy of quartic_roots (#1056) 2023-11-27 17:52:56 +01:00
Matt Borland
0c5b957300 Merge pull request #1051 from boostorg/1048
Fix for issue 1048
2023-11-17 10:59:10 +01:00
Matt Borland
6c5fd09a40 Fix ADL failures for __float128 2023-11-17 08:20:05 +01:00
Matt Borland
2cb550d65e Replace C style asserts with BOOST_MATH_ASSERT 2023-11-16 11:39:53 +01:00
Matt Borland
6aaba2e5a3 Add 1 / eps test case to be sure 2023-11-16 11:28:39 +01:00
Matt Borland
8da51f2bde Add test values from issue 2023-11-16 11:26:15 +01:00
Matt Borland
de64f02ad3 Add test case 2023-11-16 09:38:01 +01:00
Matt Borland
bfa206d12c Losen tolerance on cohen acceleration 2023-11-03 08:18:03 +01:00
ryanelandt
2c74b149b0 has_denorm_now (#1029)
* initial commit

* remove == std::denorm_present

* remove extra ) in ccmath/next
2023-10-30 09:37:29 +01:00
jzmaddock
7571fc6814 Fix up PP logic for there being no __float128. 2023-10-18 09:42:09 +01:00
jzmaddock
c6f4a88809 Incorporate cast simplifications from https://github.com/boostorg/math/pull/880
Add tests and make sure everything is covered, and fix resulting errors.
2023-10-17 17:09:44 +01:00