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

2189 Commits

Author SHA1 Message Date
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
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
2512a13301 Add tests for arcsine logpdf and fix definition [ci skip] 2022-02-15 19:31:08 +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
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
aac9cf952c Fix hanging test from quartic roots 2022-02-04 19:56:09 +01:00
Matt Borland
4eae4407b2 Merge remote-tracking branch 'boostorg/develop' into MSVC2022 2022-02-04 19:50:55 +01:00
Matt Borland
2cc734d76e Conditionally disable test that hangs CI (#751) 2022-01-29 13:58:53 +02:00
Matt Borland
50008bb6ba constexpr isunordered (#745) 2022-01-21 08:07:07 -08:00
jzmaddock
be7b305ad5 Merge pull request #742 from boostorg/lexical_cast_fixes
Begin to systematically remove direct use of lexical_cast in favour o…
2022-01-19 18:40:11 +00:00
jzmaddock
9d8f5b107c Correct macro usage in chebyshev_transform_test.cpp 2022-01-18 09:24:37 +00:00
jzmaddock
7850b8c2dd Correct some CI test failures.
Stop referencing boost::lexical_cast even in templates which aren't instantiated.
Fix missing macro definition in tr1.hpp.
Correct include order in some tests so we get consistent definitions for BOOST_HAS_FLOAT128.
2022-01-17 19:37:08 +00:00
jzmaddock
192888e732 Complete removal of direct use of lexical_cast.
Correct silly typo in unchecked_factorial.hpp.
Remove TEST_STD define in config.hpp as it needlessly breaks the TR1 tests.
Remove lexical_cast.hpp workaround file.
Correct #pragma in tr1.hpp.
2022-01-17 15:36:33 +00:00
jzmaddock
81cfd85df5 Begin to systematically remove direct use of lexical_cast in favour of existing abstractions. 2022-01-16 17:36:50 +00:00
jzmaddock
561a2f1f23 Merge branch 'develop' into de_performance_part_2
Fixed Conflicts:
  include/boost/math/quadrature/detail/exp_sinh_detail.hpp
2022-01-16 09:13:40 +00:00
Matt Borland
e1601f129a Complete CI test with standalone mode (#680) 2022-01-14 08:12:22 -08:00
jzmaddock
53aaf4ce21 Update expected error for tanh_sinh integral.
Recent changes to tanh_sinh alters the order in which values are summed: this can randomly change the found error for either better or worse, and so the 1eps tolerance here was over-optimistic.
2022-01-12 18:40:18 +00:00
Matt Borland
18a0874056 Constexpr comparison functions (#736) 2022-01-09 09:28:13 -08:00
jzmaddock
82b595a9c3 Merge pull request #735 from boostorg/issue733
Fix for linker errors from multiprecision changes.
2022-01-08 14:39:05 +00:00
jzmaddock
d766ef18ea Fix for linker errors from multiprecision changes.
Fixes https://github.com/boostorg/math/issues/733.
2022-01-07 11:37:44 +00:00
Matt Borland
9e369be7a4 Constexpr fmin and fmax (#732) 2022-01-06 11:02:41 -08:00
Matt Borland
3ce09d5739 Constexpr fdim (#730) 2022-01-05 07:01:22 -08:00
Matt Borland
e8edbb9ac3 Fix and tests for issue #705 (#731) 2022-01-05 07:00:41 -08:00
Nick
60d54e565f Quartic roots. (#718) 2022-01-02 17:58:09 -08:00
Matt Borland
1d6f5d12e1 Lost #endif in rebase 2021-12-13 21:07:01 +02:00
Matt Borland
5f9db41033 Fix tests for Apple M1 2021-12-13 17:41:24 +02:00
Matt Borland
181831c0ab Constexpr hypot (#721) 2021-11-27 16:33:11 -07:00
jzmaddock
efb4628d10 Tidy up logic for pruning insignificant values.
Fix up one failing test.
2021-11-25 16:09:20 +00:00
Matt Borland
e1ded14d81 Remove redundant testing and failing test 2021-11-25 11:36:55 +02:00
jzmaddock
40605d0b78 Correct MSVC-14.2 CI failure. 2021-11-06 17:03:48 +00:00
Nick Thompson
15c680c93a Remove unicode from comments and loosen up error tolerance. 2021-11-02 22:31:03 -07:00
jzmaddock
afaa03a090 Merge pull request #713 from boostorg/issue710
Update limits used in erf/erfc approximations.
2021-11-02 19:04:41 +00:00
jzmaddock
08ff95dd14 Convert file to ASCII. 2021-11-01 19:24:31 +00:00
jzmaddock
d8078c71a3 Fix copyright declaration. 2021-11-01 18:32:07 +00:00
Nick
923ed19a07 Cubic roots (#703) 2021-10-26 20:54:29 -07:00
jzmaddock
18cb92bcde Update limits used in erf/erfc approximations.
Fixes https://github.com/boostorg/math/issues/710.
2021-10-24 19:10:36 +01:00
jzmaddock
67f451f0b3 Merge pull request #687 from boostorg/s390x
Fix low hanging fruit test failures on s390x.
2021-10-24 13:03:22 +01:00
jzmaddock
3c8cfa46d1 Correct inspection report issue (missing newline). 2021-10-23 19:44:47 +01:00
jzmaddock
6f496bf93b Correct test for cpp_dec_float division. 2021-10-23 17:20:15 +01:00
Matt Borland
7339acd01a constexpr copysign (#701)
* constexpr copysign

* Fix for mingw test failure
2021-10-10 10:38:26 -07:00
Matt Borland
8e8f6ec4be constexpr remainder (#700) 2021-10-06 10:42:02 -07:00
Matt Borland
6d5aeb08ea constexpr fmod (#699)
* constexpr fmod

* Fix for old clang versions
2021-10-02 08:07:14 -07:00
Matt Borland
392a1c016d constexpr round (#697) 2021-09-27 09:01:47 -07:00
Matt Borland
3e89a0dabd constexpr modf (#696) 2021-09-24 11:09:25 -07:00