2
0
mirror of https://github.com/boostorg/math.git synced 2026-01-19 16:32:10 +00:00

62 Commits

Author SHA1 Message Date
Matt Borland
3bb781afda Don't check second macro if user said to use sycl 2025-09-26 12:11:11 +02:00
Paweł Stankowski
9ef3540f1a Replaced ldexp with frexp to eliminate errno being set on some compliers (e.g. clang) on underflow or overflow 2025-07-04 12:09:44 -07:00
Matt Borland
d95a79ba34 Include sycl header for additional error detection 2025-06-10 14:41:46 -04:00
Matt Borland
e9cd6c96fd Add GPU support to normal dist
Add SYCL testing of normal dist

Add CUDA testing of normal dist

Add NVRTC testing of normal dist

NVRTC fixes

Move headers for NVRTC support

Add GPU support to inverse gaussian dist

Add NVRTC testing of inverse Gaussian dist

Add CUDA testing of inverse gaussian dist

Add SYCL testing of inverse gaussian dist

Add GPU support to lognormal dist

Add SYCL testing of lognormal dist

Add CUDA testing of lognormal dist

Add nvrtc testing of lognormal dist

Add GPU support to negative binomial dist

Avoid float_prior on GPU platform

Add NVRTC testing of negative binomial dist

Fix ambiguous use of nextafter

Add CUDA testing of negative binomial dist

Fix float_prior workaround

Add SYCL testing of negative binomial dist

Add GPU support to non_central_beta dist

Add SYCL testing of nc beta dist

Add CUDA testing of nc beta dist

Enable generic dist handling on GPU

Add GPU support to brent_find_minima

Add NVRTC testing of nc beta dist

Add utility header

Replace non-functional macro with new function

Add GPU support to non central chi squared dist

Add SYCL testing of non central chi squared dist

Add missing macro definition

Markup generic quantile finder

Add CUDA testing of non central chi squared dist

Add NVRTC testing of non central chi squared dist

Add GPU support to the non-central f dist

Add SYCL testing of ncf

Add CUDA testing of ncf dist

Add NVRTC testing of ncf dist

Add GPU support to students_t dist

Add SYCL testing of students_t dist

Add CUDA testing of students_t

Add NVRTC testing of students_t dist

Workaround for header cycle

Add GPU support to pareto dist

Add SYCL testing of pareto dist

Add CUDA testing of pareto dist

Add NVRTC testing of pareto dist

Add missing header

Add GPU support to poisson dist

Add SYCL testing of poisson dist

Add CUDA testing of poisson dist

Add NVRTC testing of poisson dist

Add forward decl for NVRTC platform

Add GPU support to rayleigh dist

Add CUDA testing of rayleigh dist

Add SYCL testing of rayleigh dist

Add NVRTC testing of rayleigh dist

Add GPU support to triangular dist

Add SYCL testing of triangular dist

Add NVRTC testing of triangular dist

Add CUDA testing of triangular dist

Add GPU support to the uniform dist

Add CUDA testing of uniform dist

Add SYCL testing of uniform dist

Add NVRTC testing of uniform dist

Fix missing header

Add markers to docs
2024-09-06 12:10:18 -04: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
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
e1601f129a Complete CI test with standalone mode (#680) 2022-01-14 08:12:22 -08:00
jzmaddock
fa8f763df9 Fix bug in student's T quantile for denormalized degrees_of_freedom. 2020-07-24 20:11:48 +01:00
Edward Diener
6d678efbf7 Change __BORLANDC__ to BOOST_BORLANDC and __CODEGEARC__ to BOOST_CODEGEARC, which is defined in Boost config for the Embarcadero non-clang-based compilers. (#345) 2020-05-06 11:46:51 -04:00
Nick Thompson
51262f3458 Increase error rate to fix entropy of Student's t. 2019-12-24 10:35:56 -05:00
NAThompson
9505fe70e7 Merge branch 'develop' into distribution_entropy 2019-12-23 16:07:48 -05:00
NAThompson
f649d7dc99 Entropy of Student's t distribution [CI SKIP] 2019-12-23 15:54:08 -05:00
Brian Wignall
df17d11299 Fix more typos, via latest version of typochecker tool 2019-12-20 10:41:42 -05:00
Nick Thompson
9b14fff12e Remove header deprecation warnings. 2019-08-10 08:50:12 -04:00
jzmaddock
646c67d0d9 Remove C++14'isms that crept into tests. 2017-09-07 19:05:36 +01:00
pabristow
c408d7ec1c Restored test_out_of_range to original location as is used by other tests 2017-08-29 17:03:06 +01:00
pabristow
34fd59c372 students t allowing df and x infinite 2017-08-29 15:24:45 +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
ee2d3a68af Oh my, fix lots of typos (search and replace). 2015-06-18 18:47:50 +01: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
John Maddock
fc451ee936 Don't throw exceptions from itrunc/iround if all we're doing is checking to see if the argument is an integer.
Don't propagate no-throw policies inside MPFR's itrunc/iround.
Use normal approximation to student's t quantile when the degrees of freedom is big enough.
Fixes #8837.

[SVN r85075]
2013-07-18 17:31:42 +00:00
John Maddock
fc9da60883 Apply remaining fixes from #8732.
Also adds msb (most significant bit) function to multiprecision.
Fixes #8732.

[SVN r84921]
2013-07-01 15:43:28 +00:00
Gennadiy Rozental
3bc111cdb7 Eliminated test_exec_monitor
[SVN r82782]
2013-02-08 05:09:47 +00:00
Paul A. Bristow
b164089abb Added infinite degrees of freedom support and other new tests.
[SVN r80116]
2012-08-21 17:36:09 +00:00
Paul A. Bristow
f2e2e08908 Changed to use
if (typeid(RealType) != typeid(boost::math::concepts::real_concept))
    { // Ordinary floats only.

to avoid failure of previous string name comparison by gcc and other platforms.

[SVN r79921]
2012-08-08 09:26:47 +00:00
Paul A. Bristow
a261d44d3e Test of using the 1/eps to switch to normal distribution.
[SVN r79891]
2012-08-06 16:29:38 +00:00
Paul A. Bristow
c9fde3be32 Back to plan A! not defined for v <= k - no infinity from moments.
(TODO use normal for df = infinity?)

[SVN r79837]
2012-08-01 17:12:00 +00:00
Paul A. Bristow
7930b8b8a4 Explicit boost::math::policies::domain_error; and pole_error to avoid complaint of duplicate declaration by Intel-Darwin-12. (but unclear where a duplicate declaration actually exists).
[SVN r79806]
2012-07-30 19:53:14 +00:00
Paul A. Bristow
571ed0ebaa Further revision of students t tests, making inline to hope to avoid gcc compile problem.
[SVN r79795]
2012-07-29 09:45:42 +00:00
Paul A. Bristow
76c9e6d678 Revised checks on moments and return values.
[SVN r79769]
2012-07-27 15:29:44 +00:00
Paul A. Bristow
9c3898d306 Revised for Trac #7717
[SVN r79760]
2012-07-26 18:04:02 +00:00
John Maddock
41bd4bd442 Update to use new out-of-bounds error checking.
Refs #6934.

[SVN r78771]
2012-05-30 16:52:18 +00:00
John Maddock
3e9242ade2 Improve testing of error conditions and fix any errors detected.
Takes care of distributions normal-weibull.
Refs #6937.

[SVN r78726]
2012-05-28 17:42:50 +00:00
Steven Watanabe
3524499fc0 Revert [67111] (addition of boost/detail/iomanip.hpp) and all the commits that depend on it. ([68137], [68140], [68141], [68154], and [68165]).
[SVN r68168]
2011-01-15 08:11:51 +00:00
Bryce Adelstein-Lelbach
f11d1c3c2b Replacing the use of <iomanip> with <boost/detail/iomanip.hpp> across Boost.
On Linux, GNU's libstdc++, which is the default stdlib for icc and clang,
cannot parse the <iomanip> header in version 4.5+ (which thankfully neither
compiler advises the use of yet), as it's original C++98-friendly
implementation has been replaced with a gnu++0x implementation.
<boost/detail/iomanip.hpp> is a portable implementation of <iomanip>, providing
boost::detail::setfill, boost::detail::setbase, boost::detail::setw,
boost::detail::setprecision, boost::detail::setiosflags and
boost::detail::resetiosflags. 



[SVN r68140]
2011-01-14 02:35:58 +00:00
John Maddock
96f28fa442 Up the tolerance for the new quantile tests, as these fail for sun otherwise.
[SVN r64624]
2010-08-06 08:26:16 +00:00
John Maddock
b11676fa67 Added test cases for issue #4504.
Tidied up inverse-Student's t evaluation a touch.
Fixes #4504.

[SVN r64597]
2010-08-04 15:47:30 +00:00
John Maddock
2246b77395 Change tests to link to external Boost.Test library as this speeds build times by several factors when building with Intel C++.
Change fpclassify to use our code rather than std::fpclassify with Intel C++ as it doesn't always compile the latter.

[SVN r51576]
2009-03-03 17:16:56 +00:00
Paul A. Bristow
b0c6714dfa warning suppressed in tolerance
[SVN r50066]
2008-12-02 12:45:36 +00:00
John Maddock
1b7401b4c0 Merged changes from Trunk.
[SVN r44090]
2008-04-07 15:43:09 +00:00
John Maddock
e7db05cc1a Merged changes from Trunk.
[SVN r41085]
2007-11-14 12:11:23 +00:00
John Maddock
722a2d848d Merged changes in Trunk.
[SVN r40161]
2007-10-18 18:05:13 +00:00
Paul A. Bristow
76814e7e00 Warning squashing and estimate to find
[SVN r39453]
2007-09-21 17:39:55 +00:00
Paul A. Bristow
cb82bea11e Paul's Big policy revison
[SVN r38413]
2007-08-03 10:13:47 +00:00
Paul A. Bristow
4863b82990 added median tests.
[SVN r3541]
2006-12-20 15:50:50 +00:00
John Maddock
24066f892f Updated to call overflow_error when the result is infinite.
[SVN r3311]
2006-10-25 09:38:24 +00:00
Paul A. Bristow
14bb25eb12 Add test for two convenient constructions.
[SVN r3296]
2006-10-23 10:32:56 +00:00
John Maddock
5f5d873826 Added concept checks and concept archetypes.
Uprated tests and distributions to match concept requirements.


[SVN r3251]
2006-10-13 17:37:27 +00:00
John Maddock
47690421b6 Added remez and minima tests.
Added some mimimal fixes to get the code to compile with Borland-5.8.2, although frankly it's more trouble than it's worth.


[SVN r3200]
2006-09-16 16:41:18 +00:00
Paul A. Bristow
fb79977d70 Spelling corrections and re-compile & run OK and add output.
[SVN r3172]
2006-08-31 15:19:32 +00:00