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

1649 Commits

Author SHA1 Message Date
jzmaddock
aad4f85955 Improve powm1 error handling.
Makes 0^-n an overflow error (which matches std::pow which returns +INF rather than a NaN).
Fixes https://github.com/boostorg/math/issues/781.
2022-11-24 18:43:32 +00:00
jzmaddock
4631716f66 s/constructable/constructible/
[CI SKIP]
2022-11-10 18:49:37 +00:00
Rose
fe48a3bba7 Junk removal
Removal of junk headers, typos, or mistakenly duplicated keywords
2022-11-05 12:14:12 -04:00
jzmaddock
86c24916b2 Assert when features which require C++17 are compiled for an earlier C++ version.
Also document C++17 requirement for norms.
2022-10-25 18:51:29 +01:00
jzmaddock
a8f0f0a1e2 Update history.
Regenerate docs.
Fix a few quickbook build warnings.
[CI SKIP]
2022-10-24 18:49:57 +01:00
Warren Weckesser
eb3fa54761 DOC: Fix a typo in the 'Standalone Usage' section. (#852) 2022-10-23 14:30:41 -07:00
jzmaddock
ddf0143a8c BREAKING CHANGE: Correct definition of user_rounding_error, (#836)
* BREAKING CHANGE: Correct definition of user_rounding_error,
To return correct type.
Likewise fix up a few other rounding error inconsistencies.
Fixes https://github.com/boostorg/math/issues/834.

* Remove redundant error handler.
2022-10-09 09:14:27 +01:00
jzmaddock
10bd7be0f1 ellint_1/2 performance tweaks.
Add Google bench to probe changes more easily.
Update graphs and docs.
2022-08-17 19:21:03 +01:00
RL-S
631888be03 Corrected path of cubic_roots.hpp in doc 2022-07-15 17:14:17 +02:00
RL-S
2722120dae Corrected path of quartic_roots.hpp in doc 2022-07-15 17:14:14 +02:00
Matt Borland
1cbf7e2c3d constexpr signbit (#793)
Implements constexpr signbit with annotated caveats during compile time.
2022-07-02 11:47:03 -07:00
Matt Borland
ae0fe3d751 Constexpr next (#789)
Implements constexpr: nextafter, nextafterf, nextafterl, nexttoward, nexttowardf, and nexttowardl as described in P0533R9
2022-06-29 08:44:54 -07:00
jzmaddock
4ffe9bb26c Update history and regenerate docs.
[CI SKIP]
2022-06-25 19:38:28 +01:00
Matt Borland
3107abaa8a Constexpr fma (#734)
* constexpr fma

* Improve use of intrinsics for calculation

* Changes to intrinsics and address sonarlint comments
2022-05-30 13:35:54 -07:00
Matt Borland
e5eae18f14 Chatterjee Correlation Coefficient (#770)
* Implement rank vector

[ci skip]

* Add documentation. Admittedly terrible.

* Add unit tests.

* Cleanup method of detecting if execution policies are valid or not

[ci skip]

* Implement and test chatterjee correlation

[ci skip]

* Add spot checks and special handling for constant Y

[ci skip]

* Add performance file

[ci skip]

* Add execution policy support to rank

[ci skip]

* Remove duplicates from v when generating the order vector

[ci skip]

* Fix macro error for use of <execution>

[ci skip]

* Use explicit types instead of auto to avoid warnings 

[ci skip]

* Add execution policy testing to rank

[ci skip]

* Add threaded implementation

[ci skip]

* Added threaded testing

* Fix formatting and ASCII issues in test

* Fix more ASCII issues

* refactoring

* Fix threaded impl

* Remove non-ASCII apostrophe

[ci skip]

* Doc fixes and add test comparing generally to paper values

* Significantly tighten tolerance around expected values from paper

* Change tolerance for sin comparison

Co-authored-by: Nick Thompson <nathompson7@protonmail.com>
2022-05-25 08:13:24 -07:00
jzmaddock
0a1c4ca3aa Merge pull request #774 from boostorg/color_table_eg
Add further color map example
2022-03-14 17:30:33 +00:00
jzmaddock
f0b818a6d0 Regenerate docs, add missing files.
[CI SKIP]
2022-03-12 16:02:18 +00:00
jzmaddock
5da27935f2 Added further color table example. 2022-03-10 19:33:51 +00:00
jzmaddock
b22105f141 Update version number in docs.
[CI SKIP]
2022-03-08 16:08:03 +00:00
jzmaddock
b5589965e6 Update history and regenerate docs.
Also fix some missing documentation links.
[CI SKIP]
2022-03-08 15:56:22 +00:00
Gregory Lee
c001a885dc small correction to F distribution docs (#766) 2022-02-24 21:40:02 -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
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
jzmaddock
a6ee67e19a Fix 2 minor typos in distribution docs.
[CI SKIP]
2022-02-10 18:45:36 +00: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
50008bb6ba constexpr isunordered (#745) 2022-01-21 08:07:07 -08:00
Matt Borland
e1601f129a Complete CI test with standalone mode (#680) 2022-01-14 08:12:22 -08:00
Matt Borland
18a0874056 Constexpr comparison functions (#736) 2022-01-09 09:28:13 -08: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
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
32a4b92b43 Update history and regenerate docs (part 2). 2021-11-05 19:21:25 +00:00
jzmaddock
e000cf5dd1 Update history and regenerate docs. 2021-11-05 17:53:09 +00:00
Nick
923ed19a07 Cubic roots (#703) 2021-10-26 20:54:29 -07: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
Oleg Alexandrov
85676085ea Expand the catmull-rom spline doc (#698)
* Expand the document of Catmull-Rom spline

It is not clear from the current documentation how the curve parameter is relates to how to interpolate between any two of the input points, which is, at the end of the day, one reason for using spline interpolation. Here a blurb is added to the doc, following https://github.com/boostorg/math/issues/211.

* Remove unneeded newline in catmull_rom doc
2021-09-29 11:10:15 -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
Matt Borland
5d6236fb08 Implement, test, and document trunc (#695) 2021-09-21 09:20:43 -07:00
Matt Borland
991fcff33d constexpr floor and ceil (#694) 2021-09-20 09:51:59 -07:00
Matt Borland
4ad861217d constexpr scalbn and scalbln (#693) 2021-09-18 10:12:47 -07:00
Matt Borland
c0383edcea Constexpr logb and ilogb 2021-09-17 21:05:07 +03:00
Matt Borland
3b75b350a4 constexpr div (#691) 2021-09-15 11:51:06 -07:00
Matt Borland
c0e7a1fa56 Fix docs 2021-09-06 21:47:29 +03:00
Matt Borland
0a69c93a31 Initial commit 2021-09-06 21:39:35 +03:00
Matt Borland
0bbea8d8f9 constexpr frexp (#686) 2021-09-06 11:27:27 -07:00
Matt Borland
d8fe127b82 constexpr fpclassify (#679)
* Implement fpclassify and tests
2021-08-25 13:43:43 -07:00