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

573 Commits

Author SHA1 Message Date
jzmaddock
6cddd02b3e Disable one clang warning. 2024-04-26 09:18:19 +01:00
Matt Borland
08a2fe6368 Add dual-standalone test case 2024-02-23 10:03:40 +01:00
Christopher Kormanyos
17f14ba3bf Reduce scope of changes 2024-02-16 06:10:17 +01:00
Christopher Kormanyos
3afc1bc5c2 Run and cover compile-test instantiation 2024-02-13 12:59:21 +01:00
Nick Thompson
8d47ee0f4b Include tests for optimization 2024-02-12 16:55:44 -08:00
Christopher Kormanyos
8f6ac0dc3d Restore original octonion test 2024-02-12 14:48:22 +01:00
Christopher Kormanyos
6c440afb15 Test more of octernion 2024-02-12 14:22:16 +01:00
Christopher Kormanyos
90779e715f Add several tgamma() edge cases 2024-02-11 14:21:24 +01:00
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
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
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
John Maddock
e1033c9558 Merge branch 'develop' into improve_coverage 2024-02-06 15:01:40 +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
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
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
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
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
23d54b385b Fix for msvc defining _Complex_I in complex.h 2023-12-21 07:20:24 -05:00
Matt Borland
de64f02ad3 Add test case 2023-11-16 09:38:01 +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
jzmaddock
8ff6bc114e Avoid spurious overflow and divide by zero in ibeta.
Add tests extracted from SciPy bug report.
Fixes https://github.com/boostorg/math/issues/1006.
See also https://github.com/boostorg/math/pull/1009.
2023-09-01 15:48:43 +01:00
ryanelandt
3d8e1d5362 test fix for multiprecision 562 (#1015) 2023-08-23 09:17:45 -04:00
Matt Borland
8bb0d164f2 Merge pull request #978 from boostorg/cpp23-float
C++23 Floats
2023-06-28 08:02:25 +02:00
Nick
7887d43f83 Numerical evaluation of Fourier transform of Daubechies scaling funct… (#921)
* Numerical evaluation of Fourier transform of Daubechies scaling functions.

* Update example/calculate_fourier_transform_daubechies_constants.cpp

Co-authored-by: Matt Borland <matt@mattborland.com>

* Update example/fourier_transform_daubechies_ulp_plot.cpp

Co-authored-by: Matt Borland <matt@mattborland.com>

* Update include/boost/math/special_functions/fourier_transform_daubechies_scaling.hpp

Co-authored-by: Matt Borland <matt@mattborland.com>

* Update include/boost/math/special_functions/fourier_transform_daubechies_scaling.hpp

Co-authored-by: Matt Borland <matt@mattborland.com>

* Rename include file to reflect it implements both the scaling and wavelet.

* Add performance to docs.

* Update test/math_unit_test.hpp

Co-authored-by: Matt Borland <matt@mattborland.com>

* Add boost-no-inspect to files with non-ASCII characters.

---------

Co-authored-by: Matt Borland <matt@mattborland.com>
2023-06-13 08:05:00 -07:00
Matt Borland
29fbc5b059 Add tests for issue 18511 2023-05-23 12:38:39 +02:00
Matt Borland
61043631b6 Add float128 testing 2023-05-16 15:02:09 +02:00
jzmaddock
58264c02e1 Add test case for promote_args. 2023-05-14 18:40:01 +01:00
Matt Borland
bc79263bd0 Add compile tests for F32 and F64 2023-05-02 13:11:49 +02:00
Matt Borland
298a243ccd Fix for scipy issue 18302 (#977) 2023-04-21 12:31:23 +02:00
Matt Borland
8dfc73533d Fix __float128 test macros 2023-04-03 13:54:06 +02:00
Matt Borland
b8fb413405 Compensate for signedness 2023-03-16 21:23:52 -07:00
Matt Borland
73b8ffc13c Fix llround for non-representable numbers 2023-03-16 19:26:23 -07:00
Matt Borland
e06292f69f Conditionally disable MP testing and move to proper test suite 2023-03-06 10:44:48 -08:00
jzmaddock
bf3bc2e6c2 Fix ibeta_inv for very small p. (#962)
* Fix ibeta_inv for very small p.
Change assert's in temme_method_1_ibeta_inverse to corrections when guess goes out of range.
Change handling of non-convergence in second_order_root_finder to use bracketing when the end points are many orders of magnitude apart.
Fixes: https://github.com/boostorg/math/issues/961.

* Add missing copyright.
[CI SKIP]
2023-03-05 13:18:27 +00:00
Matt Borland
91e98b89e3 Replace int with long long in nct pdf and cdf 2023-02-21 08:16:31 -08:00
jzmaddock
99819c5812 Turn debug symbols off for msvc-14.0.
We seem to be hitting some random CI limit on one test otherwise.
2023-02-14 12:16:43 +00:00
jzmaddock
79bf64e23f Merge pull request #949 from mborland/15101
Fix for scipy issue 15101
2023-02-13 15:36:56 +00:00
jzmaddock
bf4c7fdd2c Fix hypergeometric for use with -fno-exceptions.
Add test case.
Refs: https://github.com/boostorg/math/pull/947
2023-02-12 12:18:42 +00:00
Matt Borland
1e47518075 Fix for scipy issue 15101 2023-02-11 09:16:32 -08:00
Nick
4aac532a88 Add Estrin's method for polynomial evaluation (#932)
* Add Estrin's method for polynomial evaluation

N.B.: This is a slightly modified version of the code provided by Thomas Dybdahl Ahle in a github issue.

[CI SKIP] [ci skip]

* Add comparisons to Horner with std::array.
[CI SKIP]

* Add Estrin's method for polynomial evaluation

N.B.: This is a slightly modified version of the code provided by Thomas Dybdahl Ahle in a github issue.

[CI SKIP] [ci skip]

* Fix hang in n=0 case.

* Fix out of bounds access in test.

* Fix endsect for estrin.qbk.

* Apply clang-format to make the 'inspect' stage happy.

* Add type_traits header to includes.

* Add ulp plot.

* Document decreased accuracy of Estrin's method.

* Add assertion for size of scratch pad

* Remove std::size since it is C++17

* Add C++14 testing

* estrin -> evaluate_polynomial_estrin.

---------

Co-authored-by: jzmaddock <john@johnmaddock.co.uk>
Co-authored-by: Matt Borland <matt@mattborland.com>
2023-02-04 10:32:06 -08:00
Matt Borland
fb85bdb510 Fix for scipy issue 17916 (#939) 2023-02-03 09:10:47 -08:00
Matt Borland
38f9a5e62c Add /bigobj for MSVC failures 2023-01-31 08:23:00 -08:00
Matt Borland
c5a4755903 Downgrade condition numbers language requirement to C++14 2023-01-30 11:00:11 -08:00
jzmaddock
09e1350f6f Update tanh_sinh handling of boundaries. (#894)
* Update tanh_sinh handling of boundaries.
So that we don't accidentality end up at an end point, even when arithmetic is inexact, and the FP type has no denomrms.
Fixes: https://github.com/boostorg/math/issues/893

* Add licence/copyright to new file.

* Remove tabs.
2023-01-15 12:40:34 +00:00
Matt Borland
773f7741c4 Require C++14 support 2022-12-27 14:24:41 +01:00