2
0
mirror of https://github.com/boostorg/math.git synced 2026-02-17 13:52:15 +00:00
Commit Graph

6417 Commits

Author SHA1 Message Date
Matt Borland
c73c96ce95 Add logcdf specialization to logistic distribution 2023-02-06 10:40:53 -08:00
Matt Borland
04501b8b2f Add logcdf specialization for laplace distribution 2023-02-05 20:04:50 -08:00
Matt Borland
29d8fb19c3 Add logcdf specialization to extreme value distribution 2023-02-05 17:31:21 -08:00
Matt Borland
f4781481d2 Add generic logcdf 2023-02-05 14:31:51 -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
eaed5834d8 Merge pull request #940 from mborland/Concurrency
Enable GHA to kill in progress builds on new push
2023-02-03 19:37:07 -08:00
Matt Borland
fb85bdb510 Fix for scipy issue 17916 (#939) 2023-02-03 09:10:47 -08:00
Matt Borland
791df66b17 Enable GHA to kill in progress builds on new push 2023-02-03 09:01:17 -08:00
Matt Borland
01630b8b12 Merge pull request #934 from mborland/condition_numbers
Downgrade condition numbers language requirement to C++14
2023-01-31 13:22:35 -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
Matt Borland
f0933b401c Ignore warnings in distribution tests suite (#933) 2023-01-30 10:37:33 -08:00
jzmaddock
5e4c121673 Merge pull request #930 from boostorg/constexpr_tables
Fix for Scipy Issue 16079.
2023-01-29 12:20:24 +00:00
jzmaddock
c560d8681e Fix for Scipy Issue 16079.
Big slowdown in evaluation of constexpr tables.
Fixes: https://github.com/boostorg/math/issues/923
2023-01-27 20:26:14 +00:00
Matt Borland
e2c989cd18 Add M1 testing to drone (#868) 2023-01-16 11:13:04 -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
jzmaddock
ced477ce18 Remove most CI and just test arm64/drone. (#916)
* Remove most CI and just test arm64/drone.
!!REVERT THIS COMMIT BEFORE MERGE!!

* Revert "Remove most CI and just test arm64/drone."
Add ARM64 testing.

* Reduce testing load on emulated platforms.
2023-01-14 09:24:46 +00:00
jzmaddock
6bc8326c1b Merge pull request #917 from mborland/deprecate_complex
Add deprecation notice to complex functions
2023-01-12 11:35:22 +00:00
Drew Risinger
1bff5bf21d libraries.json: fix typo (#918) 2023-01-11 15:57:05 -08:00
Matt Borland
80ff4aa612 Add deprecation notice to complex functions 2023-01-11 10:54:33 -08:00
jzmaddock
fae96bf542 S390x testing: make all the tests 128-bit float safe.
* Remove tests we don't need right now.
!!!REVERT THIS COMMIT BEFORE MERGING!!!

* Add s390x testing to drone.

* Correct drone file.

* Correct drone file (again)

* Prevent complete cancellation in bessel_jy logic.

* Correct testing for 128-bit floats.

* Make some more tests 128-bit long double safe.

* Make more tests 128-bit float safe.

* Fix some more 128-bit testing issues.

* More 128-bit float fixes.

* Make more tests 128-bit float safe.

* Fix up remaining tests for 128-bit floats.

* Yet more 128-bit float test case fixes.

* Fix up more tests for 128-bit floats and non-intel platforms.

* Fix up more tests to be 128-bit long double safe.

* More test case adjustments.

* More 128-bit float error rate adjustments.

* Fixes for autodiff tests

* Two more test fixes.

* Fix up daubechies_scaling_test.cpp and reinstate full CI.

Co-authored-by: Matt Borland <matt@mattborland.com>
2023-01-11 18:31:05 +00:00
Matt Borland
aaa8684f09 Merge pull request #912 from mborland/ccmath
Improve NAN handling in ccmath
2023-01-09 07:12:25 -08:00
Matt Borland
8c26796f71 Fix inf handling and simplify type promotion 2023-01-08 15:00:44 -08:00
Matt Borland
44a7828834 Fix logb inf handling 2023-01-07 10:07:54 -08:00
Matt Borland
11443ceefa Fix -inf handling for sqrt 2023-01-07 09:50:15 -08:00
Matt Borland
ec499a43b7 Simplify fdim type promotion logic 2023-01-03 17:13:16 +01:00
Matt Borland
6b48f06f07 Improve handling of NANs in fdim 2023-01-03 17:12:49 +01:00
Matt Borland
5ebeddef31 Simplify fmax type promotion logic 2023-01-03 14:29:29 +01:00
Matt Borland
d27c7f43e6 Improve handling of NANs in fmax 2023-01-03 14:28:21 +01:00
Matt Borland
51fb875730 Simplify fmin type promotion logic 2023-01-03 14:25:00 +01:00
Matt Borland
a10abc2767 Improve handling of NANs in fmin 2023-01-03 14:21:58 +01:00
Matt Borland
c6e8d0e6eb Improve handling of NANs in hypot 2023-01-03 14:13:53 +01:00
Matt Borland
c7513bea7d Improve handling of NANs in logb 2023-01-03 14:05:09 +01:00
Matt Borland
fb21f21822 Improve handling of NANs in sqrt 2023-01-03 13:58:01 +01:00
jzmaddock
346d2a90f7 Merge pull request #905 from mborland/cxx14
Require C++14 support
2022-12-29 11:21:23 +00:00
jzmaddock
3ce2e1b623 Merge pull request #907 from Flamefire/patch-1
Use `size_t` in `size_to_precision`
2022-12-28 18:22:19 +00:00
Alexander Grund
c91659e368 Use size_t in size_to_precision
As the trait is supposed to be called with `sizeof` the type should be `size_t`
This avoids a conversion warning on e.g. GCC until 10.4
2022-12-28 13:50:52 +01:00
Matt Borland
773f7741c4 Require C++14 support 2022-12-27 14:24:41 +01:00
jzmaddock
fb82796a79 Merge pull request #903 from boostorg/issue902
Make integrators const correct.
2022-12-16 09:10:11 +00:00
jzmaddock
6ab71df84a Fix tanh_sinh warnings.
Introduced in previous fix.
2022-12-15 17:48:50 +00:00
jzmaddock
0b56a468a9 Make integrators const correct.
Update tests accordingly.
2022-12-15 17:38:36 +00:00
jzmaddock
81b7477cef Merge pull request #901 from boostorg/issue898
Fix tanh_sinh integration for edge case,
2022-12-11 16:27:41 +00:00
jzmaddock
c55e6856b6 Fix tanh_sinh integration for edge case,
where max_left_index/max_right_index may go to zero if the function being integrated overflows the FP type being used across nearly all of it's range.  Fixes https://github.com/boostorg/math/issues/898
2022-12-11 13:11:08 +00:00
Matt Borland
61002717c6 Merge pull request #899 from AtariDreams/bugprone
Use cfloat instead of float.h
2022-12-09 18:33:53 -08:00
Rose
dbb1ae7667 Use cfloat instead of float.h
It would be more consistent to use the C++ headers instead of the C ones.
2022-12-09 11:07:42 -05:00
Matt Borland
6c3e9b4467 Merge pull request #895 from mborland/windows
Consolidate windows testing
2022-12-06 12:23:37 -08:00
Matt Borland
6abc01f1ca Consolidate windows testing 2022-12-06 08:43:22 -08:00
Matt Borland
979d5931dd Merge pull request #888 from boostorg/885-no-cbrt
Remove using std::cbrt to fix build on platforms which don't support it.
2022-12-05 07:11:55 -08:00
jzmaddock
2acd1d6744 Merge pull request #892 from mborland/scipy_14901
Fix for Non-Central T Distribution FE_INVALID
2022-12-05 09:19:56 +00:00
Matt Borland
5c1392176c Fix FE_INVALID in quantile 2022-12-04 12:52:52 -08:00