2
0
mirror of https://github.com/boostorg/math.git synced 2026-02-27 17:12:22 +00:00
Commit Graph

6676 Commits

Author SHA1 Message Date
Christopher Kormanyos
adfee51282 Merge branch 'develop' into update_docs 2024-02-10 11:24:41 +01: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
Christopher Kormanyos
2b510ac957 Enhance introductory words 2024-02-09 19:06:34 +01:00
Christopher Kormanyos
6f95e19126 Correct docs error CI yaml script name 2024-02-09 18:26:42 +01:00
Christopher Kormanyos
11a04ddfa3 Update GitHub ReadMe docs 2024-02-09 18:23:17 +01: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
03ea9c8d7d Merge pull request #1080 from boostorg/issue184_2024
Reinstate root finding protection against huge jumps.
2024-02-06 12:34:39 +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
75dcb3e3d5 Merge pull request #1078 from andrjohns/ibeta-inv-assert
Avoid unused variable warning in ibeta_inverse
2024-02-04 17:32:30 +00:00
Andrew Johnson
12e33a5db4 Avoid unused variable warning 2024-02-04 13:54:00 +02:00
jzmaddock
549baa5677 Correct gauss method selection logic. 2024-02-03 18:25:11 +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
87a905ab1a Cast result of weights() calls to the correct type. 2024-02-01 19:10:52 +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
Nick
ca29a700f1 Remove warnings from naive Monte Carlo (#1075) 2024-01-30 14:28:17 -08:00
Nick
fccad84bf5 Random search (#1071) 2024-01-24 17:26:24 -08:00
Matt Borland
31b76ee734 Merge pull request #1072 from boostorg/deprectation
Update GHA to remove Node deprecation warnings
2024-01-24 13:48:57 +01:00
Matt Borland
291f31117f Update GHA to remove Node deprecation warnings 2024-01-24 11:52:29 +01: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
e06b1b7b04 Merge pull request #1067 from boostorg/opt_newline
Fix missing newline.
2024-01-21 12:14:49 +00:00
jzmaddock
9f5e81d4ea Fix missing newline. 2024-01-21 10:26:53 +00:00
jzmaddock
6f81305aa6 Merge pull request #1066 from boostorg/issue1064
Improve cstdfloat iostream code.
2024-01-21 10:21:47 +00:00
jzmaddock
469541984d Improve cstdfloat iostream code.
Copies input stream parsing from multiprecision.
Fixes https://github.com/boostorg/math/issues/1064
This is still not "proper" iostream code, but it's much better than it was.
2024-01-20 19:04:59 +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
Matt Borland
79b4015d4d Add codecov run to CI (#1061)
Co-authored-by: Alexander Grund <Flamefire@users.noreply.github.com>
2024-01-05 09:00:24 +01: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
56b6ae1b94 Merge pull request #1060 from boostorg/MSVC_Complex
Fix for msvc defining _Complex_I in complex.h
2023-12-22 07:28:36 -05:00
Matt Borland
8332808ebc Address review comments [CI SKIP] 2023-12-22 07:13:10 -05:00
Matt Borland
c4e15ddda0 Fix index for MSVC 14.0 2023-12-22 06:06:57 -05:00
Matt Borland
8d575067e9 Rename bessel components 2023-12-22 05:17:55 -05:00
Matt Borland
a8ee8eb5d8 Protect dependencies with macros 2023-12-22 05:15:38 -05:00
Matt Borland
de67ad3207 Rename our components 2023-12-22 05:09:32 -05:00
Matt Borland
bd49c8311a Improve logic and shield other boost libraries in non-standalone mode 2023-12-21 08:33:23 -05:00
Matt Borland
e24e884562 Undef I after pushing onto the stack 2023-12-21 07:48:13 -05:00
Matt Borland
23d54b385b Fix for msvc defining _Complex_I in complex.h 2023-12-21 07:20:24 -05:00
Matt Borland
438ee69ff0 Merge pull request #1059 from boostorg/no_boost_array 2023-12-20 05:48:42 +01: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
Matt Borland
0238802ecc Merge pull request #1057 from boostorg/libstdc++14
Fix cstdfloat numeric limits detection macro for libstdc++14
2023-12-13 11:15:24 +01:00
Matt Borland
b3a21bcbcb Fix cstdfloat numeric limits detection macro for libstdc++14 2023-12-13 08:43:43 +01:00
Nick
e0c17f6856 Improve accuracy of quartic_roots (#1056) 2023-11-27 17:52:56 +01:00
Matt Borland
f7f96150df Update version history (#1053) 2023-11-18 15:28:38 +01:00
Matt Borland
2dd018b8c7 Revert "Update version history."
This reverts commit d938d3e836.
2023-11-18 08:30:17 +01:00
jzmaddock
d938d3e836 Update version history.
[CI SKIP]
2023-11-17 18:25:02 +00: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
26d8675a48 Merge pull request #1050 from boostorg/ncf_sf
Fix for issue 1049
2023-11-17 08:14:42 +01:00
Matt Borland
2cb550d65e Replace C style asserts with BOOST_MATH_ASSERT 2023-11-16 11:39:53 +01:00