2
0
mirror of https://github.com/boostorg/math.git synced 2026-01-19 04:22:09 +00:00

6353 Commits

Author SHA1 Message Date
jzmaddock
7fa561dd59 Update log1p for concept tests. 2022-11-11 18:38:31 +00:00
John Maddock
7a0ea9b43f Merge branch 'concepts' of https://github.com/mborland/math into concepts 2022-11-04 18:45:48 +01:00
jzmaddock
cb326912f5 Merge pull request #856 from boostorg/norms
Assert when features which require C++17 are compiled for an earlier …
2022-11-04 17:06:15 +00:00
Rose
b08aa05069 Use 64-bit RNG for types that are 64 bits (#865)
Do this instead of casting down every time we do a normal distribution.
2022-11-04 09:20:51 -07:00
Matt Borland
adc6dca8e2 Merge pull request #858 from mborland/warnings
Fix warning 4146 and 4244 in ccmath
2022-10-30 08:15:46 -07:00
Matt Borland
94201a88ba Use numeric_limits<T>::is_signed to support Boost.MP types 2022-10-29 16:25:39 -07:00
Matt Borland
2acd1d62bf Fix warning C4244: 'return': conversion from 'int' to 'T' 2022-10-29 16:25:39 -07:00
Matt Borland
548118a735 Fix warning C4146: unary minus operator applied to unsigned type 2022-10-29 16:25:39 -07:00
Matt Borland
aa25b040a5 Use package manager for cygwin runs (#862) 2022-10-29 16:18:24 -07:00
Tomasz Kalisiak
5bed94410f Improve the mention of Octonion in readme (#859) 2022-10-28 08:00:22 -07:00
jzmaddock
fa9878b6aa Merge pull request #857 from mborland/853
Disable C6326: Potential comparison of a constant with another constant
2022-10-27 18:04:27 +01:00
Matt Borland
61c4e3b03e Disable C6326: Potential comparison of a constant with another constant 2022-10-25 18:59:04 -07: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
Sam Darwin
989fffba5d Drone minor config update (#850) 2022-10-20 13:23:48 -07:00
Matt Borland
3420530786 Define our own derived_from as std not available on all platforms 2022-10-19 12:26:52 -07:00
Matt Borland
5b81a37d4b Remove libc++ workaround 2022-10-19 10:01:24 -07:00
Matt Borland
6bd07ec732 Add any numerical type (int, floating, complex) concept 2022-10-18 16:23:47 -07:00
Matt Borland
b03cbf5be0 Add execution policy concept 2022-10-18 15:49:13 -07:00
Matt Borland
b802b7c0f1 Add complex number support 2022-10-18 15:37:23 -07:00
Matt Borland
b56de86efc Workaround for libcpp++ partial implementation of concepts 2022-10-18 13:28:04 -07:00
Matt Borland
9a0905a09f Add definition for container 2022-10-18 11:37:19 -07:00
Matt Borland
e9af3487f2 Tighten definitions of built-in concepts by excluding 128 bit extensions 2022-10-18 08:07:59 -07:00
Matt Borland
53534c5505 Fix for scipy issue 17146 (#847)
See: https://github.com/scipy/scipy/issues/17146
2022-10-17 17:54:46 -07:00
Matt Borland
dfdb50caca Fix for issue 845 (#846)
* Fix for issue 845

Avoid division by zero in special cases
2022-10-17 13:52:56 -07:00
Matt Borland
046217c443 Iterator concept example in statistics 2022-10-17 13:50:32 -07:00
Matt Borland
725232026f Add policy concept
[ci skip]
2022-10-17 13:18:00 -07:00
Matt Borland
b5344d5410 Add test on special function (beta)
[ci skip]
2022-10-17 12:57:47 -07:00
Matt Borland
a4cd40ff4d Add arbitrary arithmetic concepts
[ci skip]
2022-10-17 10:39:40 -07:00
Matt Borland
c495bf73ed Add intel _Quad type
[ci skip]
2022-10-17 09:05:54 -07:00
Matt Borland
a72ab6c187 Define C++20 concepts 2022-10-16 15:03:24 -07:00
Matt Borland
9da3a0abb0 Fix warnings in quadrature tests (#844) 2022-10-16 07:51:52 -07:00
Rose
aa242e5639 Fix spelling of "Ubuntu" (#843) 2022-10-15 06:43:58 -07:00
Matt Borland
c65f834412 Merge pull request #840 from mborland/update_CI
Update deprecated workflows
2022-10-14 08:13:19 -07:00
Matt Borland
bfb0295760 Remove deprecated CI skip filter 2022-10-13 07:15:46 -07:00
Rose
a978d95d8d Change looping over array to be unsigned (#830) 2022-10-13 07:06:46 -07:00
Nicholas McKibben
7ad016f34b short-circuit overflow protection for M1 Mac clang (#827)
xref scipy/scipy#14901

Splits single if statement into two to avoid apparent clang short-circuit bug on M1 Mac platforms.

Co-authored-by: Matt Borland <matt@mattborland.com>
2022-10-12 15:03:13 -07:00
Rose
2a07116411 Fix bytes behavior (#828)
"this" is a pointer, not a reference, so we need to find the size of the referenced object.
2022-10-12 08:27:42 -07:00
Matt Borland
3ac2fb2a6b Update deprecated workflow 2022-10-11 11:54:25 -07:00
Nick
aac1131351 Specify seed in random tests. (#839) 2022-10-09 12:42:41 -07:00
Rose
38034fa576 Fix Clang-15 warnings (#831)
Redundant casts, noexcept for move constructors, and usage of default and delete make the code more performant and maintainable.
2022-10-09 19:18:24 +01: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
Nick
ea9c3a27e9 Fix quartic roots when depressed cubic only has single real root (#838) 2022-10-08 21:39:08 -07:00
jzmaddock
9346271a45 Fix Issue 833 (#835)
* Correct 1F1[-n, -n, x]
To match what Mathematica does.
Fixes: https://github.com/boostorg/math/issues/829

* Pass policy in forwarding call to gamma_q.

* Fix bug in 1F1 recurrence relations when one term goes to zero.
Fixes issue with 1F1[-n, n, n].
Also reduce cancellation error in a = -1 special case.
Fixes https://github.com/boostorg/math/issues/833.
2022-10-07 09:35:26 +01:00
jzmaddock
92775b53fc Correct 1F1[-n, -n, x] (#832)
* Correct 1F1[-n, -n, x]
To match what Mathematica does.
Fixes: https://github.com/boostorg/math/issues/829
2022-10-06 11:10:56 +01:00
Antony Polukhin
a3c2c0d0b2 Modernize exception specification (#822)
Replace `throw()` with `BOOST_NOEXCEPT_OR_NOTHROW`
2022-09-27 11:07:58 -07:00
Matt Borland
ad34fe1785 Merge pull request #824 from HDembinski/remove_extra_semicolon
remove extra semicolon
2022-09-18 08:01:52 -07:00
Hans Dembinski
5f704c76a5 remove extra semicolon, fixes 2022-09-18 10:23:46 +02:00
Matt Borland
1ce6dda2fb Merge pull request #819 from mborland/better_copysign
Improve ccmath signbit and copysign
2022-08-26 09:28:23 -07:00