2
0
mirror of https://github.com/boostorg/math.git synced 2026-01-19 04:22:09 +00:00

43 Commits

Author SHA1 Message Date
jzmaddock
2a6fb336dc lgamma_q: one more go at getting the tolerances correct. 2026-01-08 16:43:19 +00:00
jzmaddock
c366b2d905 lgamma_q: correct PP logic. 2026-01-08 15:56:12 +00:00
jzmaddock
ce9aba42a8 lgamma_q: windows gcc tolerance changes. 2026-01-08 12:26:13 +00:00
Jacob Hass
266bf67061 Relaxed error rates more for type real_concept 2026-01-07 10:25:44 -08:00
jzmaddock
a3bae10684 lgamma_q: Tweak expected error rates.
Hook up concept checks.
Hook up include test.
Add forward declarations.
2026-01-07 12:39:34 +00:00
Jacob Hass
da1a7e4031 Increased tolerance more for lgamma_q test case 2026-01-06 19:47:56 -08:00
Jacob Hass
582d769a7a Relaxed precision for 128bit long doubles 2026-01-06 14:51:41 -08:00
Jacob Hass
3363b21473 Added tests from scipy issue #8424 2026-01-05 10:22:02 -08:00
jzmaddock
f5f403a4a6 Tweak expected error rates. 2026-01-04 11:47:48 +00:00
jzmaddock
46f8b604cf Adjust expected error rates. 2026-01-03 18:50:37 +00:00
jzmaddock
6be6ac15f3 Add diagnostic info to tests.
So we can find the cause of failures easier.
2026-01-03 16:44:42 +00:00
jzmaddock
f400fcff55 Simplify lgamma_q internal selection logic.
Add more tests where the logic changes method for large a,x.
2026-01-03 14:12:31 +00:00
Jacob Hass
1d28f1f8a7 Added test to be right below when approximation is taken 2026-01-01 11:24:38 -08:00
jzmaddock
40a0c54190 More tests for code coverage. 2026-01-01 14:18:26 +00:00
jzmaddock
82e6d3e3c7 Correct test input 2026-01-01 11:04:47 +00:00
jzmaddock
8ba98b79f6 Use test values from wolframapha 2026-01-01 10:48:31 +00:00
Jacob Hass
595eb6850b Added 3 test cases for lgamma_q [skip ci] 2025-12-31 14:31:06 -08:00
jzmaddock
07c5282d90 Coverage: correct exception throwing tests for sycl run. 2025-04-23 10:19:38 +01:00
jzmaddock
8107e55faf Merge branch 'develop' into improve_coverage_3
Fixed Conflicts:
	include/boost/math/special_functions/detail/bessel_ik.hpp
	include/boost/math/special_functions/detail/bessel_j1.hpp
	include/boost/math/special_functions/detail/bessel_k0.hpp
	include/boost/math/special_functions/detail/bessel_k1.hpp
	include/boost/math/special_functions/detail/igamma_large.hpp
	include/boost/math/special_functions/detail/lgamma_small.hpp
	include/boost/math/special_functions/expint.hpp
	include/boost/math/special_functions/expm1.hpp
	include/boost/math/special_functions/gamma.hpp
	include/boost/math/special_functions/log1p.hpp
	include/boost/math/special_functions/trigamma.hpp
	test/Jamfile.v2
	test/test_expint.cpp
2025-04-18 19:45:05 +01:00
Matt Borland
e4a01104d0 GPU Batch 7
Fix igamma_large support on device

Add GPU support to toms748

Add GPU support to igamma_inv

Add GPU markers to gamma_inva

Add GPU Markers to lgamma_small

Remove STL usage from gamma

Remove NVRTC workaround

Fix fraction use of STL headers

Mark gamma functions in fwd

Disable declval on all GPU platforms

Disable more unneeded code on device

Add forward decl for NVRTC tgamma

Disable unneeded items for all GPU

Change workaround for missing overloads

Rearrange definition location

Add include path to cuda now that workaround is removed

Fix NVRTC incompatibility with recursion and forward decls

Add tgamma_ratio CUDA and NVRTC testing

Fix NVRTC handling of gamma_p_derivative

Add gamma_p_derivative CUDA and NVRTC testing

Remove recursion from gamma_incomplete_imp

Add SYCL testing of igamma, igamma_inv, and igamma_inva

Ignore literal-range warnings

Remove use of static const char* for function name

Fix missing CUDA header

Remove calls under NVRTC to fwd decl

Add more nvrtc workarounds

Use builtin erfc instead of header cycle

Add CUDA and NVRTC testing of gamma_p_inv

Adjust tolerances

Add GPU support to chi squared dist

Fix static local variable

Add chi squared dist SYCL testing

Add chi squared dist CUDA testing

Add chi squared dist NVRTC testing

Add GPU support to weibull dist

Add weibull dist SYCL testing

Add weibull dist CUDA testing

Add weibull dist NVRTC testing
2024-08-27 15:32:21 -04:00
jzmaddock
87f242f707 gamma.hpp coverage. 2024-06-30 12:04:52 +01: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
jzmaddock
13cb3bdacd Fix low hanging fruit test failures on s390x.
This adds some extra instrumentation to bessel_j0.hpp, everything else are fixes for the test programs.
The advantage of testing on this platform is that it has a true 128-bit long double which is a good test of our assumptions in code.
2021-09-04 10:46:26 +01:00
jzmaddock
56c4c890d1 Fix spurious overflow in gamma_p/q calculation.
Add tests.
Fixes: https://github.com/boostorg/math/issues/451
2020-11-05 19:43:52 +00:00
Nick Thompson
9b14fff12e Remove header deprecation warnings. 2019-08-10 08:50:12 -04:00
jzmaddock
0152cfa2a9 Incomplete gamma: add asymptotic approximation for large argument.
Allows the functions to be used with very large (or infinite) argument.
Fixes: https://github.com/boostorg/math/issues/168.
2018-12-07 09:37:50 +00:00
John Maddock
48a2c84843 Fix expected error rates for Oracle C++ on Solaris 2016-07-19 17:54:30 +00:00
jzmaddock
aaa8a36a7e Fix some gcc-5.1.0 warnings 2015-09-24 11:12:11 +01:00
jzmaddock
ba365b5aaa Enable running of tests with exception handling off.
And fix a few bugs that showed up in the process.
Currently msvc-only (not GCC as Boost.Test doesn't build).
2015-09-05 19:08:28 +01:00
jzmaddock
3fce8f582d Fix Rmath build failure. 2015-07-02 16:34:33 +01:00
jzmaddock
4d5e744fee Remove old comparison code - it gets in the way. 2015-06-28 09:32:20 +01:00
jzmaddock
6f08fd9bf7 Hook up remaining error tests. 2015-06-27 18:40:22 +01:00
jzmaddock
5bd2b77ec4 [gamma_p_derivative] Fix spurious underflow spotted by Rocco Romeo. 2015-01-05 18:16:51 +00:00
jzmaddock
5af7e8fdb8 [incomplete gamma] Fix corner cases identified by Rocco Romeo. 2014-12-20 19:18:25 +00:00
jzmaddock
bd807c74e1 Fix more spurious overflows detected by Rocco Romeo. 2014-09-24 18:02:00 +01:00
jzmaddock
b471723bd1 Fix bug cases reported by Rocco Romeo:
* Add another approximation for x very small.
* Add code to handle cases where tgamma(a) would overflow.
* Add tests for the above.
2014-09-14 17:05:15 +01:00
jzmaddock
7fa56fe3a9 Fix Linux x64 error rates. 2014-01-06 19:40:04 +00:00
jzmaddock
c005d4d4d1 Fix test tolerances for new tgamma code. 2014-01-06 17:24:45 +00:00
John Maddock
7858278bec Fix gcc-4.8.x warnings.
Fix some Mingw failures.
Fixes #8855.

[SVN r85131]
2013-07-23 11:09:47 +00:00
Gennadiy Rozental
3bc111cdb7 Eliminated test_exec_monitor
[SVN r82782]
2013-02-08 05:09:47 +00:00
John Maddock
887f590fcd Refactor the tests some more: allow tables of data to be of a different type to the type being tested - allows us to have tables of POD's (fast to compile) rather than tables of UDT's which compile very slowly on some compilers (usually Intel).
[SVN r76544]
2012-01-16 18:25:02 +00:00
John Maddock
4baef4e354 Refactor tests to make better use of separate file compilation and reduce compile/testing times.
[SVN r76307]
2012-01-04 17:28:50 +00:00
John Maddock
381bddafa0 Finish moving test cases into headers.
Fix array declarations so GCC doesn't warn about them.
Declare constants in headers so they can be used by UDT's larger than type long double.
Suppress a few warnings and fix a couple of bugs that showed up when testing with UDT's.

[SVN r75960]
2011-12-15 11:23:35 +00:00