2
0
mirror of https://github.com/boostorg/math.git synced 2026-01-30 20:12:09 +00:00
Commit Graph

2916 Commits

Author SHA1 Message Date
jzmaddock
355237efeb Add missing #include to chebeshev.hpp. 2022-05-26 12:59:56 +01:00
jzmaddock
536851add4 Change naked throws to BOOST_MATH_THROW_EXCEPTION. 2022-05-24 16:47:48 +01:00
jzmaddock
7c5228a07b Add no-exception handling tests.
Add Ubuntu-22 plus gcc-12 and clang-14 CI tests.
Fix a couple headers which still had noeh-unfriendly code.
2022-05-15 17:35:11 +01:00
jzmaddock
bf3b0258e8 Correct error handling in owens_t. 2022-05-13 19:25:18 +01:00
jzmaddock
a6db2d19b7 Change bernoulli error handling to always go through the policies. 2022-05-13 19:03:42 +01:00
jzmaddock
926e34c55c Set BOOST_NO_EXCEPTIONS and BOOST_NO_RTTI for GCC and math in standalone mode.
Disable everything not needed in error_handling.hpp when no exceptions are available.
2022-05-12 19:42:24 +01:00
Christopher Kormanyos
3687f1e88d Redeclaration of max_factorial value 2022-05-10 08:28:22 +02:00
Matt Borland
eb422bcead Merge pull request #762 from mborland/logpdf
Logpdf support
2022-04-18 18:45:50 -07:00
Matt Borland
51dc64e867 Fix for issue 773 (#782) 2022-04-18 09:23:20 -07:00
Matt Borland
4dcddfb801 Replace uses of log(tgamma(x)) with lgamma(x) 2022-04-18 09:22:31 -07:00
Matt Borland
209ad4755a Fixes from review and Clang-Tidy/SonarLint 2022-04-16 14:26:42 -07:00
jzmaddock
2d8413e913 Merge pull request #778 from boostorg/hyper1f1_bugfix
Minor 1F1 bug fixes.
2022-03-13 08:51:25 +00:00
jzmaddock
cf1c5c95b8 Correct variable name typo. 2022-03-12 15:42:12 +00:00
jzmaddock
4a4985d47a Fix logic error in roots.hpp
Fixes https://github.com/boostorg/math/issues/776
2022-03-12 10:20:01 +00:00
jzmaddock
bd7fcf1545 Correct conceptual usage of RealType. 2022-03-11 10:40:24 +00:00
jzmaddock
2519641098 Two minor 1F1 bugfixes:
Prevent recurrence coefficients falling to zero.
Allow checked series to progress if the sum temporarily drops to near zero.
Add test cases.
2022-03-10 18:17:43 +00:00
Matt Borland
722bddbd68 Add include guard to fftw3 in library and compile tests (#768) 2022-02-28 09:58:09 -08:00
Matt Borland
e8c40e309c Implement logaddexp (#763)
* Implement logaddexp

* Disable test for ASAN

* Implement logsumexp

* Add performance file and include results in the docs

* Address review comments

* Simplify overflow test and comply with min/max guidelines

* Minor cleanup

* FIxes to comments and docs [ci skip]

* Return status code.

Co-authored-by: Nick Thompson <nathompson7@protonmail.com>
2022-02-24 07:55:25 -08:00
Matt Borland
2a3cb313ec Add logpdf to weibull distribution 2022-02-24 15:59:11 +01:00
Matt Borland
7681a4eded Add logpdf to rayleigh distribution
[ci skip]
2022-02-24 15:31:06 +01:00
Matt Borland
cd4f2b7cbe Add logpdf to laplace distribution
[ci skip]
2022-02-24 14:11:39 +01:00
Matt Borland
269bf5947f Add logpdf to inverse gaussian distribution
[ci skip]
2022-02-24 13:39:22 +01:00
Matt Borland
570b40e14a Add logpdf to inverse gamma distribution
[ci skip]
2022-02-24 13:09:02 +01:00
Matt Borland
208a1bef46 Add logpdf to extreme value distribution
[ci skip]
2022-02-24 12:35:35 +01:00
Matt Borland
93593fb8f2 Add logpdf to chi squared distribution
[ci skip]
2022-02-24 12:19:15 +01:00
Matt Borland
6f1cda5bb3 Loosen tolerance on logpdf for long doubles for normal dist 2022-02-24 11:16:33 +01:00
Matt Borland
4bd4951a37 Remove normal dist logpdf in favor of default 2022-02-17 14:15:55 +01:00
Matt Borland
079ebcabb5 Attempt to increase resolution of logpdf for normal distribution
Fails with long doubles
2022-02-17 11:32:22 +01:00
Matt Borland
68d000cd42 Add logpdf to gamma distribution 2022-02-16 19:01:42 +01:00
Matt Borland
5986233726 Add logpdf to exponential distribution 2022-02-16 17:29:23 +01:00
Matt Borland
eb55d0abae Add logpdf to poisson distribution 2022-02-16 15:04:21 +01:00
Matt Borland
18c33477c4 Add logpdf to normal distribution 2022-02-16 14:10:17 +01:00
Matt Borland
d739e1d2e8 Remove arcsine logpdf specialization and add default implementation 2022-02-16 13:54:53 +01:00
jzmaddock
20ae7d1a29 Merge pull request #729 from mborland/cygwin
Cygwin, FreeBSD and Long Doubles
2022-02-15 19:16:28 +00:00
Matt Borland
2512a13301 Add tests for arcsine logpdf and fix definition [ci skip] 2022-02-15 19:31:08 +01:00
Matt Borland
e367d3c8ea Arcsine distribution logpdf 2022-02-15 17:57:18 +01:00
Nick
9ad4c2928d Fix for issue 757. (#760) 2022-02-14 07:37:26 -08:00
Nick
d063799531 Do not use an unguarded Newton iterate to polish roots; it goes crazy near a double root. (#759) 2022-02-13 16:06:02 -08:00
James Folberth
01a938cb11 Add class template argument deduction guides for distributions (#756)
* Demonstrate deduction guides for normal_distribution.

* Add missing test case.

* add class template argument deduction guides for distributions templated on real type - issue #754

* Remove no-arg tests in test_dist_deduction_guides.cpp - issue #754

GCC-8 and clang 6-8 were unhappy with the no-arg cases, which use the
default template arg, not the deduction guide, anyway.

* remove unused deduction guide for fisher_f - issue #754

Co-authored-by: jzmaddock <john@johnmaddock.co.uk>
2022-02-12 11:09:40 -08:00
Matt Borland
24ebba0db4 Add missing header 2022-02-09 11:56:05 +01:00
Matt Borland
3e950d9e3a Color Maps (#752)
* Color Maps

* Make color maps constexpr

[ci skip]

* Add newton fractal example

[ci skip]

* Remove some unused code.

* Make the color map base class generic in size

Fix naming convention
[ci skip]

* Begin documentation.

* Move helper functions from example into tools header

[ci skip]

* Update docs and remove non-ASCII characters from example

* Add image to docs

* Reduce size of virdis_newton_fractal from 1.31MB to 131KB

[ci skip]

* Add performance file

* Don't force linear complexity and fix CI failure for old clang versions

* Convert color_maps to free functions.

* Add missing header and remove constexpr test

* Convert tabs to spaces

[ci skip]

* Fix compile tests and make static constexpr uniform across data

* Add swatches to docs.

* Fix image links in docs

[ci skip]

Co-authored-by: Nick Thompson <nathompson7@protonmail.com>
2022-02-09 11:19:38 +01:00
Matt Borland
3e0d8dd369 Revert atomic detection changes 2022-02-08 11:24:06 +01:00
Matt Borland
9130186faa Merge remote-tracking branch 'boostorg/develop' into cygwin 2022-02-08 11:21:48 +01:00
Matt Borland
ae1a13098c Merge remote-tracking branch 'origin/MSVC2022' into MSVC2022 2022-02-04 20:00:03 +01:00
Matt Borland
aac9cf952c Fix hanging test from quartic roots 2022-02-04 19:56:09 +01:00
jzmaddock
f7935203f0 Correct #if order and static_assert error. 2022-01-31 19:08:33 +00:00
jzmaddock
6887109f4f Rework thread-safety logic in bernoulli_details.hpp.
Fixes https://github.com/boostorg/math/issues/748.
2022-01-30 10:55:36 +00:00
Matt Borland
ac80c0e56b Merge remote-tracking branch 'boostorg/develop' into cygwin 2022-01-23 10:29:38 +02:00
Matt Borland
358b302f10 More C-Style Cast Removal (#746) 2022-01-22 10:36:50 +02:00
Matt Borland
50008bb6ba constexpr isunordered (#745) 2022-01-21 08:07:07 -08:00