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

2894 Commits

Author SHA1 Message Date
John Maddock
8255f23bba Merge branch 'develop' 2022-03-07 14:50:49 +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
jzmaddock
20ae7d1a29 Merge pull request #729 from mborland/cygwin
Cygwin, FreeBSD and Long Doubles
2022-02-15 19:16:28 +00: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
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
Matt Borland
2a94000733 Remove C-Style casts (#744) 2022-01-19 20:04:58 +02:00
Nick
1748becee4 Remove old-style casts. (#743) 2022-01-18 11:37:43 -08:00
jzmaddock
cfc19730ea Improve comments around static_assert's
[CI SKIP]
2022-01-18 19:23:41 +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
Nick
46f6ef03a2 Remove use of old-style casts from exp-sinh quadrature. (#741) 2022-01-15 08:15:55 -08:00
jzmaddock
7bb0688303 Correct exp_sinh top-and-tail code. 2022-01-14 17:39:17 +00:00
Matt Borland
e1601f129a Complete CI test with standalone mode (#680) 2022-01-14 08:12:22 -08:00
jzmaddock
8ebe294c83 "Top and tail" the range of values we sample in exp_sinh.
This removes insignificant values at either end of the integral by way of a performance improvement.
Remove the check within the inner loop for possible early exit as we have already removed the range of values which are likely to be insignificant in value during the first 2 passes.
2022-01-13 12:29:11 +00:00
jzmaddock
3019900cb7 Merge pull request #738 from mborland/issue737
Fix for issue #737
2022-01-11 19:21:17 +00:00
Matt Borland
18a0874056 Constexpr comparison functions (#736) 2022-01-09 09:28:13 -08:00
Matt Borland
019de0d35a Fix for issue #737 2022-01-09 14:00:19 +02: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
Matt Borland
826d6da025 Add big obj for cygwin, and change <atomic> detection
[cygwin]
2022-01-04 10:52:45 +02:00
Matthias Koeppe
1750ceef14 include/boost/math/tools/config.hpp [__CYGWIN__, __FreeBSD__]: No longer define BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS 2022-01-03 10:42:29 +02:00
Nick
60d54e565f Quartic roots. (#718) 2022-01-02 17:58:09 -08:00
Matt Borland
181831c0ab Constexpr hypot (#721) 2021-11-27 16:33:11 -07:00
jzmaddock
8eb3a80dcf Add missing using declarations. 2021-11-26 09:44:17 +00:00
jzmaddock
efb4628d10 Tidy up logic for pruning insignificant values.
Fix up one failing test.
2021-11-25 16:09:20 +00:00
jzmaddock
f5cdfc57a2 Revert changes in include/boost/math/quadrature/detail/tanh_sinh_detail.hpp 2021-11-05 18:23:09 +00:00
jzmaddock
e000cf5dd1 Update history and regenerate docs. 2021-11-05 17:53:09 +00:00
John Maddock
451340564a Merge branch 'develop' 2021-11-03 20:56:07 +01:00
jzmaddock
7108ccc1a3 Merge pull request #716 from boostorg/cubic_roots_tlc
Remove unicode from comments and loosen up error tolerance.
2021-11-03 19:55:05 +00:00
jzmaddock
535fcc237a Merge pull request #714 from boostorg/tanh_sinh_performance
Improve tanh_sinh.
2021-11-03 19:54:44 +00:00
jzmaddock
5792cc4946 Merge branch 'develop'
Fixed Conflicts:
	include/boost/math/tools/precision.hpp
2021-11-03 08:57:30 +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